Skip to content

ZoneTrigger ​

Inherits: EventTrigger < Resource

Triggers when the party enters or leaves a zone. The zone counts when the party is in it or in one of its sub-zones: a trigger for Elderwood fires when the party walks into Elderwood from outside, whether it arrives in the forest itself or straight in The Old Mill inside it, and does not fire when it walks between the two. As the trigger of a quest objective it is "Reach the zone" (an objective is complete at once when the party is already there when it starts). See docs: World > Zones.

Properties ​

intzone_id0
TriggerModetrigger_modeTriggerMode.ON_ENTER

Methods ​

Stringget_display_name()
Stringget_function_description()
voidsetup()
voidcleanup()
voidpoll()
boolis_triggered( event_data: Dictionary )
Stringgenerate_objective_description()

Enumerations ​

enum TriggerMode ​

The options of trigger mode: on enter, on exit, on both.

  • ON_ENTER = 0
  • ON_EXIT = 1
  • ON_BOTH = 2

Property descriptions ​

int zone_id = 0 ​

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

TriggerMode trigger_mode = TriggerMode.ON_ENTER ​

When to trigger (enter, exit, or both)

Method descriptions ​

String get_display_name() ​

The name of the trigger in the editor.

String get_function_description() ​

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

void setup() ​

Starts listening: connects the signals of the zone tracker.

void cleanup() ​

Stops listening: disconnects the signals of the tracker.

void poll() ​

The party may be in the zone already when an objective starts to listen.

bool is_triggered( event_data: Dictionary ) ​

Does this event data satisfy the trigger? Called when the signal the trigger listens to fires.

String generate_objective_description() ​

The line of the quest objective this trigger makes ("Reach Elderwood").