Show menu problems

Bttflover5566
02 Aug 2018, 21:15I'm trying to use show menu to make a gender option, and I've been trying everything for hours, but either I get errors, or when I click an option the options disappear and the game crashes. here's the code I'm using:
msg ("Welcome to The School of Magic Text Adventure. Before you begin Day 2, I have a few questions.")
ShowMenu ("gender_string", Split ("male;female", ";"), false) {
switch (gender_string) {
case (male1) {
msg ("Ah, so a male. Did I ever tell you what I do to males when they--
kidding, kidding. Anyway next question... ")
ChangePOV (male1)
}
case (female2) {
msg ("Female huh, this should spice things up a little. Anyway, next
question...")
ChangePOV (female2)
}
}
}
The Pixie
21 Aug 2018, 08:31Try this:
msg ("Welcome to The School of Magic Text Adventure. Before you begin Day 2, I have a few questions.")
ShowMenu ("What is your gender?", Split ("male;female", ";"), false) {
switch (result) {
case ("male") {
msg ("Ah, so a male. Did I ever tell you what I do to males when they--kidding, kidding. Anyway next question... ")
ChangePOV (male1)
}
case ("female") {
msg ("Female huh, this should spice things up a little. Anyway, next question...")
ChangePOV (female2)
}
}
}
In case you are wondering result
is a special value that will get the text the player selects.
mrangel
21 Aug 2018, 12:21Pretty sure I already replied to this; I think the OP accidentally created 2 identical posts or something.