GlobalVariableCondition ​
Inherits: Condition < Resource
Universal condition for checking global variables of any type
Properties ​
String | variable_key | "" |
Condition.CheckLogic | check_logic | Condition.CheckLogic.EQUAL |
int | compare_int | 0 |
float | compare_float | 0.0 |
bool | compare_bool | false |
String | compare_string | "" |
Methods ​
bool | evaluate( argument: Variant = null ) |
String | get_description() |
String | get_function_description() |
String | get_expected_argument_type() |
bool | is_valid() |
Property descriptions ​
Variable Check
String variable_key = "" ​
The key of the variable
Condition.CheckLogic check_logic = Condition.CheckLogic.EQUAL ​
How the variable is compared with the value
Compare Values
int compare_int = 0 ​
The value to compare with, for a whole-number variable
float compare_float = 0.0 ​
The value to compare with, for a decimal variable
bool compare_bool = false ​
The value to compare with, for a true-or-false variable
String compare_string = "" ​
The value to compare with, for a text variable
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?