Difference between revisions of "%object%.OpenStatus function"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
m (How to use)
m (Examples)
 
Line 24: Line 24:
  
 
== Examples ==
 
== Examples ==
*<span style="color:red">Character7</span>.OpenStatus  
+
*<span style="color:red">Object7</span>.OpenStatus  
: Prints the Open/Closed/Locked status of the object with the [[key]] "Character7".
+
: Prints the Open/Closed/Locked status of the object with the [[key]] "Object7".
  
 
*<span style="color:green">%object%</span>.OpenStatus  
 
*<span style="color:green">%object%</span>.OpenStatus  

Latest revision as of 08:19, 8 January 2013

The OpenStatus function returns the state of an object that can be opened and closed, as one of the three words: "Open", "Closed" or "Locked".

Properties

The "Object can be open and closed" property must be selected for this function to give any output.

The selected radio-button determines whether this function returns "Open" or "Closed".

PropertyObjectOpenClose.jpg

Selecting the "Object can be locked" property changes the "Open status" property from two radio-buttons marked "Open" and "Closed", to a drop-down list with the third option "Locked".

The OpenStatus function will now return whichever of the three options is selected.

PropertyObjectLockable.jpg

The "Key for Lock" property also becomes available. This property must be set to a dynamic object that will be used as the key to unlock this object.

How to use

This function simply returns the current state of the "Open status" property as a single word that is inserted into the text.

If the "Object can be open and closed" property has not been selected, then this function does nothing.

No further functions can be appended to it.

Examples

  • Object7.OpenStatus
Prints the Open/Closed/Locked status of the object with the key "Object7".
  • %object%.OpenStatus
Prints the Open/Closed/Locked status of the referenced object, in a task with an %object% reference.


<<< LockStatus Object FunctionsName >>>