Hi, I'm kinda new at this.
I'm making character relationships in a game I'm working on, where if (as an example) $npcRelationship goes up, you're closer with the character and if $npcRelationship goes down, you're not.
I want the story to have moments where you have a radiobutton choice mid-passage; usually one positive one (that makes the $npcRelationship increase), a neutral one (no change to $npcRelationship), and a negative one (that makes $npcRelationship decrease).
I'm having trouble figuring out how to make the radiobutton variable translate to $npcRelationship. Here's what I've tried:
<<radiobutton "$npc1" "a">>"I really like you, too!"
<<radiobutton "$npc1" "b" checked>>(Say nothing, wait to hear more)
<<radiobutton "$npc1" "c">>"I don't feel the same way. It's not you it's me."
<<silently>>
<<if "$npc1" == "a">><<set $npcRelationship = $npcRelationship + 1>>
<<elseif "$npc1" == "c">><<set $npcRelationship = $npcRelationship - 1>>
<</if>>
<</silently>>\
[[Continue|nextpage]]
I'm not getting any error messages, but the $npcRelationship isn't changing when I load the next page, no matter which radiobutton I chose in testing.
What am I doing wrong? Thanks for your help.