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 ​
int | required_class_id | 0 |
bool | has_class | true |
Methods ​
bool | evaluate_entity( entity: Entity ) |
String | get_entity_description() |
bool | is_valid() |
String | get_expected_argument_type() |
String | get_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.