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

Is it possible to set a variable to true within a hook?

$
0
0
Hi. I'm a new user of Twine, and haven't written any code before in my whole life. I'm using Harlow. I'm trying to make it so that a variable changes to true from false, once you click the choice, to avoid having an extra passage in between. I don't know the vocabulary well enough to describe it better than that. The code i'm trying to use is this:

(if:$stumbledlikeafool is true)[[[Grab a candle and head on back to the church and go down in the cellar->Go down in the cellar]](set:$haslight3 to true)]

Is it possible to do something like this? Make haslight3 true,without having to use an extra passage? What happens now, is that it becomes true once you read this passage, either you click the option or not. I'll post a screen cap, in the hope that somebody answers my question. Thank you.

Viewing all articles
Browse latest Browse all 1844

Trending Articles