Inventory & Equipment
Saving and loading the inventory and equipped items.
Last updated
Saving and loading the inventory and equipped items.
Last updated
There are 4 things that require saving here: items, enchantments (applied to items), equipment, and currencies. You can use Inventool.CreateSavableData
to get an object that contains all of this data. This method will return a InventoolSavableData
struct.
Use Inventool.SetData
and provide a InventoolSavableData
object as the parameter to load data. This will set the inventory items, equipment, and currencies.
The code below is how you can save and load Inventool's data with . ESave is my own save system—it's entirely free and it's been tested with Inventool. ESave is not a requirement, you can use the save system of your choice. However, the example below will only work with ESave.