So I made an inventory and equip/unequip system using arrays but have been encountering problems. I'm working in Harlowe.
I think I've messed up formatting or something somewhere but I've been poring over this code for hours now and can't figure out why it's busted.
My problems include items disappearing from the inventory when you leave the page and come back to it, and extra entries for unequipped items.
I don't know how better to explain my problem than by showing you it so I've attached both the problematic code and part of my game.
Any help would be appreciated greatly. Thank you.
I think I've messed up formatting or something somewhere but I've been poring over this code for hours now and can't figure out why it's busted.
My problems include items disappearing from the inventory when you leave the page and come back to it, and extra entries for unequipped items.
I don't know how better to explain my problem than by showing you it so I've attached both the problematic code and part of my game.
Any help would be appreciated greatly. Thank you.