Skip to content

IsPlayerClassCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if the target entity is a Player with a specific class ID. Uses EntityCondition targeting to determine which entity to check.

Properties ​

intrequired_class_id0
boolhas_classtrue

Methods ​

boolevaluate_entity( entity: Entity )
Stringget_entity_description()
boolis_valid()
Stringget_expected_argument_type()
Stringget_entity_function_description()

Property descriptions ​

Class Check

int required_class_id = 0 ​

The class ID to check for

bool has_class = true ​

Whether to check if entity is this class (true) or doesn't have it (false)

Method descriptions ​

bool evaluate_entity( entity: Entity ) ​

Is the condition met for this entity?

String get_entity_description() ​

A short text about what the condition checks on the entity.

bool is_valid() ​

Are the settings of the condition complete?

String get_expected_argument_type() ​

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

String get_entity_function_description() ​

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