Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Using Switch in Sugarcube

$
0
0
I cannot figure out how to use <<switch>> in Sugarcube 2.0

Everytime I try, I get "Error: macro <<switch>> does not exist" followed "Error: macro <<case>> does not exist". I have no idea what I'm doing wrong. Here's a code sample.
Enter player name: <<textbox "$player.name" "" autofocus>>

Choose your pronoun: <<switch $pronoun>>

<<case "he, his">>
<<set $player.pronoun to 1>>

<<case "she, her">>
<<set $player.pronoun to 2>>

<<case "they, theirs">>
<<set $player.pronoun to 3>>
<</switch>>
Please advise

Viewing all articles
Browse latest Browse all 1844

Trending Articles