Skip to content

SpawnerAliveCountCondition ​

Inherits: Condition < Resource

Checks how many things a spawner made are standing now (NPCs that are alive, objects that are there, items that lie): "the wolves of the forest are all dead" is a count of 0. See docs: World > Spawners.

Properties ​

intspawner_id0
Condition.CheckLogiccomparison_logicCondition.CheckLogic.EQUAL
inttarget_count0

Methods ​

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

Property descriptions ​

int spawner_id = 0 ​

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

Condition.CheckLogic comparison_logic = Condition.CheckLogic.EQUAL ​

How the count is compared with the number

int target_count = 0 ​

The number to compare the count with

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?