EDIT
Seems like there is no issue if i move to another label then save, but IF i do move items to chest then immediatly save/load it doesnt save.
Code: Select all
init:
default cookbook = list()
default inv = Inventory("Inventory")
default jane_inv = Inventory("Jane")
default chest = Inventory("Storage Chest")
default mindy_inv = Inventory("Mindy", 500, 75)
### Items without icons are created like this:
#$ quarter = Item("Quarter", "A new quarter)
### Items with icons are created like this:
$ eye = Item(name="Eyeball", desc="A human eyeball, how creepy!", icon="images/eye.png", value=250)
# Items that can be used in crafting
$ but = Item("Button", "A shiny button", "images/button.png", 100, act=Show("inventory_popup", message="This item is only used in crafting"))
$ yarn = Item("Yarn", "Yarny yarny yarn.", "images/yarn.png", 30, act=Show("inventory_popup", message="This item is only used in crafting"))
$ fabric = Item("Fabric", "You know, cloth.", "images/fabric.png", 100, act=Show("inventory_popup", message="This item is only used in crafting"))
$ coin = Item("Coin", "An old coin", "images/coin.png", 1, act=Show("inventory_popup", message="This item is only used in crafting"))
# An item with a unique action (shows screen with custom message)
$ sword = Item("Awesome Sword", "An awesome sword.", "images/sword.png", 500, Show("inventory_popup", message="You wave the sword around wildly but nothing happens."))
label start:
$ cookbook = list()
$ jane_inv = Inventory("Jane")
#GIVE ITEMS START GAME#
$ jane_inv.take(sword)
$ jane_inv.take(eye)
$ jane_inv.money = 500
$ mindy_inv = Inventory("Mindy", 500, 75)
$ mindy_inv.take(eye,4)
$ mindy_inv.take(but,3)
$ mindy_inv.take(coin,2)
#############