Create and manage the data for your RPG. It allows you to create the basic set-up for your grand adventure!
- 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.
Unity 2018.3 and up
- Open the package manager and point to the repo URL
-
Open the manifest
-
Add the repo URL either via https or ssh
{ "dependencies": { "com.brightlib.rpgdatabase": "https://bitbucket.org/carreraSilvio/rpgdatabase.git" } }
- Clone or download the project zip
- Inside your project Assets folder create a folder called RPGDatabase
- Copy the repo there
- Go to Tools/Database
- Pick a tab you want to access the data
- Alter the data as you see fit for your game
- Do a "File/Save" or close the window to ensure the data is saved
//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}");
}