RPGlite Starter Kit  1.0.0
Starting RPG projects made easy.
Loading...
Searching...
No Matches
🎒 Editing items

Adding new items

On the toolbar, under Tools, you can find the category RPGlite. Hover the mouse over it and click on Item Creator.

Location of the Item Creator in the Unity toolbar

A pop-up window will open with all the fields you may edit.

The Item Creator window

Each field corresponds to:

  • Name: The name of the item. This will show in all inventories and shops.
  • Type: The category or classification of the item. By default, this may be Outfit, Hat or Hair.
  • Number: The number ID that is used to animate this piece, according to the index of the sprite sheet in the Art Library, as explained in Adding new visible clothing.
  • Rarity: A numeric representation of the item's rarity, where higher numbers denote rarer items.
  • Price: The cost of the item when buying or selling at shops.
  • File Path: Where the items.json file is located. Can be left at the default of Assets/RPGliteStarterKit/Resources/items.json.

After filling all the field, click Create Item. If the item creation was successful, you will see a console message similar to the following image:

Item Creator window with all fields filled, and a new item just created. That's it!

Removing items

If you desire to remove an existing item, choose the item by name from the drop-down menu, and click Remove Item. The software will handle correcting item IDs, by order of appearance in the items.json file.

Drop-down menu shwowing items that may be removed.

Editing items through JSON

If there is anything you need that the UI is not capable of, open the items.json file inside the Resources folder.

To add a new item, write a new entry following the sample items, each with a unique itemId. For example:

{
"itemId": 4,
"itemName": "Blue Robes of Glory",
"itemType": "Outfit",
"itemNr": 1,
"rarity": 3,
"price": 125
},

You can edit them as you wish, and if you expand upon the system, you may add more details here. Do not forget that each item requires a unique itemId, and it is also advised to use unique itemName for each entry, as when loaded by name, only the first item found is retrieved.