Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: | Bass | on Tue 23/11/2004 04:12:50

Title: User names
Post by: | Bass | on Tue 23/11/2004 04:12:50
I use to use ags alot, but i've gotten away from it.  But now that im starting another game, i forgot how to use a "user" name in speech.  I use a GUI with a textbox at the start, so the user can input his/her name.  but now, in the 'training' section (and other sections) i need the name that the user typed into the textbox, to be part of the speech.  I've done it before, but i totally forgot how to do it  ::).  I think the original way I did it involved the GetTextBoxText command, but thats all i remember.  Thanks in advance

-Bass
Title: Re: User names
Post by: Phemar on Tue 23/11/2004 04:20:20

string name;
InputBox ("What is your name?", name);
Display ("So, your name is %s, name);

It's in the manual.
Title: Re: User names
Post by: | Bass | on Tue 23/11/2004 04:22:35
lol..sorry about that...thats an easier way then the first time i did it...Thanks alot :=