Skip to content
HOI4DOC

set_temp_variable

Details

Sets a temporary variable to a value, another variable, or a math expression.

Examples

set_temp_variable = { num_dogs = 42 }
set_temp_variable = {
	var = num_dogs
	value = 42
	tooltip = loc_str_id_with_LEFT_and_RIGHT
}
set_temp_variable = {
	num_dogs = { value = num_cats  multiply = 2  add = 1 }
}

Source: Triggers Documentation

Name
Supported Scopes
Any
Supported Targets
none