Build an RPG
Health, inventory, dialogue, quests, save/load, and damage numbers — the RPG essentials.
8 steps 9 scripts 4 kits intermediate
The path
Add these in order. Each step builds on the one before it.
- Start: Health with damage, healing, and death events HealthSystem.cs · Reusable health component with damage, healing, invincibility frames, and events.
- Display health with an animated bar HealthBarUI.cs · World-space or screen-space health bar with smooth fill, color gradient, and damage flash. Attach to enemies or use as HUD.
- Add floating damage numbers DamagePopup.cs · Floating damage numbers that animate upward and fade out. Supports critical hits, healing, and custom colors.
- Build a stackable item inventory SimpleInventory.cs · Lightweight list-based inventory for prototypes. Add, remove, and check items without UI complexity.
- Let players interact with objects and NPCs InteractionSystem.cs · Raycast-based interaction with prompt UI, hold-to-interact option, and IInteractable interface. Press E to interact with anything.
- Add NPC dialogue with typewriter effect DialogueTrigger.cs · Simple NPC dialogue with sequential messages, typewriter effect, and input to advance. No branching — just clean text sequences.
- Track quests with objectives and rewards QuestSystem.cs · Lightweight quest tracker with ScriptableObject definitions, objectives, progress tracking, and reward callbacks.
- Save and load game progress to JSON JsonSaveUtility.cs · File-based JSON save/load utility. Save any serializable class to persistent storage with one method call.
Kits for this path
- RPG Essentials KitCore RPG systems: health, inventory, dialogue, quests, save/load, and damage numbers — everything for an RPG prototype.
- 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.
Every script in this path
- Health SystemReusable health component with damage, healing, invincibility frames, and events.
- Simple InventoryLightweight list-based inventory for prototypes. Add, remove, and check items without UI complexity.
- Dialogue TriggerSimple NPC dialogue with sequential messages, typewriter effect, and input to advance. No branching — just clean text sequences.
- Quest SystemLightweight quest tracker with ScriptableObject definitions, objectives, progress tracking, and reward callbacks.
- JSON Save UtilityFile-based JSON save/load utility. Save any serializable class to persistent storage with one method call.
- Damage PopupFloating damage numbers that animate upward and fade out. Supports critical hits, healing, and custom colors.
- Health Bar UIWorld-space or screen-space health bar with smooth fill, color gradient, and damage flash. Attach to enemies or use as HUD.
- Interaction SystemRaycast-based interaction with prompt UI, hold-to-interact option, and IInteractable interface. Press E to interact with anything.
- Tooltip SystemDynamic mouse-following tooltip that auto-positions to stay on screen. Supports rich text and custom layouts.