Setter Link Demo
Name: <<textbox "$playerName" "Ashley">>
<<set $playerClass = "rogue">>
<<set $money = 100>>
<<set $isInvisible = false>>
[[Continue->Player Summary]]Name: $playerName
Class: $playerClass
Money: $money
Player is invisible: $isInvisible
[[Change name]]
[[Change class to rogue->Player Summary][$playerClass = "rogue"]]
[[Change class to wizard->Player Summary][$playerClass = "wizard"]]
[[Add money->Player Summary][$money = $money + 1]]
[[Turn invisible->Player Summary][$isInvisible = true]]Name: <<textbox "$playerName" $playerName>>
[[Player Summary]] SugarCube will put anything that goes in a passage named StoryCaption (spelling and capitalization matters!) into the sidebar here!
Check out more special passages <a href="https://www.motoslave.net/sugarcube/2/docs/#special-passages" target="_blank" rel="noopener noreferrer">here.</a>
Name: $playerName
Class: $playerClass
Money: $money
Player is invisible: $isInvisible