Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: SSH on Fri 04/06/2004 14:38:05

Title: Suggestion: SetCharacterName, SetObjectName
Post by: SSH on Fri 04/06/2004 14:38:05
Since, often in a game, you don't know someone's name when you first meet them  and then discover it suring a conversation tree, it would be nice to change a character's name at runtime. Less importantly, the same with objects (and hostpots) too. It would be reasonable enough to have the restriction that the new name must be shorter than the old name...

So "Old man at souvenier stand" can become "Mr McGonagal" once his name is discovered in conversation and "Mysterious-looking object" can become "Flux Recombobulator" once the scientist explains its use...

OK you can script around it, but adding lots of exceptions to you status bar/action bar/tooltip script is a pain and a half...
Title: Re: Suggestion: SetCharacterName, SetObjectName
Post by: strazer on Fri 04/06/2004 14:44:09
Setting character names is easy:

function SetCharacterName(int charid, string newname) { StrCopy(character[charid].name, newname); }

but I agree it would be nice to be able to do the same for objects and hotspots.
Title: Re: Suggestion: SetCharacterName, SetObjectName
Post by: SSH on Fri 04/06/2004 14:56:30
Oops... why didn't I think of that?  :-[
Title: Re: Suggestion: SetCharacterName, SetObjectName
Post by: strazer on Fri 04/06/2004 15:00:25
Phew, I was worried I misunderstood the problem again... ;D
Title: Re: Suggestion: SetCharacterName, SetObjectName
Post by: Pumaman on Fri 04/06/2004 20:50:31
I won't add a SetCharacterName command, sinc eit's so easy to script your own. I'll add SetObjectName to my to-do list, however.