Skip to content

PartyIncludesClassCondition ​

Inherits: Condition < Resource

Checks if the party includes a specific character class. Simplified to check for a single class ID instead of an array.

Properties ​

intrequired_class_id0
intminimum_count1
boolcount_only_alivetrue

Methods ​

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

Property descriptions ​

Class Check

int required_class_id = 0 ​

The class ID to look for in the party

int minimum_count = 1 ​

Minimum number of players with this class required

bool count_only_alive = true ​

Whether to count only alive members (true) or all members (false)

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.

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 ...).