RPG Essentials Kit
Core RPG systems: health, inventory, dialogue, quests, save/load, and damage numbers — everything for an RPG prototype.
6 scripts intermediate Starter kit Everything for an RPG prototype
Download rpg-essentials-kit.zip 6 scripts and a README · 20 KB of C# · MIT
What is inside
- HealthSystem.cs Reusable health component with damage, healing, invincibility frames, and events.
- SimpleInventory.cs Lightweight list-based inventory for prototypes. Add, remove, and check items without UI complexity.
- DialogueTrigger.cs Simple NPC dialogue with sequential messages, typewriter effect, and input to advance. No branching — just clean text sequences.
- QuestSystem.cs Lightweight quest tracker with ScriptableObject definitions, objectives, progress tracking, and reward callbacks.
- JsonSaveUtility.cs File-based JSON save/load utility. Save any serializable class to persistent storage with one method call.
- DamagePopup.cs Floating damage numbers that animate upward and fade out. Supports critical hits, healing, and custom colors.
What it does
- Health system with damage, healing, and death events
- Simple inventory with stacking and capacity limits
- NPC dialogue with typewriter effect and sequential messages
- Quest tracker with ScriptableObject definitions and objectives
- JSON file-based save/load for game state persistence
- Floating damage and healing numbers with animations
Setup, in order
- Import all scripts into your project
- Add HealthSystem to player and enemies
- Create SimpleInventory on the player for item management
- Set up dialogue UI panel and attach DialogueTrigger to NPCs
- Create QuestData ScriptableObjects for your quests
- Attach QuestSystem to a persistent manager
- Use JsonSaveUtility to save/load game progress
- DamagePopup.Create() spawns floating numbers on hits
If something does not work
- The quest menu item is missing
- Quests are created from Assets > Create > Quests > Quest Data. If it is missing, check the Console for compile errors.
- Quest progress is lost when the scene changes
- QuestSystem persists across scenes with DontDestroyOnLoad, so put it on its own manager object at the root of the first scene, not under another object, and load the rest from there. Save progress with JsonSaveUtility before quitting.
- Damage numbers face the wrong way or do not appear
- DamagePopup uses a world-space TextMeshPro and faces
Camera.main, so your camera needs the MainCamera tag and TextMeshPro must be installed (it ships inside Unity UI in Unity 6). - Saves cannot be found on disk
- JsonSaveUtility writes to
Application.persistentDataPath, which is a per-user folder outside the project. Log that path once to see where your files are on each platform. - Every input call throws InvalidOperationException in a new Unity 6 project
- The scripts read the legacy Input class, which new Unity 6 projects switch off. Set Project Settings > Player > Active Input Handling to Both and let the Editor restart. Details and the Input System alternative.
Preview
An excerpt of the kit's main types, and the Inspector fields they expose.
Inspector
Fields from the kit's preview excerpt; the full kit has more.
Quest Name
Description
Objectives QuestObjective · Size 0
Experience Reward 0
Excerpt
C#
// QuestData.cs - ScriptableObject quest definition
[CreateAssetMenu(menuName = "Quests/Quest Data")]
public class QuestData : ScriptableObject
{
public string questName;
public string description;
public QuestObjective[] objectives;
public int experienceReward;
}
// QuestSystem.cs - Quest management
public class QuestSystem : MonoBehaviour
{
public bool AcceptQuest(QuestData quest) { /* ... */ }
public void ReportProgress(string objectiveId) { /* ... */ }
}Related
- Complete Inventory SystemDrag-and-drop inventory with stackable items, equipment slots, and JSON save/load persistence.
- Dialogue SystemNode-based dialogue system with branching choices, conditions, events, and typewriter text effect.
- Save & Load SystemFlexible save system supporting multiple save slots, auto-save, and both JSON and binary serialization.
- Build an RPGHealth, inventory, dialogue, quests, save/load, and damage numbers — the RPG essentials.