Skip to content

LocalVariableStringCondition ​

Inherits: Condition < Resource

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

Properties ​

Stringvariable_key""
StringComparisoncomparisonStringComparison.EQUALS
Stringcompare_value""
boolcase_sensitivetrue

Methods ​

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

Enumerations ​

enum StringComparison ​

The options of string comparison: equals, not equals, contains, not contains, starts with, ends with, is empty, is not empty.

  • EQUALS = 0
  • NOT_EQUALS = 1
  • CONTAINS = 2
  • NOT_CONTAINS = 3
  • STARTS_WITH = 4
  • ENDS_WITH = 5
  • IS_EMPTY = 6
  • IS_NOT_EMPTY = 7

Property descriptions ​

Variable Check

String variable_key = "" ​

The key of the variable

StringComparison comparison = StringComparison.EQUALS ​

How the text is compared: equals, contains, starts or ends with, is empty ...

String compare_value = "" ​

The text to compare with

bool case_sensitive = true ​

Capital letters must match

Method descriptions ​

String get_function_description() ​

The sentence the editor shows for the condition, with {placeholders} for its values.

bool evaluate( argument: Variant = null ) ​

Is the condition met?

String get_description() ​

A short text about what the condition checks.

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?