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

Click passage to set a variable?

$
0
0
Hi everyone,

New to Twine, Harlowe and everything else. I have been wondering if there is a way to make an if-connection between picking a certain passage and setting a variable, for instance.

So for example, I have one passage that asks the player to make a choice between three colors. I want the next passage to be the same, but with some difference in text depending on the choice.

Basically, what I want to do is this: Someone picks [[Green.->color]] and this, in addition to taking the player to the passage 'color' also sets the variable $favoritecolor to "green".

I hope that makes sense and I hope I have not missed something obvious. Thank you in advance.

Viewing all articles
Browse latest Browse all 1844

Trending Articles