I can't change the description of a hotspot(In code)

Started by doctorhibert, Sat 09/02/2019 23:08:43

Previous topic - Next topic

doctorhibert

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

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

morganw

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
...someone recently asked a similar question.

doctorhibert

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.

SMF spam blocked by CleanTalk