trigger · check_variable
Definition
- Supported scope:
any
- Supported target:
any
Description
Compares a variable to a number or another variable
ex:
check_variable = {
var = varname
value = 12 # accepts variables
compare = equals
# possible values for compare :
# less_than, less_than_or_equals
# greater_than, greater_than_or_equals
# equals, not_equals
tooltip = loc_str_id_with_LEFT_and_RIGHT #localized text with LEFT and/or RIGHT tokens in it
}
# some shorter versions :
check_variable = { varname = 0 }
check_variable = { varname > 12 }
check_variable = { varname < 42 }
check_variable = { varname > another_varname }