I know how to create and update a score variable in Squiffy.
Im trying to figure an efficient way to show it at the top of the gaming/text area.
Say I have a score variable: I’m considering to put the following before the rest of the text on each section where you want to show score and there is a @clear:
Did a quick test using conditions in the master section:
Welcome!
Proceed to [[next section]](section1, showScore, score+=1)
[[section1]]:
Your score just increased!
Is this game easy or [[what]](section2, showScore=false)!
[[section2]]:
Not really. You've died.
[[]]:
{if not score: {@score=0}}
{if showScore: Score= {score} }