Condition ​
Inherits: Resource
Inherited by: ChestContainsItemCondition, DoorStateCondition, EncounterCondition, EntityCondition, EventActiveEntityCondition, EventCompletedEntityCondition, GameTimeCondition, GlobalVariableCondition, GroundWeatherCondition, InteractableHealthCondition, LocalVariableBoolCondition, LocalVariableFloatCondition, LocalVariableIntCondition, LocalVariableStringCondition, OrCondition, PartyIncludesClassCondition, PartySizeCondition, PlayerInZoneCondition, PlayerTriggerAreaPresenceCondition, ShelteredCondition, SpawnerActiveCondition, SpawnerAliveCountCondition, TriggerAreaPresenceCondition
Base class for all conditions that evaluate game state. Conditions return true or false based on current game state and optional arguments.
Variables ​
GameHost.SystemHub | system_hub |
Methods ​
void | set_system_hub( p_system_hub: GameHost.SystemHub ) |
bool | evaluate( argument: Variant = null ) |
String | get_description() |
String | get_function_description() |
bool | is_valid() |
String | get_expected_argument_type() |
Enumerations ​
enum CheckLogic ​
The options of check logic: equal, greater, less, greater equal, less equal, not equal, contains, not contains.
- EQUAL =
0 - GREATER =
1 - LESS =
2 - GREATER_EQUAL =
3 - LESS_EQUAL =
4 - NOT_EQUAL =
5 - CONTAINS =
6 - NOT_CONTAINS =
7
Variable descriptions ​
GameHost.SystemHub system_hub ​
GameHost access for condition flexability
Method descriptions ​
void set_system_hub( p_system_hub: GameHost.SystemHub ) ​
Gives the condition the hub of the game systems.
bool evaluate( argument: Variant = null ) ​
Evaluate this condition with an optional argument Override this in subclasses to implement specific logic @param argument: Optional data needed for evaluation (Entity, Encounter, etc.) @return: true if condition is met, false otherwise
String get_description() ​
Get a human-readable description of this condition (for editor/debugging) Override in subclasses to provide meaningful descriptions
String get_function_description() ​
Get function description with placeholders for EventTypeSelectionDialog inline editing Override in subclasses to provide template with {parameter_name} placeholders Falls back to get_description() if not overridden
bool is_valid() ​
Validate that this condition is properly configured Override in subclasses to check required fields
String get_expected_argument_type() ​
Get the expected argument type for this condition (for editor hints) Override in subclasses to specify what argument type is expected