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?

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)

This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...