Scripted Effect
create_union_of_integration_level
If
- Is NOT in a Union with target
$target$Union does not exist
Then
Forms a Union with target of level Union Integration Level
If
Union exists
Then
- Will create a Union with target
- If
- Applied level exists
- Temp target union exists
Then$target$set_individual_integration_level: Applied level · International Organization: Temp target unionSets the Union Integration Level in Temp target union to Applied level↗- Set variable
- Name: integrated_in_union
- Value: Applied level
- If
- Has Variable: integrated_in_union
- var:integrated_in_union < 0
Otherwise
- Will create a Union with target
- Unionapply_union_levels: Level: level
- Set local variable
- Name:
union_levels - Value: level
- Name:
- If
local_var:union_levels≥ 1Then
Establish Seniority is enacted - If
local_var:union_levels≥ 2Then
Unified Succession Law is enacted - If
local_var:union_levels≥ 3Then
Unified Treasury is enacted - If
local_var:union_levels≥ 4Then
Unified External Diplomacy is enacted - If
local_var:union_levels≥ 5Then
Aligned Legislature is enacted - If
local_var:union_levels≥ 6Then
Unification of Crowns is enacted - If
local_var:union_levels: 7Then
Swift Unification of Crowns is enactedElse iflocal_var:union_levels: 8Then
Rapid Unification of Crowns is enacted - Remove local variable:
union_levels
- Set local variable
Exact script
Script that calls it fills these in, as each caller in Connections shows.
$target$$level$
Requires 1
References 1
Scripting 3
Grants 1
Uses 2
- apply_union_levelslevel = $level$If
- set_individual_integration_levelinternational_organization = scope:temp_target_union · value = scope:applied_levelIf



