Difference between revisions of "Object (property type)"
(Object List property -> Object property) |
m |
||
Line 1: | Line 1: | ||
+ | {| style="width:12em; font-size:90%; text-align:left; float:right; border:1px #CCC solid; margin-left:1em; margin-bottom:1em;" cellpadding="3" cellspacing="0" | ||
+ | ! colspan="2" style="font-size:110%; text-align: center; background-color: #ccccff;" | ''THE MAIN ITEMS'' | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Locations]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Objects]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Tasks]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Characters]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Events]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Variables]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Groups/Classes|Groups]] | ||
+ | |- | ||
+ | | style="background-color: #00ff00;" | [[Properties ]] | ||
+ | |- | ||
+ | | ---- [[Character property type|Character]] | ||
+ | |- | ||
+ | | ---- [[Integer property type|Integer]] | ||
+ | |- | ||
+ | | ---- [[Location group property type|Location Group]] | ||
+ | |- | ||
+ | | ---- [[Location property type|Location]] | ||
+ | |- | ||
+ | | style="color: #ffffff; background-color: #000000;" | ---- Object | ||
+ | |- | ||
+ | | ---- [[Selection only property type|Selection]] | ||
+ | |- | ||
+ | | ---- [[State property type|State]] | ||
+ | |- | ||
+ | | ---- [[Value property type|Value]] | ||
+ | |- | ||
+ | | ---- [[Text property type|Text]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Text Overrides]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Hints]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[Synonym|Synonyms]] | ||
+ | |- | ||
+ | | style="background-color: #00C000;" | [[User functions]] | ||
+ | |} | ||
+ | |||
An object property stores the [[key]] of a single [[Objects|object]]. | An object property stores the [[key]] of a single [[Objects|object]]. | ||
Revision as of 08:02, 8 September 2013
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 |
An object property stores the key of a single object.
Properties
If the "Location of the character" property of a character is set to "On Object", then the "On which object?" property becomes available, which is an object property.
Requirements
Before using the value of the object property, we first need to check that the property is selected.
To test if the "On which object?" property is selected, we can check that its parent property "Location of the character" is currently set to "On Object":
Testing the property
In the following example we are testing if the player is currently sitting on the chair object.
Creating a new object 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".
- Give the new property a description.
- Ensure that "property of" is correctly set (Characters, Objects or Locations)
- Set the property "Type" to "Object".
- 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 property type | Properties | Selection-only property type >>> |