Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carreraSilvio/RPGDatabase
RPG Database for Unity. Create and manage data for your RPG.
https://github.com/carreraSilvio/RPGDatabase
database rpg tool unity
Last synced: about 18 hours ago
JSON representation
RPG Database for Unity. Create and manage data for your RPG.
- Host: GitHub
- URL: https://github.com/carreraSilvio/RPGDatabase
- Owner: carreraSilvio
- License: mit
- Created: 2021-04-30T18:09:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T18:09:59.000Z (over 3 years ago)
- Last Synced: 2024-08-02T05:13:25.296Z (3 months ago)
- Topics: database, rpg, tool, unity
- Language: C#
- Homepage:
- Size: 2.31 MB
- Stars: 18
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# RPG Database
Create and manage the data for your RPG. It allows you to create the basic set-up for your grand adventure!![Imgur](https://i.imgur.com/PbIrcef.gif)
## 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](https://i.imgur.com/iYGgINz.png)
### 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
```csharp
//Loading database
var _database = new RPGDatabaseManager();
_database.Load();//Fetching data
var actorList = _database.FetchEntry();
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}");
}
```