Caption 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]]
[[Change class to wizard]]
[[Add money]]
[[Turn invisible]]Name: <<textbox "$playerName" $playerName>>
[[Player Summary]] <<set $playerClass = "rogue">>
Your class is now rogue.
[[Player Summary]] <<set $playerClass = "wizard">>
Your class is now wizard.
[[Player Summary]] <<set $money = $money + 1>>
Your balance is now $money.
[[Player Summary]] <<set $isInvisible = true>>
You are now invisible.
[[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