Code: Select all
"level_trigger_23" = [ moneybag = ( + $moneybag 5 )
echo "You got a moneybag."
]
Code: Select all
"on_start" = [
money = 0
pie = 0
sword = 0
treasure = 0
]
Code: Select all
"on_start" = [
money = 0
pie = 0
sword = 0
treasure = 0
money bag = 0
]
Code: Select all
newgui Inventory [
guibutton "Back" "cleargui 1"
guibar
guitext ( format "You have %1 moneys in your wallet." $money )
guitext ( format "You have %1 pies. Yum." $pie )
guitext ( format "You have %1 swords. Not that you can use them..." $sword )
guitext ( format "You have %1 treasures. Lucky you!" $treasure )
guitext ( format "You have %1 moneybag(s). Congrats! $money bag )
]
newgui main [
guilist [
guilist [
guibutton "Inventory" "showgui Inventory"
]
]
guibar
@main
]

As for continually updating the inventory, you can either code all the things you can pick up just like I did above or you can try to do a code which automatically updates the inventory (I don't know how to do that though...)
Anyway, hope that helps!
Arc
