How can I give players the option to type their name, and then have that appear in the "RealName" box in the Character's "property grid", so i can make NPCs say their name when spoken to?
You can set and get the name of a player by the 'Name' property. To enable the player to type in a name, you can use an inputbox.
cEgo.Name= Game.InputBox("What is your name?");
??? so, do i type that into globalscript or room script ???
Wherever you want it to happen. If you want them to do it on the first room, put it under room_Load.
so, now how do I get the NPCs to say the player name when spoken to (example. "Hello John,")?
Quote from: AGSPwnage on Mon 28/06/2010 16:41:01
so, now how do I get the NPCs to say the player name when spoken to (example. "Hello John,")?
cNpc.Say("Hello %s", cEgo.Name);
Thanks... I'll put your Names in the credits! ;D :) ;) :D >:( :( :o 8) ??? ::) :P :-[ :-X :-\ :-\ :-* :'( :=