International organization

Independence Movement

It is time to shake off the shackles of our Overlords and fight for freedom! Independence movements can begin at any time, but are more likely to occur if a Subject is dissatisfied with life under their current leader. An independence movement can quickly gain supporters if we are unpopular.

Properties

Has target
Yes
Unique
No
Expel members who are targets of other members
Yes
Expel members who are attackers at war with other members
Yes
Has leader country
Yes
Leader type
Country
Leader change method
None
Disband if no leader
Yes
Show on diplomatic map
Yes
Subject limited
No
Show strength comparison with target
Yes
Declare war on target casus belli
Cb independence war
Custom name
Independence movement name

Conditions

Join offensive wars always

  • War is declared against their Overlord

Join defensive wars always

  • Or:
    • Their Overlord declares War
    • They are fighting the Overlord for independence

Create visible trigger

  • Is a Subject of another Country
  • If overlord exists:
    • Overlord is the target
  • Otherwise:
    • Never

Create enabled trigger

  • Is a Disloyal Subject

Invite visible trigger

  • Always

Can declare war

  • Always

Potential target trigger

  • Is an Overlord of another Country
  • Any subject:
    • Is a Disloyal Subject
    • Not:
      • Is allied with this
    • Not:
      • Is at War with this
    • Not:
      • Has a Truce with this
    • Not:
      • Is fighting a War together with this

Can lead trigger

  • Is a Subject of another Country

Can join trigger

  • If:
    • The recipient exists
    • the recipient:
      • Has a leader
  • Then:
    • Opinion:
      • Target is the recipient's leader country
      • Value is more than 0
  • Not: Is a Rebel state
  • Not:
    • Is allied with the target
  • Not:
    • Is at War with the target
  • Not:
    • Has a Truce with the target
  • Not:
    • Is fighting a War together with the target
  • Not:
    • Is in a Union with the target
  • the target:
    • None of:
      • Any overlord or above (this this)
      • Any overlord or above:
        • Is in a Union with this
      • Any related country:
        • Type is Alliance
        • Is in a Union with this
  • Or:
    • Not: Has only Limited Diplomacy available
    • Is a Subject of the target

Can leave trigger

  • Always

Auto leave trigger

  • Or:
    • Is allied with the target
    • Has a Truce with the target
    • All of:
      • Is a Subject of the target
      • Has more than 80 Subject Loyalty
      • Has only Limited Diplomacy available
      • Is a Subject of another Country
      • Is not a Subject of the target

Auto disband trigger

  • Leader country:
    • Or:
      • Has more than 80 Subject Loyalty
      • Not:
        • Overlord is the target
      • Is allied with the target
      • Has a Truce with the target

Effects

  • If:
    • the recipient:
      • Has a total of 1 members
  • Then:
    • Gains a Independence Casus Belli on Independence for
  • If the recipient's leader country exists:
    • the target:
      • A random current war:
        • Where:
          • Attacker leader is the recipient's leader country
          • Defender leader is the target
    • If the independence war exists:
      • Joins the independence war on the side of the independence war
Technical details
Game id
io:independence_movement
Defined in
in_game/common/international_organizations/independence_movement.txt:1

Ai

Ai desire to join
Add
Desc
BASE_REASON
Value
−50
Desc
ANTAGONISM_OF_TARGET
Scope:target
prev antagonism towards this
Desc
TRUST_OF_TARGET
Scope:target
Value
prev trust of this
Subtract
50
Multiply
−1
Save temporary value as

relative_strength_of_io

Value
Value
0
If
Limit
Exists
scope:recipient
Scope:recipient
Every international organization member
…
Add
root.country_strength
Else
Add
country strength

relative_strength_of_target

Value
Value
0
Scope:target
Add
country strength
Every subject
Limit
…
Subtract
country strength
Every related country
Type
Alliance
Limit
…
Add
country strength

combined_relative_strength

Value
Value
scope:relative_strength_of_target
Add
scope:relative_strength_of_io
If
Limit
Exists
  • scope:relative_strength_of_io
  • scope:relative_strength_of_target
