Login
Remember
IF Answers
Ask a Question

# Name choice for players

0 votes
67 views
asked Jul 22 in Authoring by anonymous

Hello!
I'm new here and I would like to create a text adventure with Quest where the player is asked what kind of character name he wants to have (a geeky one, a funny one, etc.) and then according to what the player is choosing, the character name will be set (for each kind of character type (funny, geeky, ...) there will be a predefined name). How can I do this?

- quest

## 1 Answer

0 votes
answered Jul 23 by hegemonkhan (161 points)

a good link~guide on this stuff:

http://docs.textadventures.co.uk/quest/guides/character_creation.html

'game' Game Object -> 'Script' Tab -> 'Start' Script -> (see below)

add new script -> output -> 'show a menu' Script -> (see below)

show menu with caption [text] Name?
options from list~dictionary: split ("geeky;funny;xxx", ";")
allow player to ignore the menu: [no]

-> after choosing, run script -> add new script -> variables -> 'set a variable or attribute' Script -> set variable player.char_type = [expression] result

-> add new script -> scripts -> 'if' Script -> if [expression] player.char_type = "geeky"

->-> then -> add new script -> variables -> 'set variable or attribute' Script -> set variable player.alias = xxx

-> else if -> add new script -> if' Script -> if [expression] player.char_type = "funny"

->-> then -> add new script -> variables -> 'set variable or attribute' Script -> set variable player.alias = xxx

etc etc etc 'else ifs'

let me know if you rather have multiple names which one is choosen from randomly for each 'char_type' (geeky, funny, xxx)

## Related questions

- Quest Gamebook: Can I allow players to choose their own name?
- Cannot change name of element when not in edit mode?
- Gamebook: How to include a player's attributes/stats?
- How do I make verbs synonymous for only certain objects in Quest 5.6.1?
- No new game option for the online editor?

...