Multiple choice links for gender selection and specific name

I'm trying to make a game and can't seem to get past the first part where I want the user to write whichever name they would like their character to be and to determine the gender of their character (as the latter will impact the storyline). Could someone please help explain it to me?


Have you followed this guide?

https://docs.textadventures.co.uk/quest/character_creation.html


I got this code from Hegemonkhan, I still don't know where he left to. It's for naming the player and picking gender.

msg ("What is your name?")
get input {
  game.pov.alias = result
  msg (" - " + game.pov.alias)
  show menu ("What is your gender?", split ("male;female" , ";"), false) {
    game.pov.gender = result
    show menu ("What is your race?", split ("human;dwarf;elf" , ";"), false) {
      game.pov.race = result
      show menu ("What is your class?", split ("warrior;cleric;mage;thief" , ";"), false) {
        game.pov.class = result
        msg (game.pov.alias + " is a " + game.pov.gender + " " + game.pov.race + " " + game.pov.class + ".")
        wait {
          ClearScreen
        }
      }
    }
  }
}

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums