Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: subspark on Sat 26/06/2010 07:38:27

Title: [SUGGESTION] Hotspot.SetDescription(); writable property
Post by: subspark on Sat 26/06/2010 07:38:27
I would love to see a new writable property for hotspots that allow us to change their description properties during runtime.
I could have sworn this was already a well implemented feature but unfortunately for me, I was misinformed.

How I see it working is like so:
hDoor.SetDescription("locked door");

or perhaps even,

hDoor.SetDescription = "locked door";

Cheers,
Sparky.
Title: Re: [SUGGESTION] Hotspot.Description property
Post by: Dualnames on Sat 26/06/2010 12:13:31
You can always use properties to adjust yourself, but definitely that'd be very user friendly and cool.
Title: Re: [SUGGESTION] Hotspot.Description property
Post by: Ryan Timothy B on Sat 26/06/2010 17:50:59
Well, you could always just change the label text whenever a bool is true.  Like:

label.Text = Game.GetLocationName(mouse.x, mouse.y);
if (lockedDoor && label.Text==hotspot[3].Name && player.Room==4) label.Text="Locked Door";


It could be all kept in the global script for organization, or simply just the room script.  Sure it's not as "professional" and seems like spaghetti coding, but it does work.  And there are instances where this could cause issues, but it could always be written better.
Title: Re: [SUGGESTION] Hotspot.Description property
Post by: subspark on Sun 27/06/2010 09:17:49
Thanks guys. We're already using workarounds but it would be nice to make use of official support.
Cheers,
Sparky.
Title: Re: [SUGGESTION] Hotspot.Description property
Post by: Rocco on Mon 28/06/2010 12:33:29
renaming hotspot descriptions would be very useful, i also have to deal with this issue.
Title: Re: [SUGGESTION] Hotspot.SetDescription(); writable property
Post by: subspark on Mon 04/10/2010 21:45:50
Yeah I hope such a trivial feature makes a 3.3 beta.

Cheers,
Sparky.