International organization
Defensive League
A Defensive League is a group of Countries that mutually agree to defend each other if War is declared upon one of them.
Properties
- Has target
- No
- Expel members who are targets of other members
- Yes
- Expel members who are attackers at war with other members
- Yes
- Annulled by peace treaty
- Yes
- Annullment favours required
- 15
- Show on diplomatic map
- Yes
- Disband minimum member count
- 1
Conditions
Create visible trigger
- Not: Is a Subject of another Country
Invite visible trigger
- Always
Can declare war
- If:
- the attacker:
- Is a member of the recipient
- the attacker:
- Then:
- the defender:
- Is not a member of the recipient
- the defender:
- Otherwise:
- Always
Can join trigger
- Not: Is a Subject of another Country
- Not: Is a Rebel state
- Not:
- Is in a Defensive League
- Not: Is at War
- If the recipient exists:
- the recipient:
- Not:
- Any member
- Not:
- the recipient:
- Otherwise:
- Not:
- Has Blocked Treaties with the actor
- the actor:
- Not:
- Has Blocked Treaties with this
- Not:
- Is a Rival of this
- Not:
- Is an War Enemy of this
- Not: Is at War
- Opinion:
- Target is this
- Value is at least 0
- This country:
- Opinion:
- Target is the actor
- Value is at least 0
- Opinion:
- Not:
- Not:
Auto leave trigger
- Or:
- Is a Subject of another Country
- the recipient:
- Any member
- Is a Rebel state
Auto disband trigger
- Has a total of less than 2 members
Technical details
- Game id
io:defensive_league- Defined in
in_game/common/international_organizations/defensive_league.txt:1
Formulas
- Scope:recipient: (+ From Number of Members × 0.33, + Total Economic Base: (International organization economical base − this country's country economical base × 0.0005))
Ai
- Ai desire to join
- Add
- Desc
- DIPLOREASON_BASE
- Value
- −50
- If
- Limit
- Exists
- scope:recipient
- Add
- Desc
- game concept rival
- Scope:recipient
- Every international organization member
- Limit
- …
- Add
- −100
- Desc
- game concept trust
- Scope:recipient
- Every international organization member
- Save temporary scope as
- Member
- Root
- …
- Divide
- scope:recipient.total_members
- Desc
- game concept opinion
- Scope:recipient
- Every international organization member
- Root
- …
- Desc
- COALITION_GRADE_ANTAGONISM_TOWARDS_MEMBERS
- Value
- Scope:recipient
- Every international organization member
- …
- If
- Limit
- Scope:recipient
- Total members
- …
- Subtract
- Desc
- ORGANIZATION_SIZE
- Value
- scope:recipient.total_members
- Multiply
- 8
- Add
- Value
- 0
- Scope:recipient
- …
- Divide
- root.country_economical_base
- Multiply
- 20
- Max
- 100
- Add
- Desc
- AVERAGE_ECONOMICAL_BASE
- Value
- 0
- Scope:recipient
- Every international organization member
- …
- Divide
- scope:recipient.total_members
- Subtract
- root.country_economical_base
- Multiply
- 3
- Max
- 25
- Min
- −100
- Limit
- Exists
- scope:recipient
- Add
- Desc
- DISTANCE_FROM_FRANCE_LEADER
- Value
- border_distance_to(scope:actor)
- Multiply
- −0.2
- Min
- −1,000
- Limit
- Exists
- scope:actor
- Add
- Desc
- game concept antagonism
- Scope:actor
- Value
- prev antagonism towards this
- Multiply
- −1
- Limit
- Num locations
- <
- 8
- Add
- Desc
- WE_ARE_SMALL
- Value
- 25
- Else if
- Limit
- Exists
- scope:actor
- Add
- Desc
- AVERAGE_ECONOMICAL_BASE
- Value
- 0
- Add
- scope:actor.country_economical_base
- Subtract
- root.country_economical_base
- Multiply
- 3
- Max
- 25
- Min
- −100
- Desc
- game concept opinion
- Scope:actor
- Root
- Add
- …
- Desc
- game concept trust
- Root
- Value
- trust(scope:actor)
- Divide
- 5
- Limit
- Exists
- scope:actor
- Add
- Desc
- DISTANCE_FROM_FRANCE_LEADER
- Value
- border_distance_to(scope:actor)
- Multiply
- −0.2
- Min
- −1,000
- If
- Limit
- Country economical base
- >
- 0
- Scope:actor.country economical base
- >
- 0
- Add
- Desc
- GREAT_POWER_RATIO
- If
- Limit
- …
- Value
- country economical base
- Divide
- scope:actor.country_economical_base
- Multiply
- −5
- Else
- Value
- scope:actor.country_economical_base
- Divide
- country economical base
- Scope:actor
- Add
- Desc
- COALITION_GRADE_ANTAGONISM_TOWARDS_THEM
- Value
- Every country with coalition grade antagonism against us
- …
- If
- …
- Multiply
- 10
- Ai desire to allow new member
- Add
- Desc
- WE_WANT_THE_ORGANIZATION_TO_GROW
- Value
- 20
Other
- Laws
Mutual Defense- possible defense policy