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

How Do I Change Variable Values in Harlowe?

$
0
0
I want to make a variable's value go up when you select certain passages. I can't use "set" for this because the player is able to go back on some passages that involve exploring objects in rooms, so for example you can explore a bathroom and if you click "Look in medicine cabinet" the variable $suspicion goes up, and then you go back to the main bathroom passage and can select other (but not all) objects to examine that also increase suspicion.

As you can see, if I used "set" things would get overcomplicated pretty fast. I tried using "(put: (value) into (variable)" but it just sets the variable to the value I just put in? Like I'll make a choice that increases suspicion by 2 and the value will be 2, but then when I make another choice that should increase suspicion by 1, and the variable will just change its value to 1? Am I using this incorrectly and is there some way of adding to or subtracting from variable values using Harlowe? Also how would I prevent these variables from going up if the player were to revisit one of the 'suspicious' passages?

Viewing all articles
Browse latest Browse all 1844

Trending Articles