Skip to content

LocalVariableFloatCondition ​

Inherits: Condition < Resource

Checks if a local float variable in an event meets certain criteria

Properties ​

Stringvariable_key""
Condition.CheckLogiccheck_logicCondition.CheckLogic.EQUAL
floatcompare_value0.0
floatepsilon0.0001 # For float equality comparison

Methods ​

boolevaluate( argument: Variant = null )
Stringget_description()
Stringget_function_description()
Stringget_expected_argument_type()
boolis_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

float compare_value = 0.0 ​

The value to compare with

float epsilon = 0.0001 # For float equality comparison ​

How close two numbers must be to count as equal (for the equal and not-equal checks)

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?