Coming back to twine after a hardy break and some more experience in other ventures, I was wondering why the ‘whats your name’ button won’t set my switch to ‘name’. it always comes back to the default case when it loops.
I’d like the dialog option to change the switch case to display a corresponding dialog. is what I’m doing possible and if so what and I doing wrong?
<<switch $captainQuestions>>\
<<case "name">>\
<<SeaCaptain>>Simon.<</SeaCaptain>>
<<default>>\
<<SeaCaptain>>Like what?<</SeaCaptain>>
<div class="btn-group">\
<div class="container">
<<button [[What's your name?|captain][$captainQuestions to "name"]]>><</button>>\
<<button [[What's this boat normally used for?|captain]]>><</button>>\
<<button [[Do you live in Drogg Harbor?|captain]]>><</button>>\
<<button [[I had other questions.|Captain dialog]]>><</button>>
</div>\
</div>
<</switch>>
Thanks!