Scope:relative strength of target
!=
0
Scope:combined relative strength
!=
0
Add
Desc
RELATIVE_STRENGTH_IO
Value
100
Multiply
Value
scope:relative_strength_of_io
Divide
scope:combined_relative_strength
Subtract
50
Max
25
Limit
Is during bankruptcy
Yes
Subtract
Desc
IS_BANKRUPT_TOOLTIP
Value
1,000
Limit
At war
Yes
Subtract
Desc
IS_AT_WAR
Value
50
Limit
Exists
scope:recipient
If
Limit
Is subject of
scope:target
If
Limit
Scope:recipient
…
Add
Desc
SAME_UNION_AS_ORGANIZATION
Value
200
Else
Save temporary value as

subjects_number

Value
Scope:recipient
…

average_subjects_opinion

Value
If
…
Else
0

average_subject_trust

Value
If
…
Else
0

non_subjects_number

Value
Value
scope:recipient.total_members
Subtract
scope:subjects_number
Add
DescValue
DIPLOREASON_AVERAGE_OPINION_OF_ORGANIZATIONscope:average_subjects_opinion
DIPLOREASON_AVERAGE_TRUST_OF_ORGANIZATIONscope:average_subject_trust
Subtract
Desc
ORGANIZATION_POWER
Value
Scope:recipient
…
Subtract
scope:target.country_economical_base
Min
0
Max
300
Limit
Is rival of
scope:target
Add
Desc
RIVAL_OF_TARGET
Value
100
Limit
Is enemy of
scope:target
Add
Desc
ENEMY_OF_TARGET
Value
50
Limit
NOT
Is subject of
scope:target
Subtract
Desc
DISTANCE_TO_TARGET
Scope:target
Value
border_distance_to(root)
Multiply
0.66
If
Limit
Scope:target
…
Add
1,000
Limit
Exists
scope:recipient
If
Limit
Tag
CAS
Scope:recipient.leader country
Has variable
mll sought castile support
Opinion
Target
scope:recipient.leader_country
Value
…
Add
Desc
MLL_PLEDGED_SUPPORT
Value
50
Limit
Tag
NAP
Scope:recipient.leader country
Has variable
mil sought naples support
Opinion
Target
scope:recipient.leader_country
Value
…
Add
Desc
MLL_PLEDGED_SUPPORT
Value
50
Limit
Tag
GEN
Scope:recipient.leader country
Has variable
mil sought genoa support
Opinion
Target
scope:recipient.leader_country
Value
…
Add
Desc
MLL_PLEDGED_SUPPORT
Value
50
Limit
Tag
FRA
Scope:recipient.leader country
Has variable
mll fra guarantees for independence
Add
Desc
MLL_PLEDGED_SUPPORT
Value
100
Else
Add
Desc
RELATIVE_STRENGTH_TO_TARGET
Value
100
Multiply
root.relative_strength(scope:target)
Subtract
50
Max
25
Add
Desc
game concept subject loyalty
Value
50
Subtract
subject loyalty
Multiply
5
Subtract
Desc
DIPLOREASON_IN_DEBT
Value
num loans
Multiply
20
Desc
[war_exhaustion|e]
Value
war exhaustion
Multiply
2
Desc
OPINION_OF_TARGET
Scope:target
Value
prev opinion of this
Multiply
0.4
Else if
Limit
Exists
scope:actor
If
Limit
Is rival of
scope:actor
Subtract
Desc
RIVAL_OF_ACTOR
Value
100
Limit
Is enemy of
scope:actor
Subtract
Desc
ENEMY_OF_ACTOR
Value
50
Limit
In union with
scope:actor
Is subject of
scope:target
Add
Desc
SAME_UNION_AS_ACTOR
Value
200
Add
Desc
OPINION_OF_SUBJECT
Scope:actor
Value
prev opinion of this
Multiply
0.4
Desc
TRUST_OF_SUBJECT
Scope:actor
Value
prev trust of this
Subtract
50
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