Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: doctorhibert on Sat 09/02/2019 23:08:43

Title: I can't change the description of a hotspot(In code)
Post by: doctorhibert on Sat 09/02/2019 23:08:43
So basically, I just want the label for a hotspot to change from what's set in the room settings. So the hotspot is called hWindow, and the description is "a". I want the description to change to "b". So I've looked in the manual, and I wrote this code
Code (ags) Select

hWindow.SetTextProperty("Description","b");

According to the manual this should work. I'm changing the Description property of hWindow, to show "b". Except when I try to run the game, it shows me this:
"GetProperty: no such property found in schema. Make sure you are using the property's name, and not its description, when calling this command." Is there a different name for the "Description" property? If so, what is it? Because otherwise I can't figure this out
Title: Re: I can't change the description of a hotspot(In code)
Post by: morganw on Sat 09/02/2019 23:14:04
This function is only for setting text values in custom properties.

If you look here:
https://www.adventuregamestudio.co.uk/forums/index.php?topic=56781.0 (https://www.adventuregamestudio.co.uk/forums/index.php?topic=56781.0)
...someone recently asked a similar question.
Title: Re: I can't change the description of a hotspot(In code)
Post by: doctorhibert on Sun 10/02/2019 00:39:33
I've realized that this doesn't fix the actual problem I have. If possible, delete this post. I'll resubmit in a day or two with my actual problem. Thank you.