Hello Everyone! I just finished making a demo of how to make an RPG item storage list for Bee-Ant's new game and I thought this could be useful to other more advanced users out there. I also included a text actor to print out the contents of the 2 arrays (it suggests a way to use the system).
Features:
- Item autostacking.
- Slot clearing.
- Item Consumption algorithm.
- Automatic Spacial Rearangement.
- Simple enough to use with fair ease.
Here are some limitations:
- Maximum of 16 item slots.
- Maximum of 99 stacked items in a single slot. (can be increased)
- Maximum of 10 characters for an item's name.
- The two arrays can be saved using GE's saveVars(); function (do that yourself though, it's easy)
The 3 Functions:
(1) add_item("item_name", amount); adds "amount" of "item_name" to the list.
(2) use_item("item_name", amount); uses "amount" of "item_name" from the list.
(3) clear_slot(slot_number); automatically clears the specified slot and reorganizes the list.