Hi all,
A problem I'm facing is that I've had a number of variables to collect points for different things e.g $pa $aa etc.
Now what I want is that if $pa has crossed 250 the player has essentially won $pa (lets name that $plove) and in future, instead of collecting more $pa points, I want to be able to use $plove to insert bits of text when necessary e.g.
$plove She hugs you in the dark.
So in a nutshell:
score points through the game
win/lose the variable $
Winning the variable sets a new state
New state can be used to insert text in passages.
Help!
Comments
Place the following in a startup tagged passage.
You can use the following to conditionally increment the $pa variable. note: I added indents, extra line-breaks and HTML comments to the above to make it more readable. You should remove them when you insert the code into your Story.