Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Pizzaman on Sat 12/02/2005 07:29:43

Title: Is there a way to set hotspot name?
Post by: Pizzaman on Sat 12/02/2005 07:29:43
Is there a way to change the hotspot's name in the script? 

-Pizzaman
Title: Re: Is there a way to set hotspot name?
Post by: Barbarian on Sat 12/02/2005 09:48:32
Looks like it's been asked a few times before, and as far as I know there's no way to change the name of a hotspot via scripting (You can change a character's name though for example):
http://bfaq.terran-x.com/#coding16

Future versions may allow for the changing of hotspot names, but in the meantime you can probably "workaround" the problem by using "objects" instead of the hotspot that you wanted to have the name change.

For example, let's say you have a "Locked Door" for an object name, then when the character does the right thing in the game for the door to become Unlocked, you then Turn-On the "Unlocked Door" object in exactly the same spot where the "Locked Door" object was, and then turn-off the "Locked Door" object. So, in this case, the two objects "Locked Door" and "Unlocked Door" would have different names. 
Anyways, just an idea to consider. Hope it was of some help.
Title: Re: Is there a way to set hotspot name?
Post by: blenderhead on Sat 12/02/2005 14:59:40
hi i may be wrong but when you draw a hotspot isn't there a text window where you can name it?
Title: Re: Is there a way to set hotspot name?
Post by: Barbarian on Sat 12/02/2005 15:07:36
Quote from: RM on Sat 12/02/2005 14:59:40
hi i may be wrong but when you draw a hotspot isn't there a text window where you can name it?

Yes RM, you're right, but in this case "changing a hotspot name in the script", I'm assuming to mean that he wants to change the hotspot name through a script command during the course of his game running.
So, yes, in editing phase, it's easy enough to change the name anytime you want, but to have the hotspot-name change while running/playing the game, that's another situation.Ã,  ;)