Skip to content
HOI4DOC

set_variable

Details

Sets a variable to a value, another variable, or a math expression.
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 }
}

Source: Effects Documentation

Name
Type
Effect
Supported Scopes
Any
Supported Targets
none