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

Increasing variable value on button click.

$
0
0
Sorry if my description doesn't make sense, I'll try my best to explain.

I'm using Twine to make a "Pick a choice" kind of game. Each option adds a point into one section before moving onto a random passage. I wish to increase the point when a choice is made and go straight to the next "choose an option card".

I know that increasing variables is, set: $Name to $name + 1, and that it is usually done within a new passage.

Is it possible to increase the variable when clicking a button that links to a new passage. Like [[Take a drink | ((set: $Name to $name + 1)) ]]? Or do I need a to have a passage inbetween that'll increase the value?

Thanks


Viewing all articles
Browse latest Browse all 1844

Trending Articles