Multiple choice links for gender selection and specific name
QuirkyQuester111
04 Jul 2021, 06:28I'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?
K.V.
07 Jul 2021, 20:45Have you followed this guide?
https://docs.textadventures.co.uk/quest/character_creation.html
jmnevil54
09 Jul 2021, 03:45I 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
}
}
}
}
}