GetRoomProperty (string property)
Returns the custom property setting of the PROPERTY for the current room.
This command works with Number properties (it returns the number), and with Boolean
properties (returns 1 if the box was checked, 0 if not).
Use the equivalent Room.GetTextProperty function to get a text property.
Note that you cannot retrieve room properties of other rooms - only the current room
can be checked.
Example:
if (GetRoomProperty("CanBeAttackedHere"))
Display("An evil monster lunges at you!");
will print the message if the current room has its "CanBeAttackedHere" box ticked.
See Also: Room.GetTextProperty
|