On ActionChanged this version
on_union_formation
- Every international organization member
- IfHas special status in international organization
- Type:
Senior Partner - International Organization: Root
- Type:
- IfHas special status in international organization
- Type:
Junior Partner - International Organization: Root
- Type:
- IfFirst leader existsThen
- Set leader country: Union leader
- Bestows '
Senior Partner' status on Union leader - If
- Ruler exists
- Ruler
- Owner exists
- Owner: NotUnion leader
ThenRuler - Every international organization memberwhereThis: NotUnion leaderRootBestows '
Junior Partner' status on Previous
- Every international organization memberwhereHas Variable: temp_has_participated_in_parliament
- Remove variable: temp_has_participated_in_parliament
- Set participated in parliament: International Organization: Previous
- RootChange parliament issue support:
special_status_power_fraction(scope:union_parliament_participant|special_status:junior_partner)
- recalculate_union_parliament_issue_support: Io: RootNot shown in the game's tooltip↗IfRoot›Has ongoing parliament debateThenRoot
- Set parliament issue support: 0%
- Every international organization memberwhere
- Has participated in the Parliament of Root
- Has voted in the Parliament of Root in favor of the proposed Parliament Issue
RootChange parliament issue support:special_status_power_fraction(scope:target|special_status:junior_partner)
- If
- Has DLC:
Across the Pillars - Any international organization member›Has Variable: iu_catholic_monarchs_choice
Then- Random international organization memberwhereHas Variable: iu_catholic_monarchs_choice
- IfIu choice member›var:iu_catholic_monarchs_choice:
flag:tanto_montaThen
Tanto Monta is enactedElse ifIu choice member›var:iu_catholic_monarchs_choice:flag:dynastic_primacyThen- IfIu dominant crown existsThen
- Set variable
- Name: pre_selected_senior_partner
- Value: Iu dominant crown
Establish Seniority is enacted- Iu dominant crownset_senior_partner↗IfUnion existsThen
- Add cooldown: Type:
take_over_seniority· Years: 25 - Union
- IfThenapply_union_levels: Level: 1
- Set local variable
- Name:
union_levels - Value: 1
- 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
- Every country with special status of type
- Type:
senior_partner - UnionRemoves '
Senior Partner' status from Previous
- Type:
- Bestows '
Senior Partner' status on New senior partner - Set variable
- Name: union_senior_partner
- Value: New senior partner
- If
- Does NOT have Variable: union_ruler_character
- New senior partner›Has a Ruler
- If
- Does NOT have Variable: union_heir_character
- New senior partner›Has an Heir
- If
- Has Variable: union_ruler_character
- var:union_ruler_character
- Is Alive
- Owner: NotPrevious›var:union_senior_partner
- If
- Has Variable: union_heir_character
- var:union_heir_character
- Is Alive
- Owner: NotPrevious›var:union_senior_partner
- Add cooldown: Type:
Unified Succession Law is enacted
- Set variable
Dynastic Primacy is enacted
- Every international organization memberwhereHas Variable: iu_catholic_monarchs_choiceRemove variable: iu_catholic_monarchs_choice
- Has DLC:
Exact script
Requires 3
Special Statuses
Junior PartnerEffect
Senior PartnerEffect
DLCs
Across the PillarsEffect
Grants 6
Policies
Dynastic PrimacyEffect
Tanto MontaEffect
Establish SeniorityEffect
Unified Succession LawEffect
Special Statuses
Junior PartnerEffect
Senior PartnerEffect
Removes 2
Junior PartnerEffect
Senior PartnerEffect
Scripting 8
Requires 2
Grants 1
Removes 2
Uses 3
- Mmove_country_with_familycountry = scope:union_leaderEffect
- Rrecalculate_union_parliament_issue_supportio = rootEffect
- Sset_senior_partnerEffect

