International organization
Crusade
When a band of like-minded countries come together to rid themselves of heathens, driven by the Pope.
Properties
- Has target
- Yes
- Unique
- Yes
- Expel members who are targets of other members
- No
- Has leader country
- Yes
- Leader type
- Country
- Gold
- Yes
- Payments implemented
crusade treasury contribution
- Special statuses implemented
crusade spiritual leader, crusade temporal leader
- Custom name
- Crusade name
- Should show ruler history
- No
Conditions
Join defensive wars always
- the target:
- If this country's international organization target exists:
- This is this country's international organization target
- Otherwise:
- Never
- If this country's international organization target exists:
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 this country's international organization target exists:
Can declare war
- Always
Potential target trigger
- Catholicism:
- Has more than 0 Countries
- Is valid target for crusade
Can target trigger
- Not: Has Variable: recently declared war on
Create visible trigger
- Never
Invite visible trigger
- Always
Can lead trigger
- This is Rome
Can join trigger
- Religion is Catholicism
- Not: Is a Rebel state
- Knows the target
- Not (religion group the target's Religion's group)
- Not:
- Is allied with the target
- Not:
- Is at War with the target
- Not:
- Is fighting a War together with the target
- Not:
- Has a Truce with the target
- If the recipient exists:
- the recipient:
- Leader country:
- Opinion:
- Target is this
- Value is more than 0
- Not:
- Is at War with this
- Opinion:
- Not:
- Any country with special status of type:
- Type is Temporal Leader
- Is at War with this
- Any country with special status of type:
- Leader country:
- Religion is Catholicism
- the recipient:
- Otherwise:
- Always
Can leave trigger
- Countries cannot leave a Crusade directly. Membership ends when the Crusade disbands, once the war against its target has concluded.
Auto leave trigger
- Never
Auto disband trigger
- If variable 'phase' is 2:
- If the target exists:
- the target:
- Not:
- Is at War with this country's leader country
- Not:
- the target:
- Otherwise:
- Not: The target exists
- If the target exists:
- Otherwise:
- Not: The target exists
Has military access
- The war
- The recipient exists
- The actor exists
- If the recipient exists:
- the recipient:
- Is a member of this
- the recipient:
- If the actor exists:
- the actor:
- Is a member of this
- the actor:
Effects
On joined
- If scope:recipient (var:phase 2):
- the target:
- A random current war:
- Where:
- Any of:
- Attacker leader is the recipient's leader country
- Defender leader is the recipient's leader country
- Any of:
- Where:
- A random current war:
- If:
- The crusade war exists
- Scope:crusade war (attacker leader the recipient's leader country)
- Then:
- Joins the crusade war on the side of the crusade war
- Else if the crusade war exists:
- Joins the crusade war on the side of the crusade war
- the target:
On disband
- Holy war payout war end
- Every international organization member:
- Where:
- Has Variable: has bula de cruzada
- Where:
- If:
- Variable 'phase' is 2
- Active war exists
- Then:
- If any member:
- the crusade active war ends in a White Peace
- If any member:
Monthly effect
- If variable 'phase' is 2:
- Holy war snapshot participation
- If variable 'phase' is 1:
- Crusade track contribution
- If:
- Variable 'preparation' is at least 100
- War target exists
- Then:
- This country's leader country:
- If has Global Variable: crusade location target:
- Gains a Crusade Casus Belli on the crusade target for
- Else if:
- Jerusalem:
- Owner is the crusade target
- Jerusalem:
- Then:
- Gains a Crusade Casus Belli on the crusade target for
- Else if:
- the crusade target:
- Any holy site in country:
- Is Holy Site for Catholicism
- Any holy site in country:
- the crusade target:
- Then:
- the crusade target:
- A random holy site in country:
- Where:
- Is Holy Site for Catholicism
- Where:
- A random holy site in country:
- If the target location exists:
- Gains a Crusade Casus Belli on the crusade target for
- Otherwise:
- Gains a Crusade Casus Belli on the crusade target for
- the crusade target:
- Otherwise:
- Gains a Crusade Casus Belli on the crusade target for
- Will declare a Crusade War on the crusade target
- If has Global Variable: crusade location target:
- If the hw declared war exists:
- Every international organization member:
- Where:
- Has 'Temporal Leader' status in the Crusade
- Set war leader (war the hw declared war)
- Where:
- Every international organization member:
- Holy war payout equal share
- This country's leader country:
Modifiers
Technical details
- Game id
io:crusade- Defined in
in_game/common/international_organizations/crusade.txt:1
Ai
- Ai desire to join
- Add
- Desc
- BASE
- Value
- −30
- Desc
- HOLY_WAR_AGE_DAMPENER
- Value
- crusade jihad age dampener
- Desc
- DISTANCE_TO_TARGET
- Value
- capital.distance_to_squared(scope:target.capital)
- Multiply
- −0.0004
- Desc
- TARGET_NOT_RELEVANT_TO_US
- If
- Limit
- NOT
- Scope:target
- …
- Scope:target
- …
- Value
- −40
- Desc
- UNAWARE_OF_TARGET
- If
- Limit
- NOT
- Scope:actor
- …
- Value
- −1,000
- Desc
- RECENTLY_PREACHED_TO
- If
- Limit
- Scope:actor
- Has variable
- recently preached to
- Value
- 40
- Desc
- OPINION_OF_ACTOR
- If
- Limit
- Opinion
- Target
- scope:actor
- Value
- …
- Scope:actor
- Value
- prev opinion of this
- Subtract
- 100
- Multiply
2, 0.2
- Else
- Scope:actor
- Value
- prev opinion of this
- Subtract
- 100
- Multiply
- 0.2
- Desc
- OPINION_OF_TARGET
- Scope:target
- Value
- prev opinion of this
- Multiply
- −0.2
- Desc
- ANTAGONISM_TOWARDS_TARGET
- If
- Limit
- This
- !=
- scope:target
- Scope:target
- prev antagonism towards this
- Desc
- DIPLOREASON_IN_DEBT
- Value
- num loans
- Multiply
- −20
- Desc
- game concept war exhaustion
- Value
- war exhaustion
- Multiply
- −2
- Desc
- CONQUER_DESIRE
- Value
- conquer_desire(scope:target)
- Desc
- HOLY_WAR_ALREADY_OVERWHELMING
- If
- Limit
- Exists
- scope:recipient
- Scope:recipient
- Holy war overwhelms target
- Yes
- Value
- −200
- Desc
- RELATIVE_STRENGTH
- Value
- 100
- Multiply
- scope:actor.relative_strength(scope:target)
- Subtract
- 80
- Desc
- IS_BANKRUPT_TOOLTIP
- If
- Limit
- Is during bankruptcy
- Yes
- Value
- −1,000
- Desc
- IS_AT_WAR
- If
- Limit
- At war
- Yes
- Value
- −25
- Desc
- game concept rival
- If
- Limit
- Is rival of
- scope:actor
- Value
- −100
- Desc
- game concept rival
- If
- Limit
- Is rival of
- scope:target
- Value
- 100
- Ai desire to allow new member
- Add
- Desc
- WE_WANT_THE_ORGANIZATION_TO_GROW
- Value
- 20
Other
- International organization modifier
- Unlock contribute to organization treasury
- Yes
- Variables
- Religious zeal
- Format
- RELIGIOUS_ZEAL_DISPLAY
- Change format
- VARIABLE_CHANGE_FORMAT
- Start
- 100
- Min
- 0
- Max
- 100
- Monthly change
- If
- Limit
- Var:phase
- 2
- Subtract
- Desc
- WANE_OVER_TIME
- Value
- 1
- Add
- Desc
- NUMBER_OF_MEMBERS
- Value
- total members
- Multiply
- 0.75
- Divide
- 10
- Subtract
- 0.75
- Preparation
- Format
- PREPARATION_DISPLAY
- Change format
- VARIABLE_CHANGE_FORMAT
- Start
- 0
- Min
- 0
- Max
- 100
- Monthly change
- Add
- Desc
- NATURAL_PREPARATION_PROGRESS
- Value
- 100
- Divide
- 36
- Phase
- Hidden
- Yes
- Start
- 1