Location (property type)

From ADRIFT 5 Manual Wiki
Revision as of 01:59, 13 September 2013 by Saabie (Talk | contribs) (moved Location property type to Location (property type): clarify title)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
THE MAIN ITEMS
Locations
Objects
Tasks
Characters
Events
Variables
Groups
Properties
---- Character
---- Integer
---- Location Group
---- Location
---- Object
---- Selection
---- State
---- Value
---- Text
Text Overrides
Hints
Synonyms
User functions

A location property stores the key of a single location.

Properties

If the "Location of the character" property of a character is set to "At Location", then the "At which location?" property becomes available, which is a location property.

PropertyAtLocation.jpg

Requirements

Before using the value of the location property, we first need to check that the property is selected.

To test if the "At which location?" property is selected, we can check that its parent property "Location of the character" is currently set to "At Location":

RestrictionLocationOfChar.jpg

Testing the property

In the following example we are testing if the player is currently in the front yard.

RestrictionFrontYard.jpg

Creating a new location property

Create a new property by clicking the "Add new property" button at the bottom of the Properties tab of a Character, Location, or Object. You can also right-click the open "Properties" folder and select "Add Property", or right-click any other open folder and select "Add new/Property".

NewPropertyLocationList.jpg

  • Give the new property a description.
  • Ensure that "property of" is correctly set (Characters, Objects or Locations)
  • Set the property "Type" to "Location".
  • Tick the "Mandatory" box if you want this property to always be selected.
  • If you want the drop-down list to only show locations with a certain property, then set the "Restrict by property" and "Restrict by value" fields.
  • If you only want this property to appear on the property tab if the item has a particular characteristic, then select the name of a particular property and the value it must have before this property is shown.


<<< Location-Group property typePropertiesObject property type >>>