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

Recalling ARRAYS

$
0
0
First Off I will be honest, I don't know much about what I am doing.
So I will give you what may be important information first. I am using "Twine 2.1.0 & Sugarcube 2.12.1."
Now off to the question.
I am looking to use arrays or recall their information multiple times, for example, the array:
<<set $Random to either("Koolaid","Pie","Can food")>> and then use the array to give a specific variable an identity <<set $Item1 to "$Random">> and then use that same array again but to be set with another variable <<set $Item2 to "$Random">>, This worked if I use the array once again in the middle of the passage, however, the problem came up when displaying the "Item1 and Item2" variable again in another passage.

I am not sure if I am doing this right, so feel free to recommend an alternative for what I am trying to do, the concept is that once a player clicks on a link the variables would change each time he clicks the same link again, becoming something different each time.

Viewing all articles
Browse latest Browse all 1844

Trending Articles