Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Array of links

$
0
0
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.

Viewing all articles
Browse latest Browse all 1844

Trending Articles