Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Atelier on Wed 22/12/2010 13:37:58

Title: Room Name in Label [SOLVED]
Post by: Atelier on Wed 22/12/2010 13:37:58
I want to set a label so it shows the name of the room the player is in. But how can I get the value of that String?

Atelier.
Title: Re: Room Name in Label
Post by: monkey0506 on Wed 22/12/2010 13:53:01
There's no Room.Name or anything like that, but you can use a custom property (http://americangirlscouts.org/agswiki/Other_features_(manual)#Custom_Properties) to store the value. You can even set it via the Properties Schema Editor to only apply to rooms. Then you can retrieve the value using Room.GetTextProperty (http://americangirlscouts.org/agswiki/Room_functions#Room.GetTextProperty).
Title: Re: Room Name in Label
Post by: Atelier on Wed 22/12/2010 16:06:59
Cheers monkey.