Skip to content

PlayerInZoneCondition ​

Inherits: Condition < Resource

Checks whether the party is in a zone. The zone counts when the party is in it or in one of its sub-zones: "the party is in Elderwood" is true in The Old Mill. See docs: World > Zones.

Properties ​

intzone_id0
boolrequire_presencetrue

Methods ​

boolevaluate( _argument: Variant = null )
Stringget_description()
Stringget_function_description()
Stringget_expected_argument_type()
boolis_valid()

Property descriptions ​

Zone Check

int zone_id = 0 ​

The zone to check (a Zone of the database: World > Zones)

bool require_presence = true ​

Whether the party should be in the zone (true) or outside it (false)

Method descriptions ​

bool evaluate( _argument: Variant = null ) ​

Is the condition met?

String get_description() ​

A short text about what the condition checks.

String get_function_description() ​

The sentence the editor shows for the condition, with {placeholders} for its values.

String get_expected_argument_type() ​

The kind of thing the condition is checked against (an entity, an encounter ...).

bool is_valid() ​

Are the settings of the condition complete?