Hello!
I am a very new user of Quest and to authoring IF games in general. I've gotten a good start on my first one but decided that I really wanted to allow users to include their names as the main character's name to be included throughout the game when the main character is addressed as well as use their gender for proper pronouns,
I have been working with the character creation snippet from the QuestWiki and have attempted to make a few changes. I removed the "class" menu as this game does not use such an attribute. But where the original code asked for a player's name I wanted them to enter a first name and then a last name as both are used individually at different times.
Below is the code that was my last best guess which I've tried to correct both in code and with the GUI. I am VERY new to the code although I'd used several other 'languages' over the years but I couldn't figure this out using GUI either.
msg ("Let's generate a character...")
msg ("Enter your first name:")
get input {
player.firstname = result
msg ("Hi, " + player.firstname)
msg ("Now enter your last name")
player.lastname = result
msg ("Welcome, " + player.firstname + player.lastname)
show menu ("Your gender?", Split ("Male;Female", ";"), false) {
player.gender = result
msg ("You are " + player.gender)
msg ("Now press a key to begin...")
wait {
ClearScreen
}
}
}
Running this will have the first two lines and it appears as if nothing happens when you enter a first name but then entering a last name will just double up the last name. When repeating the first name the second time it just prints "Welcome 'firstnamefirstname'".
Any and all help is greatly appreciated!