Skip to content

SpawnerTrigger ​

Inherits: EventTrigger < Resource

Triggers when something happens at a spawner: it makes something, what it made is gone (all the NPCs of a group killed, the object used up, the items taken), or it is switched on or off. A quest objective of "the wolves are cleared" is the second one. See docs: World > Spawners.

Properties ​

intspawner_id0
SpawnerEventspawner_eventSpawnerEvent.CLEARED

Methods ​

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

Enumerations ​

enum SpawnerEvent ​

What happened at the spawner

  • SPAWNED = 0
  • CLEARED = 1
  • TURNED_ON = 2
  • TURNED_OFF = 3

Property descriptions ​

int spawner_id = 0 ​

The spawner (a placed Spawner of a world: Uniques > Spawners)

SpawnerEvent spawner_event = SpawnerEvent.CLEARED ​

What to wait for

Method descriptions ​

String get_display_name() ​

Return the display name for this trigger

String get_function_description() ​

Return the function description with parameter placeholders

void setup() ​

Set up any listeners or connections needed by this trigger

void cleanup() ​

Clean up any listeners or connections

bool is_triggered( event_data: Dictionary ) ​

Check if this trigger is currently active

String generate_objective_description() ​

Generate quest objective description