International organization
Union
A union is a type of Treaty that happens when two or more Countries have come to have the same Ruler due to Royal Marriages. This functions like a defensive Alliance in that they will come to each other's help automatically if they are attacked, but Laws can be added to them to change how the union works. The most important member in the union is called the Senior Partner, while the rest of countries in a union are the Junior Partners.
Properties
- Has target
- No
- Disband if no leader
- No
- Expel members who are targets of other members
- No
- Custom name
- union name
- Has leader country
- Yes
- Leader change trigger type
- Rulerchange
- Leader type
- Character
- Special statuses implemented
senior partner, junior partner
- Assists in rebellions
- Yes
- Assists in civil wars
- Yes
- Fog of war lifted
- Yes
- Show on diplomatic map
- Yes
Conditions
Can annex members
- Not: Is a Subject of another Country
- A non-Subject game concept senior partner has been established and the appropriate Policy in the Question of Unification has been enacted
- the target:
- Not: Is a Subject of another Country
Can annex visible
- Has '' status in the the recipient
- Scope:recipient modifier:enable annexation of members
Join defensive wars always
- Always
Can initiate policy votes
- the recipient:
- Has this as a Member
- Any of:
- Not: Has enacted Establish Seniority
- Country is senior partner (country this)
- All of:
- Has enacted Establish Seniority
- policy vote):
- Resolution target (…) is Union Foundation
Can declare war
- Trigger if:
- Where:
- the attacker:
- Is a member of the recipient
- Modifier:union blocked from declaring war
- the attacker:
- We can only declare a War against … as they used Rein in Junior Diplomacy on us
- Where:
- Trigger if:
- Where:
- the defender:
- Is a member of the recipient
- the defender:
- Trigger if:
- Where:
- the recipient:
- Has enacted Establish Seniority
- the recipient:
- Any of:
- the attacker:
- Not: Is a member of the recipient
- the recipient:
- Country has special status (type Senior Partner, country the defender)
- the attacker:
- Where:
- Trigger else:
- the attacker:
- Not: Is a member of the recipient
- the attacker:
- Where:
- Trigger if:
- Where:
- the attacker:
- Not: Is a member of the recipient
- the attacker:
- None of:
- the recipient:
- Any member
- the recipient:
- Where:
- Trigger else:
- the defender:
- Any of:
- Not: Is a Subject of another Country
- Is a Subject of the attacker
- The overlord:
- Not: Is a member of the recipient
- Any of:
- the defender:
Create visible trigger
- Never
Invite visible trigger
- Never
Join visible trigger
- Never
Can join trigger
- Countries cannot join a Union directly. Membership is determined by a shared Ruler and succession.
Can leave trigger
- Countries cannot leave a Union directly. Membership ends when countries no longer share the same Ruler through succession.
Auto leave trigger
- Countries cannot leave a Union directly. Membership ends when countries no longer share the same Ruler through succession.
Auto disband trigger
- Has a total of less than 2 members
Effects
On creation
- If union flavor is spain:
- If has DLC: Across the Pillars:
- Set international organization icon: throne room castile
- If the actor exists:
- the actor:
- The Event ':flavor iberian union.2 flavor iberian union.2' happens
- the actor:
- If has DLC: Across the Pillars:
On joined
- Recalculate union parliament issue support (io the recipient)
- If:
- Has Variable: integrated in union
- Var:integrated in union is more than the recipient's modifier:union integration level
- Not: Has Variable: union no integration reset
- Then:
- Set individual integration level (international organization the recipient, value 0)
- If:
- the recipient:
- Union flavor is spain
- Not: Has Variable: iberian union active
- the recipient:
- Then:
- the recipient:
- If has DLC: Across the Pillars:
- Set international organization icon: throne room castile
- If has DLC: Across the Pillars:
- The Event ':flavor iberian union.2 flavor iberian union.2' happens
- the recipient:
On left
- Recalculate union parliament issue support (io the recipient)
Technical details
- Game id
io:union- Defined in
in_game/common/international_organizations/union.txt:1
Formulas
Diplomatic capacity cost
- + Union Partners
- scope:recipient = {'add': [{'desc': 'UPKEEP_UNION_INTEGRATION', 'value': 'modifier:union_integration_level', 'multiply': ['total_members', 0.1]}, {'desc': 'UPKEEP_TOTAL_ECO_BASE', 'value': 'international_organization_economical_base', 'subtract': 'root.country_economical_base', 'multiply': 0.00025}]}
Ai
- Ai desire to allow new member
- Add
- Desc
- WE_WANT_THE_ORGANIZATION_TO_GROW
- Value
- 20
Other
- Leader
- Every international organization member
- If
- Limit
- Ruler or heir if regent
- ?=
- …
- Ruler or heir if regent
- ?=
- Add to list
- Leaders
- Else if
- Limit
- Has regent
- Yes
- Regent
- ?=
- Add to list
- Leaders
- Laws
Union Foundation- union maintain federal status policy
Codified Inheritance- union sovereign succession law
- Annexation min years before
- Value
- 50
- Add
- scope:recipient.modifier:years_to_annex_members