So I'm trying to build an inventory system in Harlowe, but I've hit a bit of a snag. I want it so players can go to the inventory screen, then click on the items to do things with them and learn about them. However, something is going wrong. The end result is not displaying. It is defnitely recording items, but they are not displaying. Am I doing something wrong or can harlowe not do this?
Here is the code involved:
set: $inventory = (a: ((click: "Space Suit")[(go-to: "Space Suit")])
(print: $inventory.join("
"))
It won't display anything, but this code:
(print: $inventory's length) says 1 so it's being added to the array.
Here is the code involved:
set: $inventory = (a: ((click: "Space Suit")[(go-to: "Space Suit")])
(print: $inventory.join("
"))
It won't display anything, but this code:
(print: $inventory's length) says 1 so it's being added to the array.