intermediate

Build an RPG

Health, inventory, dialogue, quests, save/load, and damage numbers — the RPG essentials.

9 scripts · 4 systems

Learning Path

Follow these steps in order to build your RPG.

Included Scripts

Health & Combat Beginner

Health System

Reusable health component with damage, healing, invincibility frames, and events.

PlatformerFPS
  • Damage and healing with clamped health values
  • Invincibility frames with configurable duration after taking damage
  • UnityEvent callbacks for health changed, damaged, healed, and death
2022.3+ · 2.4 KB
Inventory Beginner

Simple Inventory

Lightweight list-based inventory for prototypes. Add, remove, and check items without UI complexity.

RPGGeneral
  • Add, remove, and check items with simple method calls
  • Configurable max slots and max stack size per item
  • UnityEvents for item added, removed, and inventory changed
2022.3+ · 1.9 KB
Dialogue Beginner

Dialogue Trigger

Simple NPC dialogue with sequential messages, typewriter effect, and input to advance. No branching — just clean text sequences.

RPGGeneral
  • Sequential message display with configurable speaker name
  • Typewriter text effect with adjustable character speed
  • Click or keypress to skip typewriter or advance to next message
2022.3+ · 2.5 KB
Utilities Intermediate

Quest System

Lightweight quest tracker with ScriptableObject definitions, objectives, progress tracking, and reward callbacks.

RPG
  • ScriptableObject quest definitions with name, description, and objectives
  • Multiple objective types: Collect, Kill, Talk, Reach, and Custom
  • Runtime progress tracking with per-objective counters
2022.3+ · 3.4 KB
Save & Load Intermediate

JSON Save Utility

File-based JSON save/load utility. Save any serializable class to persistent storage with one method call.

RPGGeneral
  • Save any serializable class to a JSON file with one method call
  • Auto-creates the saves directory if it doesn't exist
  • Load with type safety using generics
2022.3+ · 2.0 KB
UI Beginner

Damage Popup

Floating damage numbers that animate upward and fade out. Supports critical hits, healing, and custom colors.

RPGGeneral
  • Static Create() factory method — no prefab setup required
  • Separate colors for normal damage, critical hits, and healing
  • Scaled-up text for critical hits with configurable crit scale
2022.3+ · 2.6 KB
UI Beginner

Health Bar UI

World-space or screen-space health bar with smooth fill, color gradient, and damage flash. Attach to enemies or use as HUD.

RPGFPS
  • Smooth fill animation with Lerp for satisfying health changes
  • Color gradient that shifts from green to yellow to red automatically
  • Damage flash effect on the background image when health decreases
2022.3+ · 2.4 KB
Utilities Beginner

Interaction System

Raycast-based interaction with prompt UI, hold-to-interact option, and IInteractable interface. Press E to interact with anything.

RPGHorror
  • Raycast-based detection from camera or player forward direction
  • IInteractable interface for flexible object interaction
  • Hold-to-interact mode with progress callback for radial UI
2022.3+ · 2.8 KB
UI Intermediate

Tooltip System

Dynamic mouse-following tooltip that auto-positions to stay on screen. Supports rich text and custom layouts.

RPGGeneral
  • Singleton pattern with static Show/Hide for easy global access
  • Mouse-following position with configurable offset
  • Auto-flips tooltip to stay within screen boundaries
2022.3+ · 2.5 KB

Related Systems

RPG Essentials Kit

intermediate 6 files

Core RPG systems: health, inventory, dialogue, quests, save/load, and damage numbers — everything for an RPG prototype.

RPG
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

Complete Inventory System

intermediate 5 files

Drag-and-drop inventory with stackable items, equipment slots, and JSON save/load persistence.

RPGGeneral
Drag & drop items between slots Stackable items with max stack size Equipment slots (head, chest, weapon, etc.) ScriptableObject item definitions

Dialogue System

intermediate 5 files

Node-based dialogue system with branching choices, conditions, events, and typewriter text effect.

RPGGeneral
Branching dialogue with player choices Condition-based branches (quest state, items, etc.) Typewriter text animation Speaker portraits and names

Save & Load System

intermediate 4 files

Flexible save system supporting multiple save slots, auto-save, and both JSON and binary serialization.

RPGGeneral
Multiple save slots Auto-save with configurable interval JSON and binary serialization options ISaveable interface for custom save data