International organization

Coalition

A Coalition is a group of Countries that band together due to their Antagonism towards another Country, with the goal of checking any potential aggression. Members of a coalition will defend each other if the target attacks one of them, and may declare War on the target.

Properties

Has target
Yes
Embargo
Yes
Show on diplomatic map
Yes
Expel members who are targets of other members
Yes
Expel members who are attackers at war with other members
Yes
Expel members who are defenders at war with other members
Yes
Has leader country
Yes
Leader type
Country
Show strength comparison with target
Yes
Declare war on target casus belli
Cb coalition
Promote strongest member to war leader
Yes
Gives food access to members
Yes

Conditions

Create visible trigger

  • Always

Invite visible trigger

  • Always

Join defensive wars always

  • the target:
    • If this country's international organization target exists:
      • This is this country's international organization target
    • Otherwise:
      • Never

Join offensive wars always

  • the target:
    • If this country's international organization target exists:
      • This is this country's international organization target
    • Otherwise:
      • Never
  • If the casus belli exists:
    • The casus belli is Coalition

Can declare war

  • Always

Potential target trigger

  • Any Country has at least 40 Antagonism and is thus close to being able to form a Coalition

Can target trigger

  • Any Country has at least 50 Antagonism and is thus able to form a Coalition

Can join trigger

  • Scope country can join coalition against (target the target)

Can leave trigger

  • Any of:
    • Not:
      • The target exists
    • Not:
      • Is at War with the target

Auto disband trigger

  • Or:
    • Has a total of less than 1 members
    • Not:
      • The target exists

Auto leave trigger

  • If the target exists:
    • Or:
      • All of:
        • Is a Subject of another Country
        • Is not a Tributary
      • And:
        • Not:
          • Is at War with the target
        • Or:
          • Giving anti coalition treaty to anti coalition treaty
          • Has a Truce with the target
          • Is a Subject (or below) of the target
          • the target:
            • Is a Subject (or below) of this
          • Is in a Union with the target
          • Antagonism:
            • Target is the target
            • Value is less than 30
  • Otherwise:
    • Always

Effects

On joined

  • Gains a Coalition Casus Belli on the target for

On left

  • Lose the Coalition Casus Belli on the target
Technical details
Game id
io:coalition
Defined in
in_game/common/international_organizations/coalition.txt:1

Formulas

  • + Base Value: 1

Ai

Ai desire to join
Add
Desc
AT_WAR_TRIGGER
If
Limit
Is at war with
scope:target
Value
20
Desc
game concept antagonism
Scope:target
prev antagonism towards this
Desc
DISTANCE_TO_TARGET
Scope:target
Value
border_distance_to(root)
Multiply
−0.5
Desc
OPINION
Value
opinion(scope:target)
Multiply
−0.5
Max
0
If
Limit
Exists
scope:recipient
Scope:recipient
?=
Add
Desc
CURRENT_SIZE_COMPARED_TO_TARGET
Value
organization_strength_relative_to_country(scope:target|yes)
Add
−5
Multiply
−25
Limit
NOT
Exists
scope:recipient
Add
Desc
CURRENT_SIZE_COMPARED_TO_TARGET
Value
relative_strength(scope:target)
Add
−0.5
Multiply
40
Limit
Scope:target
Border distance to(root)
>
300
Add
−1,000
Ai desire to allow new member
Add
Desc
WE_WANT_THE_ORGANIZATION_TO_GROW
Value
20

Other

Leader color
define:NMapColors|INTERNATIONAL_ORGANIZATION_LEADER_COLOR
Target color
define:NMapColors|INTERNATIONAL_ORGANIZATION_TARGET_COLOR