Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: rtf on Wed 03/03/2004 01:34:02

Title: Custom Made Games, how do I do it?
Post by: rtf on Wed 03/03/2004 01:34:02
OK, here we go...

What should I put in my scripts if I want to have a game where you can name your main character whatever you want?

I see a dialog box in the bigginning saying "What is your name?"

And whenever the player character's name is said during the game, it's the name you enter in the box.  Get it?

Thanks
Title: Re:Custom Made Games, how do I do it?
Post by: Ishmael on Wed 03/03/2004 05:57:33
character[EGO].name global variable, if I'm not mistaken...

string plrname;
InputBox(plrname, "What's your name?");
StrCopy(character[EGO].name,plrname); // not sure if the parameters are rightways here, but if it won't work flip them.