Boolean functions

From ADRIFT 5 Manual Wiki
Revision as of 06:35, 9 September 2013 by Saabie (Talk | contribs)

Jump to: navigation, search

The boolean item functions correspond to selection-only properties.

They can be used in two ways:

  • If used to read a property value, the function will return 0 if the property is not selected and 1 if it is selected.
  • If used with a group then the function will filter the group so that only those members which have that property selected will remain.

Common object properties

These properties are shared by both static and dynamic objects:

Surface

If the "Object is a supporter" property of an object is selected, then this object is a flat surface such as a table, chair or bed, on top of which other objects may be placed.

Selecting this property will also make four other properties available:

ObjectPropertiesCanHold.jpg

The first 3 are selection-only properties which determine whether a character (including the player) are able to lay down on, sit on or stand on this object.

The "...and the surface can hold" property indicates the number of objects that can be placed on this surface. This value can be read with the %object%.SurfaceHold function

Lieable

Sittable

Standable

Container

Openable

Lockable

CharactersCanGoInOb

Static object properties

Objects which are too big or heavy to pick up and move around will have these properties:

ExplicitlyList

Dynamic object properties

Objects that the player can pick up will have these properties:

Drinkable

Edible

Readable

Wearable

ExplicitlyExclude