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

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

  1. Import all scripts into your project
  2. Add HealthSystem to player and enemies
  3. Create SimpleInventory on the player for item management
  4. Set up dialogue UI panel and attach DialogueTrigger to NPCs
  5. Create QuestData ScriptableObjects for your quests
  6. Attach QuestSystem to a persistent manager
  7. Use JsonSaveUtility to save/load game progress
  8. 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.

InspectorExcerpt

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) { /* ... */ }
}