Newbie Question about the naming the player

Cheeky549
Hi, I've been playing the text games for a while and they've all been amazing and it made me want to start making my own and I was just wondering if there was a way to have the person playing the game name the character and have other characters say the name in dialogue. If this isn't possible then that's fine, but I thought it was worth asking.

I'm doing this as a Gamebook.

Avantar
I have not implemented the Gamebook for my games yet, but if it is not too late, you could create a Text Adventure and have it work like a gamebook. You can even take away the command prompt.
Then you can use:
msg ("What would be your character 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
msg (game.pov.alias + " is a " + game.pov.gender+ ".")
}
}

That is the only suggestion I can think about. But again - I am not too familiar with the Gamebook aspect of things and maybe someone else will be able to give you a solution.

HegemonKhan
useful link:

http://docs.textadventures.co.uk/quest/

for you

--------------------

simply set your first 'page' to being a 'script' or 'script+text', and then add in the 'character creation' scripting:

http://docs.textadventures.co.uk/quest/ ... ation.html

though, for Gamebook, you only got two Objects 'game' and 'player' to add your attributes onto~into (or 'attach' via scripting: Object_name.Attribute_name = Value_or_Expression)

there's only two ways to get user input:

1. the 'get input' script: run as script -> add a script -> output -> 'get input' Script

you then have to set an attribute to 'result':

run as script -> add a script -> variables -> 'set a variable or attribute' -> [EXPRESSION] -> (Object_name.Attribute_name = result)
~OR~
the 'set' script ( http://docs.textadventures.co.uk/quest/scripts/set.html ), but, I'm not sure where it's found in the GUI~Editor's scripting, meh

2. and using the command bar (aka using~creating Commands), but, this is a bit too advanced for you right now.

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

Support

Forums