
International Organization
Crusade
When a band of like-minded countries come together to rid themselves of heathens, driven by the Pope.
CatholicismReligioncan join trigger, on joinedcrusade_location_targetVariableon joinedModifiers
Variables 1
Definitionin_game/common/international_organizations/crusade.txt:1
2has_target = yes
3unique = yes
4expel_members_who_are_targets_of_other_members = no
5has_leader_country = yes
6leader_type = country
8custom_name = crusade_name
10should_show_ruler_history = no
12join_defensive_wars_always = {
13scope:target ?= {
14this = root.international_organization_target
}
}
18join_offensive_wars_always = {
19scope:target ?= {
20this = root.international_organization_target
}
}
24can_declare_war = {
25always = yes
}
28potential_target_trigger = {
}
35can_target_trigger = {
}
38has_military_access = {
40scope:war = yes
42scope:recipient = {
43is_member_of_international_organization = root
}
45scope:actor = {
46is_member_of_international_organization = root
}
}
50modifier = {
51scale = {
52add = {
53desc = "religious_zeal" Religious Zeal
}
}
}
63create_visible_trigger = {
64always = no
}
67invite_visible_trigger = {
68always = yes
}
75can_join_trigger = {
77is_rebel_country = no
78not = {
78religion.group = scope:target.religion.group
}
80not = {
80is_at_war_with = scope:target
}
81not = {
81is_fighting_war_together_with = scope:target
}
82not = {
82has_truce_with = scope:target
}
83trigger_if = {
84limit = {
85exists = scope:recipient
}
87scope:recipient = {
88leader_country = {
89opinion = {
90target = root
91value > 0
}
}
}
}
97trigger_else = {
99always = yes
}
}
103can_leave_trigger = {
104always = no
}
107auto_leave_trigger = {
108always = no
}
111auto_disband_trigger = {
113trigger_if = {
114limit = {
114exists = scope:target
}
115scope:target = {
116not = {
116is_at_war_with = root.leader_country
}
}
}
119trigger_else = {
120NOT = {
120exists = scope:target
}
}
}
124on_joined = {
125if = {
126limit = {
127scope:recipient = {
128total_members = 1
}
}
132if = {
136add_casus_belli = {
137target = scope:target
}
}
143else_if = {
144limit = {
145location:jerusalem = {
146owner ?= scope:target
}
}
149add_casus_belli = {
}
}
155else_if = {
156limit = {
}
163scope:target = {
164random_holy_site_in_country = {
168location = {
169save_scope_as = target_location
}
}
}
173if = {
174limit = {
174exists = scope:target_location
}
175add_casus_belli = {
}
}
181else = {
182add_casus_belli = {
}
}
}
189else = {
190add_casus_belli = {
}
}
}
201else = {
202scope:target = {
203random_current_war = {
204limit = {
205OR = {
206attacker_leader = scope:recipient.leader_country
207defender_leader = scope:recipient.leader_country
}
}
210save_scope_as = crusade_war
}
}
213if = {
214limit = {
215scope:crusade_war = {
215attacker_leader = scope:recipient.leader_country
}
}
217join_war_as_attacker = {
217war = scope:crusade_war
}
}
219else = {
220join_war_as_defender = {
220war = scope:crusade_war
}
}
}
}
225on_left = {
}
228monthly_effect = {
}
231variables = {
232religious_zeal Religious Zeal = {
233format = "RELIGIOUS_ZEAL_DISPLAY"
234change_format = "VARIABLE_CHANGE_FORMAT"
235start = 1
236min = 0
237max = 100
238monthly_change = {
239subtract = {
240desc = "WANE_OVER_TIME"
241value = 1
}
243add = {
244desc = "NUMBER_OF_MEMBERS"
245value = total_members
246multiply = 0.75
247divide = 10
248subtract = 0.75
}
}
}
}
254ai_desire_to_join = {
255add = {
256desc = "BASE" Base Amount
257value = -30
}
260add = {
261desc = "OPINION_OF_ACTOR" Opinion of Actor
262scope:actor = {
263value = prev_opinion_of_this
264multiply = 0.2
}
}
267add = {
268desc = "OPINION_OF_TARGET" Opinion of Target
269scope:target = {
270value = prev_opinion_of_this
271multiply = -0.2
}
}
274add = {
275desc = "ANTAGONISM_TOWARDS_TARGET" Antagonism towards Recipient Target
276if = {
277limit = {
278this != scope:target
}
280scope:target = {
281value = prev_antagonism_towards_this
}
}
}
285add = {
286desc = "DIPLOREASON_IN_DEBT" In Debt
287value = num_loans
288multiply = -20
}
290add = {
291desc = "game_concept_war_exhaustion" War Exhaustion
292value = war_exhaustion
293multiply = -2
}
295add = {
296desc = "CONQUER_DESIRE" Desire to conquer target
297value = "conquer_desire(scope:target)"
}
299add = {
301desc = "RELATIVE_STRENGTH" Relative Strength of Actor to Recipient
302value = 100
303multiply = "scope:actor.relative_strength(scope:target)"
304subtract = 80
}
306add = {
307desc = "IS_BANKRUPT_TOOLTIP" Is Bankrupt
308if = {
309limit = {
310is_during_bankruptcy = yes
}
312value = -1000
}
}
315add = {
316desc = "IS_AT_WAR" Is at War
317if = {
318limit = {
319at_war = yes
}
321value = -25
}
}
324add = {
325desc = "game_concept_rival" Rival
326if = {
327limit = {
328is_rival_of = scope:actor
}
330value = -100
}
}
333add = {
334desc = "game_concept_rival" Rival
335if = {
336limit = {
337is_rival_of = scope:target
}
339value = 100
}
}
}
344ai_desire_to_allow_new_member = {
345add = {
346desc = "WE_WANT_THE_ORGANIZATION_TO_GROW" We want the International Organization to grow
347value = 20
}
}
