How do I call to the players alias?
SterbenWarStorm
24 Jan 2020, 16:48I allowed the player to set their own alias, but now I need to be able to call to the alias they set. how do I do this?

onimike
24 Jan 2020, 17:13if you want them to see or call their name use
msg ("Your name is " + player.alias + ".")
All this is, is a Print Message use expression then the rest is their.
SterbenWarStorm
25 Jan 2020, 16:16Thank you so much! It worked. So I also have the players' answer repeat so that they can see all the dialogue (Here's a link to the game https://play2.textadventures.co.uk/Play.aspx?id=editor/f947cf59-1300-42fe-a081-50605591177b%2fLearn+To+Date.aslx)
The last thing you will see is what I need help with.

onimike
25 Jan 2020, 17:31The error after asking Lacy whats the book about?
SterbenWarStorm
25 Jan 2020, 20:31Oh, no that was just me forgetting to put something in Switch script. I fixed it, so it should work now. It'll tell you in bold when it's the part.

onimike
25 Jan 2020, 20:40Not sure on that I use font size and color to make it different I don't know if its in the code to make text bold.
SterbenWarStorm
25 Jan 2020, 21:08Yeah, but when they say their answer, their answer disappears and doesn't even show. Is there any way to make it stay? or is there a way to call to the answer, somehow?
mrangel
25 Jan 2020, 21:49Can't you get the answer the same way you did for an earlier question?
When you ask the player a question, the answer is normally in the result
variable. You can display it right away, or save it in an attribute like you did with the alias.
Maybe I misunderstood the problem?
SterbenWarStorm
26 Jan 2020, 00:45yep, that worked. I just did the same thing with the " + player.alias + " but i used " + result + "
Thank you for helping me once again, mrangle! Along with onimike, of course

onimike
26 Jan 2020, 04:02Glad you got it guess i misunderstood the question.