I'm making progress on the update: Events will now be handled through the "Self" brick target, which will allow you to use the brick name as the storage inventory name, enable/disable remote access (such as for personal inventories for NPCs/Bots) and will allow the option of cancelling event schedules that fail the spam check filter (I still need to figure out how that will work first).
Output events will now include
ISStoreItems,
ISAddItems (adds a specified item to the next available cell),
IsSetItems (overwrites existing items with the item you choose and the cells you specify) and
ISTakeItem (which searches a brick's inventory, removes the specified item if found, then adds it to the players inventory if there's an available slot - or vice versa; very useful for setting up a store). The latter three events update all player's GUIs in real-time (if they are viewing the brick's inventory); ISAddItems and ISSetItems give you the option of
adding random items to inventories, and ISTakeItem gives you the option of taking the next available item, in addition to searching for a specific one.
Conditional events will also hopefully be included, such as comparing the main brick's inventory against another brick's inventory (which can be used for a crafting system, i.e. comparing a player's arrangement against a recipe save) and checking if a certain item is present either in the player's or the brick's inventory (also useful for setting up a store). In addition to that, input events for detecting if an item is added, removed, or moved by the player in the GUI will be included; the former is already working to some extent. Still a lot to do (especially with the backpack item/scripts), but the next update should be quite epic.
Thanks, super useful for my medieval RPG
Fantastic! Thank you so much for this :D
No problem. :)
Make it so if you try to put your backpack in your backpack, the player explodes and gets a message stating they just experienced a paradox
lol
That would be interesting...hmm
Could you add "OnStorageOpen" and "OnStorageClose" so you can make a chest open when you look at the storage. on it and close when you exit it.
Sure, I'll try to include events for opening/closing the GUI.
Edit: Nevermind, I'll make it check if no one else is viewing the brick's inventory before executing the close event.