Skip to content

RPG Database for Unity. Create and manage data for your RPG.

License

Notifications You must be signed in to change notification settings

carreraSilvio/RPGDatabase

Repository files navigation

RPG Database

Create and manage the data for your RPG. It allows you to create the basic set-up for your grand adventure!

Imgur

Features

  • Actors: Create the characters that will take part in your adventure.
  • Classes: Define how attributes will grow, weapons allowed and skills it unlocks.
  • Skills: Robust options to create many types of skills.
  • Items: Potions, antidotes, bombs or quest items. Configure the items in your game.
  • Weapons: Create all the weapons the game will have and how they will affect the actors.

Prerequisites

Unity 2018.3 and up

Install

Unity 2019.3

  1. Open the package manager and point to the repo URL

Imgur

Before Unity 2019.3

Option A

  1. Open the manifest

  2. Add the repo URL either via https or ssh

     {
     	"dependencies": {
     		"com.brightlib.rpgdatabase": "https://bitbucket.org/carreraSilvio/rpgdatabase.git"
     	}
     }
    

Option B

  1. Clone or download the project zip
  2. Inside your project Assets folder create a folder called RPGDatabase
  3. Copy the repo there

Usage

Edit Database

  1. Go to Tools/Database
  2. Pick a tab you want to access the data
  3. Alter the data as you see fit for your game
  4. Do a "File/Save" or close the window to ensure the data is saved

Read Database

//Loading database
var _database = new RPGDatabaseManager();
_database.Load();

//Fetching data 
var actorList = _database.FetchEntry<ActorDataList>();
foreach(var actor in actorList)
{
    var className = _database.FetchClassData(actorData.classId).name;
    var hpAtLv = _database.FetchAmount(actor.Id, 10, ActorAttributeType.HP);
    Debug.Log($"Actor name is {actor.name}");
    Debug.Log($"Actor class is {className}");
    Debug.Log($"Actor HP at level 10 is {hpAtLv}");
}

About

RPG Database for Unity. Create and manage data for your RPG.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages