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.

  1. Start: Health with damage, healing, and death events HealthSystem.cs · Reusable health component with damage, healing, invincibility frames, and events.
  2. 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.
  3. Add floating damage numbers DamagePopup.cs · Floating damage numbers that animate upward and fade out. Supports critical hits, healing, and custom colors.
  4. Build a stackable item inventory SimpleInventory.cs · Lightweight list-based inventory for prototypes. Add, remove, and check items without UI complexity.
  5. 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.
  6. 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.
  7. Track quests with objectives and rewards QuestSystem.cs · Lightweight quest tracker with ScriptableObject definitions, objectives, progress tracking, and reward callbacks.
  8. 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

Every script in this path