Show menu problems

I'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)
}
}
}


There are many issues at this time are unable to send receive a sign in or out and games menu problems. I think you need to restart the game and then login maybe it could start working. Also, update this post on the webmaster of the menu problems game’s site. media coursework writing service uk


CVS Pharmacy or more famous with the name myhr.cvs.com pharmacy. Earlier, it has the name CVS/pharmacy. This is one among many subsidiaries of the American retail and healthcare company CVS Health.


The above two posts are both spam


Try 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.


Log in to post a reply.

Support

Forums