0
Answered

Inventory integration

JuliaK 2 months ago in Inventory updated by Marti (Lead Developer) 2 months ago 2

I just bought this module. I read the documentation and watched the example scene. There is one thing I do not understand. Do you have to create all of these items at the start for the inventory to integrate into the game? Or is there a script to add as for the shooter module?

Unity version:
Game Creator version:
+1

There is an inventory of items in the preferences. Customization of the items can be done there. In the sample scene, there is a trigger that includes the UI inventory. Also in the example, the equipment script is pinned to the player. The inventory also integrates well with the shooter module, using the actions of holster and draw, weapons can be equipped with a player.

Answered

Yup, Stanislav is correct. Check out this section on the documentation: https://docs.gamecreator.io/inventory/inventory/inventory-window/catalogue. This is where you define all items your game will have. You don't have to do anything when starting the game. The inventory system is loaded when needed.


To give the player a certain item, simply use the "Item" Action and set the quantity you want to give him/her. If you open the Inventory UI, you'll see the new item will appear.