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

having trouble with basic inventory

$
0
0
Hello I am completely new to this and I have been pouring over forum links and the Harlowe wiki and for the life of me I can't figure out what is wrong.

I started with this site which gave the the basics but its an array. I am going to use just word based things so I think a data set would be better (ds:) so i added that instead.

I would like to have a thing that only displays a link if you have something in your inventory.
here is my code:
"I dont know much, but I know I am feeling like spagetti. Here is a list of ingredients."
(set: $inv to $inv + ("list"))

[[Do you have any money?|money]]
(if: $inv is in ("some money"))[[Go outside|outside]]

and I keep getting
the number 0 cannot contain any values, let alone the string "list"
and I can't figure out how to fix it. Did i get the syntax wrong?

Viewing all articles
Browse latest Browse all 1844

Trending Articles