Scripted Effect
create_union_of_integration_level
Union Integration LevelModifier TypeifDefinitionin_game/common/scripted_effects/country_effects.txt:2288
2289if = {
2290limit = {
2291NOT = {
2291in_union_with = $target$
}
2292$target$ = {
2292NOT = {
2292exists = union
}
}
}
2294custom_description = {
2295text = create_union_of_integration_level
2296object = $target$
2297value = $level$
2298if = {
2299limit = {
2299exists = union
}
2300union ?= {
2301if = {
2303save_temporary_scope_value_as = {
2304name = applied_level
2305value = $level$
}
2307save_temporary_scope_value_as = {
2308name = current_level
}
2311if = {
2312limit = {
2312scope:applied_level > scope:current_level
}
2313save_temporary_scope_value_as = {
2314name = applied_level
2315value = scope:current_level
}
}
}
2319save_temporary_scope_as = temp_target_union
}
2321create_union = $target$
2322if = {
2323limit = {
2324exists = scope:applied_level
2325exists = scope:temp_target_union
}
2327$target$ = {
2329value = scope:applied_level
2330international_organization = scope:temp_target_union
}
}
}
}
2335else = {
2336create_union = $target$
}
}
}