Hi, I seem to have a problem while using the if and elseif macro in my game. I’m using Sugarcube 2.30.0 (the latest I guess ?).
In one passage, I ask the player to clink on iether one of two links when choosing their gender. If you click on girl, the next passage shows:
Same thing with boy. So far it works. Both paths lead back to the same passage.
Then I ask for their name with this:
Your last name is <<textbox “$player.lastname” “”>>
And a link to confirm and move on to the next passage. It still works perfectly this far.
Then I would like the player to receive a letter and to take into account their gender and name. That’s where if doesn’t work. It’s been driving me mad for the past txo hours. Here’s what I have:
<<if $player.gender is “girl”>>
Dear Ms. <<print $player.lastname>>,
<<elseif $player.gender is “boy”>>
Dear Mr. <<print $player.lastname>>,
<< endif >>
Problem is, nothing is shown, it’s blank.
I’ve looked at other topics on forums, read the sugarcube documentation and tinkered but I can’t seem to figure it out. Could somebody help?