Using SugarCube 2.21. What I want is to have things you can click on in a passage which add 1 to a variable, and when that variable reaches a certain number they are sent to another passage. I tried something like this:
<<link test>><<if $test < 6>><<set $test += 1>><</if>><<if $test is 6>><<goto "yay">><</if>><</link>>
I even tried nested <<linkreplace>> macros, but however many times I clicked the link the <<goto>> macro never worked. It worked if I just set $test to 6, but nothing seemed to work with counting up.
Any ideas would be appreciated!
Thank you all!