effect · set_variable
Definition
- Supported scope:
any - Supported target:
none
Description
Sets a variable to a value, another variable, or a [math expression](script_math_expression.md).
`tooltip` can be used to override tooltip title with LEFT and RIGHT tokens.
### Examples
set_variable = { num_dogs = 42 } set_variable = { var = num_dogs value = 42 tooltip = loc_str_id_with_LEFT_and_RIGHT } set_variable = { num_dogs = { value = num_cats multiply = 2 add = 1 } }