Version: Twine 2.2.1 Story Version: Sugarcube 2.21
To begin my story, I have user input in the form of radio button selections. If the player only selects one, it changes the appropriate variables, and the story begins, however, there is no error catching preventing the player from selecting all radio buttons (as if they were check boxes) if the player does this, all variables get changes (as expected) and the story begins.
Any way to prevent multiple radio buttons from being selected?
My name is:<br> <<textbox "$name" $name>><br>
<<radiobutton "$Strength" 2>> Factory Worker
<<radiobutton "$Charisma" 2>> Teacher
<<radiobutton "$Reflexes" 2>> Martial Arts
<<radiobutton "$Perception" 2>> Detective
I love animals, especially dogs. If I had one, I would name them:<br>
<<textbox "$dogfriend" $dogfriend>>
<<set $name to $name.trim()>>
<<if $name is "">>
<<replace "#name-error">>Please enter a name!<</replace>>