4 posts • Page 1 of 1
Hello, I'm working on creating an item tracker to display to a label. So far i have created two gmcp event handlers that add and items then remove that item while in room. My question is i'm trying to figure out how to code the update function that updates each room i enter. For the add and remove functions im using table.insert(mytable, value) and table.remove(mytable,value). I'm trying to figure out how to use gmcp.Char.Items with my table to update each time an event is called.
Hey there! https://github.com/demonnic/iredata/blo ... _items.lua is the code I used to handle room inventory when I was writing a script to parse gmcp data across all the major IRE games. You may find some of it helpful by way of example