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 ​
int | spawner_id | 0 |
SpawnerEvent | spawner_event | SpawnerEvent.CLEARED |
Methods ​
String | get_display_name() |
String | get_function_description() |
void | setup() |
void | cleanup() |
bool | is_triggered( event_data: Dictionary ) |
String | generate_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