8/16/2019 crusade kings cassus belli
1/167
## normal scopes(including posttitle scopes) ### ROOT = receiver# FROM = giver# = attacker or receiver## title scopes ### ROOT = receiver# FROM = giver# = thirdparty landed title## the following effects/triggers exists (example execution order: on_success->on
_success_title->on_success_posttitle):# is_valid, is_valid_title, on_add, on_add_title, on_add_posttitle, on_success,on_success_title, on_success_posttitle, on_fail, on_fail_title, on_fail_posttitle, on_reverse_demand, on_reverse_demand_title, on_reverse_demand_posttitle## Added on_attacker_leader_death, on_defender_leader_death and on_thirdparty_death, which all trigger when corresponding character dies# These three all have war scopes, which currently has the following scope changes:# attacker, defender, thirdparty(only valid if thirdparty character is involved), thirdparty_title(only valid if thirdparty title is involved)## ai_will_do: modifies value AI places on the CB compared to other CBs (default: 1)
# can_use_gui: If otherwise valid, the CB is listed in the Diplo View, but you can't declare war unless 'can_use_gui' is also valid (also shows a trigger tooltip.)#
claim = {name = CB_NAME_CLAIMwar_name = WAR_NAME_CLAIMsprite = 1truce_days = 3650hostile_against_others = yescan_ask_to_join_war = no
press_claim = yes
can_use_title = {OR = {
ROOT = { is_female = no }NOT = { ROOT = { religion_group = muslim } }
}OR = {
FROM = {has_landed_title = PREV
}holder_scope = {
is_liege_or_above = FROM
}}OR = {
ROOT = { has_strong_claim = PREV }ROOT = { has_character_flag = claimant_adventurer }AND = {
ROOT = { has_weak_claim = PREV }OR = {
is_pretender = yes # Checks vs ROOT character
8/16/2019 crusade kings cassus belli
2/167
holder_scope = { has_regent = yes }AND = {
ROOT = { is_female = no }holder_scope ={ is_female = yes
}}is_contested = yes # Is already being co
ntested in some form of Claim or Succession War}
}}
}
is_valid_title = {OR = {
FROM = {has_landed_title = PREV
}holder_scope = {
is_liege_or_above = FROM}
}ROOT = { has_claim = PREV }
}
on_success_title = {usurp_title_plus_barony_if_unlanded = ROOT
if = {limit = {
higher_tier_than = BARONNOT = { culture = ROOT }
}hidden_tooltip = { conquest_culture = ROOT }
}
any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 100}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 100 }
}
FROM = {prestige = -100
}
hidden_tooltip = {
ROOT = { clr_character_flag = claimant_adventurer}
}}
on_fail_title = {ROOT = {
prestige = -100hidden_tooltip = {
8/16/2019 crusade kings cassus belli
3/167
disband_event_forces = yesclr_character_flag = claimant_adventurer
}}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}}
on_reverse_demand = {ROOT = {
prestige = -150transfer_scaled_wealth = {
to = FROMvalue = 4.0
}}if = {
limit = {
ROOT = { has_character_flag = claimant_adventurer }}ROOT = { imprison = FROM }
}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 150
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 150 }
}
}on_reverse_demand_title = {
ROOT = {remove_claim = PREVhidden_tooltip = {
disband_event_forces = yesclr_character_flag = claimant_adventurer
}}
}
on_attacker_leader_death = {
if = { limit = {ROOT = { has_character_flag = claimant_adventure
r }}ROOT = {
hidden_tooltip = {disband_event_forces = yesclr_character_flag = claimant_adventurer
}
8/16/2019 crusade kings cassus belli
4/167
}end_war = invalid
}}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
other_claim = {name = CB_NAME_CLAIM
war_name = WAR_NAME_OTHER_CLAIMsprite = 2truce_days = 3650hostile_against_others = yescan_ask_to_join_war = no
press_claim = yes
can_use_title = {OR = {
ROOT = { is_female = no }AND = {
NOT = { ROOT = { religion_group = muslim } }
NOT = { succ_law_title = { has_law = agnatic_succession } }}
}OR = {
FROM = {has_landed_title = PREV
}holder_scope = {
is_liege_or_above = FROM}
}
NOT = { any_war = { # when used in title scope, checks all warsfor that title
attacker = {character = ROOT
}}
}
OR = {
8/16/2019 crusade kings cassus belli
5/167
ROOT = { has_strong_claim = PREV }AND = {
ROOT = { has_weak_claim = PREV }OR = {
is_pretender = yes # Checks vs ROOT character
holder_scope = { has_regent = yes }AND = {
ROOT = { is_female = no }holder_scope ={ is_female = yes
}}is_contested = yes # Is already being co
ntested in some form of Claim or Succession War}
}}
}
is_valid_title = {OR = {
FROM = {has_landed_title = PREV
}
holder_scope = {is_liege_or_above = FROM}
}ROOT = { has_claim = PREV }
}
on_success = {hidden_tooltip = {
ROOT = {opinion = {
modifier = pressed_my_claimwho = PREV
}}}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 100
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 100 }
}FROM = {
prestige = -100
}}
on_success_title = {if = {
limit = {controls_religion = yesholder_scope = {
OR = {religion = catholic
8/16/2019 crusade kings cassus belli
6/167
religion = fraticelli}
}}holder_scope = {
abdicate_to = ROOT}if = {
limit = {FROMFROM = { higher_tier_than = PREV }
}ROOT = { set_defacto_liege = FROMFROM }
}
hidden_tooltip = {ROOT = {
opinion = {modifier = pressed_my_claimwho = PREVmultiplier = 2
}}
}}
if = {limit = {
OR = {controls_religion = noNOT = {
holder_scope = {OR = {
religion = catholic
religion = fraticelli
}
}}}
}
if = {limit = {
holder_scope = {same_realm = FROMFROM # The curr
ent holder and the one pressing my claim are in the same larger realm}
}ROOT = {
set_character_flag = other_claim_tmp_flag}
}
if = {limit = {
ROOT = {is_ruler = yesis_liege_or_above = FROMFROM # T
8/16/2019 crusade kings cassus belli
7/167
he claimant is a vassal ruler of the presser}
}ROOT = {
set_character_flag = claimant_is_vassal_ ruler_flag
}}
usurp_title_plus_barony_if_unlanded = ROOT
hidden_tooltip = {
# If we were erroneously vassalized, break freeif = {
limit = {NOT = { ROOT = { has_character_f
lag = claimant_is_vassal_ruler_flag } }holder_scope = {
is_liege_or_above = FROMFROM
}NOT = { de_jure_liege_or_above =
FROMFROM }
ROOT = { NOT = { dynasty = FROMFROM }
}}ROOT = { set_defacto_liege = ROOT }
}
# try and vassalize, but only conditionallyif = {
limit = {NOT = {
holder_scope = {
is_liege_or_above = FROMFROM}
}OR = {
de_jure_liege_or_above = FROMFROM
ROOT = { has_character_flag = claimant_is_vassal_ruler_flag }
ROOT = {dynasty = FROMFR
OM}
}}ROOT = {
set_defacto_liege = FROMFROM}
}
# check if the previous effect managed to make us part of the same realm
# if not, we'll break the other realm
8/16/2019 crusade kings cassus belli
8/167
if = {limit = {
NOT = { ROOT = { has_character_flag = other_claim_tmp_flag } }
FROM = {FROM = {
top_liege = {ROOT = {
top_liege = {
NOT = {
character = PREVPREV
}
}}
}}
}}ROOT = {
set_defacto_liege = ROOT}}
# If we have become independent from our mutualliege, restore that vassal tie
if = {limit = {
ROOT = {has_character_flag = oth
er_claim_tmp_flagde_facto_liege = ROOT
}
}FROM = {FROM = {
top_liege = {ROOT = {
set_defacto_liege = PREV
}}
}}
}
ROOT = { clr_character_flag = other_claim_tmp_flag
clr_character_flag = claimant_is_vassal_ ruler_flag
}}
}
if = {
8/16/2019 crusade kings cassus belli
9/167
limit = {higher_tier_than = BARONNOT = { culture = ROOT }
}hidden_tooltip = { conquest_culture = ROOT }
}}
on_fail_title = {ROOT = {
prestige = -100}FROM = {
FROM = {prestige = -100
}}
any_defender = {limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }
hidden_tooltip = { participation_scaled_prestige = 100 }}}
on_reverse_demand = {prestige = -150transfer_scaled_wealth = {
to = FROMvalue = 4.0
}ROOT = {
prestige = -150imprison = FROM
}any_defender = {limit = { character = FROM }participation_scaled_prestige = 150
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 150 }
}}
on_reverse_demand_title = {ROOT = {
remove_claim = PREV}}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
8/16/2019 crusade kings cassus belli
10/167
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
claim_on_liege = {name = CB_NAME_CLAIMwar_name = WAR_NAME_CLAIM_LIEGEsprite = 3truce_days = 3650hostile_against_others = yes
press_claim = yescan_call_vassals = noattacker_can_call_allies = nomajor_revolt = yes
can_use = {FROM = {in_revolt = noliege = {
in_revolt = noliege = {
in_revolt = no}
}}
}
can_use_title = {
OR = { FROM = {has_landed_title = PREV
}holder_scope = {
is_liege_or_above = FROM}
}OR = {
ROOT = { has_strong_claim = PREV }ROOT = { has_character_flag = faction_claimant_ultimatum
_taken } # Faction war. Ignore claim strength.AND = {
ROOT = { has_weak_claim = PREV }OR = {is_pretender = yes # Checks vs ROOT char
acterholder_scope = { has_regent = yes }AND = {
ROOT = { is_female = no }holder_scope ={ is_female = yes
}}
8/16/2019 crusade kings cassus belli
11/167
is_contested = yes # Is already being contested in some form of Claim or Succession War
}}
}}
is_valid_title = {NOT = {
holder_scope = {character = ROOT
}}
OR = {FROM = {
has_landed_title = PREV}holder_scope = {
is_liege_or_above = FROM}
}OR = {
has_law = succ_feudal_elective
ROOT = { has_claim = PREV }}}
on_success = {any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 100hidden_tooltip = {
disband_event_forces = faction_revolters}
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 100 }hidden_tooltip = {
disband_event_forces = faction_revolters}
}
FROM = {hidden_tooltip = { disband_event_forces = faction_loyali
sts }any_demesne_title = { # All titles
limit = {OR = {
tier = kingtier = emperor}
# is_titular = noNOT = { has_law = centralization_0 }
}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
}
8/16/2019 crusade kings cassus belli
12/167
if = {limit = { has_law = centralization_2 }add_law = centralization_1
}if = {
limit = { has_law = centralization_3 }add_law = centralization_2
}if = {
limit = { has_law = centralization_4 }add_law = centralization_3
}}
}if = {
limit = {ROOT = {
prisoner = yeshost = { character = FROM }
}}ROOT = { prisoner = no }
}}
on_success_title = {if = {
limit = {is_primary_holder_title = yes
}FROM = { imprison = ROOT }
}
usurp_title_plus_barony_if_unlanded_and_vassals = ROOT
if = {limit = {
higher_tier_than = BARONNOT = { culture = ROOT }}hidden_tooltip = { conquest_culture = ROOT }
}}
on_fail = {ROOT = {
prestige = -100}any_defender = {
limit = { character = FROM }
participation_scaled_prestige = 50}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}
hidden_tooltip = {any_attacker = {
limit = { liege = { character = FROM } }
8/16/2019 crusade kings cassus belli
13/167
disband_event_forces = faction_revolters}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
on_reverse_demand = {ROOT = {
prestige = -150}
any_defender = {limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}
hidden_tooltip = {any_attacker = {
limit = { liege = { character = FROM } }disband_event_forces = faction_revoltersprisoner = FROM
}}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
on_attacker_leader_death = {hidden_tooltip = {
any_defender = {
letter_event = {id = 251}
}}end_war = invalid
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {
factor = 100}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}
8/16/2019 crusade kings cassus belli
14/167
is_valid = {ROOT = {
OR = {liege = {
character = PREV # either independent}liege = {
FROM = {is_liege_or_above = PREV # or ha
ve shared liege}
}}
}}
}
claim_on_liege_plot = {name = CB_NAME_CLAIMwar_name = WAR_NAME_CLAIM_LIEGEsprite = 3truce_days = 3650
hostile_against_others = yespress_claim = yesmajor_revolt = yesattacker_can_call_allies = nocan_ask_to_join_war = no
can_use_title = {OR = {
FROM = {has_landed_title = PREV
}holder_scope = {
is_liege_or_above = FROM}}
}
is_valid_title = {OR = {
FROM = {has_landed_title = PREV
}holder_scope = {
is_liege_or_above = FROM}
}}
on_success = {any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 100hidden_tooltip = {
disband_event_forces = faction_revolters}
8/16/2019 crusade kings cassus belli
15/167
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 100 }hidden_tooltip = {
disband_event_forces = faction_revolters}
}
FROM = {
hidden_tooltip = { disband_event_forces = faction_loyalists }
any_demesne_title = { # All titleslimit = {
OR = {tier = kingtier = emperor
}# is_titular = no
NOT = { has_law = centralization_0 }}if = {
limit = { has_law = centralization_1 }add_law = centralization_0}if = {
limit = { has_law = centralization_2 }add_law = centralization_1
}if = {
limit = { has_law = centralization_3 }add_law = centralization_2
}if = {
limit = { has_law = centralization_4 }
add_law = centralization_3}}
}}
on_success_title = {usurp_title_plus_barony_if_unlanded = ROOT
if = {limit = {
higher_tier_than = BARONNOT = { culture = ROOT }
}hidden_tooltip = { conquest_culture = ROOT }}ROOT = {
plot_succeeds = yes}
}
on_fail = {ROOT = {
8/16/2019 crusade kings cassus belli
16/167
prestige = -100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50hidden_tooltip = {
disband_event_forces = faction_revolters}
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }hidden_tooltip = {
disband_event_forces = faction_revolters}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
on_reverse_demand = {ROOT = {
prestige = -200
imprison = FROM}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100hidden_tooltip = {
disband_event_forces = faction_revolters}
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }hidden_tooltip = {
disband_event_forces = faction_revolters}}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
on_attacker_leader_death = {hidden_tooltip = {
any_defender = {letter_event = {
id = 251
}}}end_war = invalid
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
8/16/2019 crusade kings cassus belli
17/167
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}
is_valid = {ROOT = {
OR = {liege = {
character = PREV # either independent}liege = {
FROM = {is_liege_or_above = PREV # or ha
ve shared liege}
}
}}}
}
claim_on_vassal_plot = {name = CB_NAME_CLAIM_VASSALwar_name = WAR_NAME_CLAIM_VASSALsprite = 3truce_days = 3650hostile_against_others = yesreflect_titleholder_change = no
press_claim = yesattacker_can_call_allies = nocan_attack_vassals = yes
can_use_title = {OR = {
FROM = {has_landed_title = PREV
}holder_scope = {
de_facto_liege = ROOT}
}
}
is_valid_title = {FROM = {
has_landed_title = PREV}ROOT = {
has_plot = plot_gain_vassal_title}
}
8/16/2019 crusade kings cassus belli
18/167
on_success = {ROOT = {
prestige = 50}
}
on_success_title = {usurp_title_plus_barony_if_unlanded = ROOTROOT = { plot_succeeds = yes }
}
on_fail = {ROOT = {
prestige = -100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}
}on_reverse_demand = {
ROOT = {prestige = -200
}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}}
on_attacker_leader_death = {hidden_tooltip = {
any_defender = {letter_event = {
id = 251}
}}
end_war = invalid
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
}
8/16/2019 crusade kings cassus belli
19/167
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
other_claim_on_liege = {name = CB_NAME_CLAIMwar_name = WAR_NAME_OTHER_CLAIMsprite = 4truce_days = 3650hostile_against_others = yescan_ask_to_join_war = no
press_claim = yescan_call_vassals = noattacker_can_call_allies = nomajor_revolt = yes
can_use = {FROM = {
in_revolt = noliege = {in_revolt = noliege = {
in_revolt = no}
}}
}
can_use_title = {OR = {
ROOT = { is_female = no }
NOT = { has_law = agnatic_succession }AND = {lower_tier_than = KINGis_primary_holder_title = no
}FROMFROM = { has_character_flag = faction_claimant_ultim
atum_taken } # Faction war. Ignore claim strength.}
OR = {FROM = {
has_landed_title = PREV}
}
OR = {ROOT = { has_strong_claim = PREV }FROMFROM = { has_character_flag = faction_claimant_ultim
atum_taken } # Faction war. Ignore claim strength.AND = {
ROOT = { has_weak_claim = PREV }OR = {
is_pretender = yes # Checks vs ROOT char
8/16/2019 crusade kings cassus belli
20/167
acterholder_scope = { has_regent = yes }AND = {
ROOT = { is_female = no }holder_scope ={ is_female = yes
}}is_contested = yes # Is already being co
ntested in some form of Claim or Succession War}
}}
}
is_valid_title = {NOT = {
holder_scope = {character = ROOT
}}
OR = {FROM = {
has_landed_title = PREV
}holder_scope = {is_liege_or_above = FROM
}}
OR = {has_law = succ_feudal_electiveROOT = { has_claim = PREV }
}
NOT = {any_war = { # when used in title scope, checks all wars
for that title attacker = {character = ROOT
}}
}}
on_success = {any_attacker = {
limit = {OR = {
character = ROOT
character = PREV}}participation_scaled_prestige = 100hidden_tooltip = { disband_event_forces = faction_revol
ters }}any_attacker = {
limit = {NOT = { character = ROOT }
8/16/2019 crusade kings cassus belli
21/167
NOT = { character = PREV }}hidden_tooltip = {
participation_scaled_prestige = 100disband_event_forces = faction_revolters
}}ROOT = {
opinion = {modifier = pressed_my_claimwho = PREV
}}
FROM = {hidden_tooltip = { disband_event_forces = faction_loyali
sts }
any_demesne_title = { # All titleslimit = {
OR = {tier = kingtier = emperor
}
# is_titular = noNOT = { has_law = centralization_0 }}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
}if = {
limit = { has_law = centralization_2 }add_law = centralization_1
}if = {
limit = { has_law = centralization_3 }
add_law = centralization_2}if = {
limit = { has_law = centralization_4 }add_law = centralization_3
}}
}
if = {limit = {
ROOT = {prisoner = yes
host = { character = FROM }}}ROOT = { prisoner = no }
}}
on_success_title = {if = {
limit = {
8/16/2019 crusade kings cassus belli
22/167
is_primary_holder_title = yes}hidden_tooltip = {
FROM = { set_character_flag = temp_other_claim_on_liege_prison }
}}
# If the claimant has the wrong government type, take care of that first.
if = {limit = {
higher_tier_than = ROOTholder_scope = {
is_feudal = yes}ROOT = {
is_ruler = yesOR = {
is_theocracy = yesis_republic = yes
}}
}
ROOT = { abdicate = yes }}
usurp_title_plus_barony_if_unlanded_and_vassals = ROOT
if = {limit = {
higher_tier_than = BARONNOT = { culture = ROOT }
}hidden_tooltip = { conquest_culture = ROOT }
}}
on_success_posttitle = {hidden_tooltip = {
if = {limit = {
top_liege = {ROOT = {
NOT = {top_liege = {
character = PREVPREV
}}
}}}
ROOT = {set_defacto_liege = PREV
}}
if = {
8/16/2019 crusade kings cassus belli
23/167
limit = {top_liege = {
ROOT = {NOT = {
top_liege = {characte
r = PREVPREV}
}}
}}
ROOT = {set_defacto_liege = ROOT
}}
if = {limit = {
FROM = {has_character_flag = temp_other_
claim_on_liege_prisonlower_tier_than = PREV
}}FROM = {
imprison = ROOT}
}FROM = { clr_character_flag = temp_other_claim_on_liege_
prison }}
}
on_fail = {prestige = -100
imprison = FROMif = {
limit = {OR = {
is_liege_of = ROOTROOT = { is_liege_or_above = FROM }
}}ROOT = {
imprison = FROM}
}
any_defender = {limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}
8/16/2019 crusade kings cassus belli
24/167
hidden_tooltip = {any_attacker = {
disband_event_forces = faction_revolters}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
on_reverse_demand = {prestige = -200
imprison = FROMif = {
limit = {OR = {
is_liege_of = ROOTROOT = { is_liege_or_above = FROM }
}}ROOT = {
imprison = FROM}
}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}
hidden_tooltip = {any_attacker = {
limit = { liege = { character = FROM } }disband_event_forces = faction_revoltersprisoner = FROM
}}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {
8/16/2019 crusade kings cassus belli
25/167
factor = 100}
is_valid = {OR = {
liege = {character = PREV # either independent
}liege = {
FROM = {is_liege_or_above = PREV # or have share
d liege}
}}
}}
claim_all = {name = CB_NAME_CLAIM_ALLwar_name = WAR_NAME_CLAIM_ALLsprite = 5truce_days = 3650
is_permanent = yescan_ask_to_join_war = nois_claim_all = yes
can_use = {ROOT = {
total_claims = {who = FROMstrong = yes # Count only strong claimsvalue = 2
}}
}
is_valid = {ROOT = {
total_claims = {who = FROMstrong = yes # Count only strong claimsvalue = 1 # must have at least one claim left
}}
}
on_add = {ROOT = {
any_claim = {limit = {holder_scope = {
OR = {character = FROMis_liege_or_above = FROM
}}ROOT = { has_strong_claim = PREV }
}
8/16/2019 crusade kings cassus belli
26/167
press_claim = ROOT}
}}
on_success = {ROOT = {
any_claim = {limit = {
holder_scope = {OR = {
character = FROMis_liege_or_above = FROM
}}ROOT = { has_strong_claim = PREV }
}usurp_title_plus_barony_if_unlanded = ROOTif = {
limit = {higher_tier_than = BARONNOT = { culture = ROOT }
}hidden_tooltip = { conquest_culture = RO
OT } }}
}hidden_tooltip = {
ROOT = {if = {
limit = {has_dlc = "Legacy of Rome"OR = {
has_landed_title = e_byzantium
has_landed_title = e_rom
an_empire }religion_group = christian
}character_event = { id = LoR.30 days = 1
2 }}
}}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 100
}
any_attacker = {limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 100 }
}}
on_fail = {ROOT = {
prestige = -150}
8/16/2019 crusade kings cassus belli
27/167
any_defender = {limit = { character = FROM }participation_scaled_prestige = 75
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 75 }
}}
on_reverse_demand = {ROOT = {
prestige = -200transfer_scaled_wealth = {
to = FROMvalue = 4.0
}any_claim = {
limit = {holder_scope = {
OR = {character = FROMis_liege_or_above = FROM
}
}ROOT = { has_strong_claim = PREV }}ROOT = {
remove_claim = PREV}
}}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 200
}FROM = {
if = { limit = {has_dlc = "Legacy of Rome"OR = {
has_landed_title = e_byzantiumhas_landed_title = e_roman_empir
e}religion_group = christian
}hidden_tooltip = { character_event = { id = LoR.
30 days = 12 } }}
}any_defender = {limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 200 }
}}
attacker_ai_victory_worth = {factor = -1 # always accept
}
8/16/2019 crusade kings cassus belli
28/167
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
change_seniority_succession_law = {name = CB_NAME_SENIORITY_SUCCESSION_LAWwar_name = WAR_NAME_SENIORITY_SUCCESSION_LAWsprite = 6truce_days = 3650attacker_can_call_allies = nocan_ask_to_join_war = nomajor_revolt = yes
can_use = {ROOT = {vassal_of = FROM
}}
is_valid_title = {NOT = {
has_law = succ_seniority}OR = {
tier = emperortier = king
is_primary_holder_title = yes}}
on_success = {FROM = {
hidden_tooltip = { disband_event_forces = faction_loyalists }
any_demesne_title = { # All titleslimit = {
OR = {tier = kingtier = emperor
}# is_titular = noNOT = { has_law = centralization_0 }
}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
}if = {
limit = { has_law = centralization_2 }
8/16/2019 crusade kings cassus belli
29/167
add_law = centralization_1}if = {
limit = { has_law = centralization_3 }add_law = centralization_2
}if = {
limit = { has_law = centralization_4 }add_law = centralization_3
}}
}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 100hidden_tooltip = {
disband_event_forces = faction_revolters}
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = {
participation_scaled_prestige = 100disband_event_forces = faction_revolters
}}}
on_success_title = {succession_w_cooldown = seniority
}
on_fail = {ROOT = {
prestige = -100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}
hidden_tooltip = {any_attacker = {
disband_event_forces = faction_revoltersadd_character_modifier = {
name = faction_succ_seniority_ultimatum_
timer hidden = yesduration = 3650
}}
}FROM = { hidden_tooltip = { disband_event_forces = faction_loyal
ists } }}
8/16/2019 crusade kings cassus belli
30/167
on_reverse_demand = {ROOT = {
prestige = -200prisoner = FROM
}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}
hidden_tooltip = {any_attacker = {
limit = { liege = { character = FROM } }prisoner = FROMdisband_event_forces = faction_revoltersadd_character_modifier = {
name = faction_succ_seniority_ultimatum_ timer
hidden = yesduration = 3650
}}}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {
factor = 100}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}
is_valid = {ROOT = {
OR = { liege = {character = PREV # either independent
}liege = {
FROM = {is_liege_or_above = PREV # or ha
ve shared liege}
}
8/16/2019 crusade kings cassus belli
31/167
}}
}}
change_primogeniture_succession_law = {name = CB_NAME_PRIMOGENITURE_SUCCESSION_LAWwar_name = WAR_NAME_PRIOGENITURE_SUCCESSION_LAWsprite = 6truce_days = 3650attacker_can_call_allies = nocan_ask_to_join_war = nomajor_revolt = yes
can_use = {ROOT = {
vassal_of = FROM}
}
is_valid_title = {NOT = {
has_law = succ_primogeniture
}OR = {tier = emperortier = kingis_primary_holder_title = yes
}}
on_success = {FROM = {
hidden_tooltip = { disband_event_forces = faction_loyalists }
any_demesne_title = { # All titleslimit = {
OR = {tier = kingtier = emperor
}# is_titular = no
NOT = { has_law = centralization_0 }}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
}if = {limit = { has_law = centralization_2 }add_law = centralization_1
}if = {
limit = { has_law = centralization_3 }add_law = centralization_2
}if = {
8/16/2019 crusade kings cassus belli
32/167
limit = { has_law = centralization_4 }add_law = centralization_3
}}
}
any_attacker = {limit = { character = ROOT }participation_scaled_prestige = 100hidden_tooltip = {
disband_event_forces = faction_revolters}
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = {
participation_scaled_prestige = 100disband_event_forces = faction_revolters
}}
}
on_success_title = {succession_w_cooldown = primogeniture
}on_fail = {
ROOT = {prestige = -100
}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}hidden_tooltip = {
any_attacker = {disband_event_forces = faction_revoltersadd_character_modifier = {
name = faction_succ_primogeniture_ultimatum_timer
hidden = yesduration = 3650
}}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
on_reverse_demand = {ROOT = {
prestige = -200prisoner = FROM
}
8/16/2019 crusade kings cassus belli
33/167
any_defender = {limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}
hidden_tooltip = {any_attacker = {
limit = { liege = { character = FROM } }prisoner = FROMdisband_event_forces = faction_revoltersadd_character_modifier = {
name = faction_succ_primogeniture_ultimatum_timer
hidden = yesduration = 3650
}}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyal
ists } } }
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}defender_ai_defeat_worth = {
factor = 100}
is_valid = {ROOT = {
OR = {liege = {
character = PREV # either independent}liege = {
FROM = { is_liege_or_above = PREV # or have shared liege
}}
}}
}}
8/16/2019 crusade kings cassus belli
34/167
change_feudal_elective_succession_law = {name = CB_NAME_FEUDAL_ELECTIVE_SUCCESSION_LAWwar_name = WAR_NAME_FEUDAL_ELECTIVE_SUCCESSION_LAWsprite = 6truce_days = 3650attacker_can_call_allies = nocan_ask_to_join_war = nomajor_revolt = yes
can_use = {ROOT = {
vassal_of = FROM}
}
is_valid_title = {NOT = {
has_law = succ_feudal_elective}OR = {
tier = emperortier = kingis_primary_holder_title = yes
}
# OR = {# AND = {# tier = emperor# OR = {# ROOT = { tier = king }# ROOT = { tier = duke }# }# }# AND = {# tier = king# ROOT = { tier = duke }# }
# AND = {# tier = duke# ROOT = { tier = count }# }# }
}
on_success = {FROM = {
hidden_tooltip = { disband_event_forces = faction_loyalists }
any_demesne_title = { # All titleslimit = {
OR = {tier = kingtier = emperor
}# is_titular = no
NOT = { has_law = centralization_0 }}
8/16/2019 crusade kings cassus belli
35/167
if = {limit = { has_law = centralization_1 }add_law = centralization_0
}if = {
limit = { has_law = centralization_2 }add_law = centralization_1
}if = {
limit = { has_law = centralization_3 }add_law = centralization_2
}if = {
limit = { has_law = centralization_4 }add_law = centralization_3
}}
}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 100hidden_tooltip = {
disband_event_forces = faction_revolters}
}any_attacker = {limit = { NOT = { character = ROOT } }hidden_tooltip = {
participation_scaled_prestige = 100disband_event_forces = faction_revolters
}}
}
on_success_title = {succession_w_cooldown = feudal_elective
}
on_fail = {ROOT = {
prestige = -100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}
hidden_tooltip = {any_attacker = {
disband_event_forces = faction_revoltersadd_character_modifier = {
name = faction_succ_feudal_elective_ultimatum_timer
hidden = yesduration = 3650
}
8/16/2019 crusade kings cassus belli
36/167
}}FROM = { hidden_tooltip = { disband_event_forces = faction_loyal
ists } }}
on_reverse_demand = {ROOT = {
prestige = -200prisoner = FROM
}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}
hidden_tooltip = {any_attacker = {
limit = { liege = { character = FROM } }prisoner = FROM
disband_event_forces = faction_revoltersadd_character_modifier = {name = faction_succ_feudal_elective_ulti
matum_timerhidden = yesduration = 3650
}}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100}
is_valid = {ROOT = {
OR = {liege = {
character = PREV # either independent}
8/16/2019 crusade kings cassus belli
37/167
liege = {FROM = {
is_liege_or_above = PREV # or have shared liege
}}
}}
}}
invasion = {name = CB_NAME_INVASIONwar_name = WAR_NAME_INVASIONsprite = 7truce_days = 3650hostile_against_others = yescan_ask_to_join_war = no
can_use_title = {OR = {
FROM = {has_landed_title = PREV
}holder_scope = {is_liege_or_above = FROM
}}
}
is_valid_title = {OR = {
FROM = {has_landed_title = PREV
}holder_scope = {
is_liege_or_above = FROM}}
}
on_success = {ROOT = {
prestige = 200}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 200
}
any_attacker = {limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 200 }
}
hidden_tooltip = {ROOT = {
occupy_minors_of_occupied_settlements = FROMgain_all_occupied_titles = FROMgive_nickname = nick_the_conqueror
8/16/2019 crusade kings cassus belli
38/167
}ROOT = {
if = {limit = {
has_dlc = "Legacy of Rome"OR = {
has_landed_title = e_byzantium
has_landed_title = e_roman_empire
}religion_group = christian
}character_event = { id = LoR.30 days = 1
2 }}
}}
FROM = {prestige = -200
}}
on_success_title = {custom_tooltip = {text = invasion_succ_tiphidden_tooltip = {
usurp_title_plus_barony_if_unlanded = ROOTFROM = { set_defacto_liege = ROOT }if = {
limit = {FROM = { is_liege_or_above = ROO
T }}FROM = { imprison = ROOT }
}
}}
if = {limit = {
higher_tier_than = BARONNOT = { culture = ROOT }
}hidden_tooltip = { conquest_culture = ROOT }
}}
on_fail = {
ROOT = { prestige = -200}FROM = {
prestige = 100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}
8/16/2019 crusade kings cassus belli
39/167
any_defender = {limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}}
on_reverse_demand = {ROOT = {
prestige = -200transfer_scaled_wealth = {
to = FROMvalue = 8.0
}}FROM = {
prestige = 200}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 200
}FROM = {
if = {limit = {
has_dlc = "Legacy of Rome"OR = {has_landed_title = e_byzantiumhas_landed_title = e_roman_empir
e}religion_group = christian
}hidden_tooltip = { character_event = { id = LoR.
30 days = 12 } }}
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 200 }}
}
on_reverse_demand_title = {ROOT = {
remove_claim = PREV}
}
on_attacker_leader_death = {hidden_tooltip = {
any_defender = {letter_event = {id = 251
}}
}
end_war = whitepeace}
8/16/2019 crusade kings cassus belli
40/167
attacker_ai_victory_worth = {factor = 150
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
tribal_invasion = {name = CB_NAME_INVASIONwar_name = WAR_NAME_INVASIONsprite = 8truce_days = 3650hostile_against_others = yesis_permanent = yes
can_ask_to_join_war = yescheck_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes
can_use_gui = {ROOT = {
prestige = 500}
}
on_add = {ROOT = { prestige = -500 }
}can_use_title = {
ROOT = {OR = {
AND = {independent = yesOR = {
religion_group = pagan_groupAND = {
OR = {has_horde_cultur
e = yes
has_character_flag = horde_invader}NOT = { religion_group =
christian }}
}OR = {
culture_group = altaicculture_group = magyar
8/16/2019 crusade kings cassus belli
41/167
culture_group = mesoamerican}higher_tier_than = COUNTOR = {
has_horde_culture = yeshas_character_flag = horde_invad
erFROM = {
NOT = { religion_group = pagan_group } # Should subjugate these instead
}}
}
AND = {mercenary = yesNOT = {
num_of_titles = 2}
}}
}
ROOT = {
NOT = { is_liege_or_above = FROM }}}
is_valid_title = {FROM = {
any_realm_title = {de_jure_liege_or_above = PREVPREV
}}
}
on_success = {
ROOT = { prestige = 200}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 200
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 200 }
}FROM = {
prestige = -200
}hidden_tooltip = {ROOT = {
occupy_minors_of_occupied_settlements = FROMgain_all_occupied_titles = FROM
}}
}
on_success_title = {
8/16/2019 crusade kings cassus belli
42/167
custom_tooltip = {text = tribal_invasion_succ_tiphidden_tooltip = {
ROOT = {vassalize_or_take_under_title_destroy_du
chies = {title = PREVenemy = FROMis_crusade = yes # Even if the t
itle holder is not participating in the war, gain holdings occupied by all Crusade participants
}}
}}
}
on_fail = {FROM = {
prestige = 100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}ROOT = {
prestige = -200}
}
on_reverse_demand = {ROOT = {
prestige = -200
transfer_scaled_wealth = {to = FROMvalue = 4.0
}}FROM = {
prestige = 200}FROM = {
if = {limit = {
has_dlc = "Legacy of Rome"OR = {
has_landed_title = e_byzantiumhas_landed_title = e_roman_empire
}religion_group = christian
}hidden_tooltip = { character_event = { id = LoR.
30 days = 12 } }}
}
8/16/2019 crusade kings cassus belli
43/167
any_defender = {limit = { character = FROM }participation_scaled_prestige = 200
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 200 }
}}
attacker_ai_victory_worth = {factor = 200
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}ai_will_do = {
factor = 1
# Try to guide the Hordes in the right directionmodifier = {
factor = 0.1ROOT = {
OR = {dynasty = 613 # Seljuksdynasty = 800 # Timuridsprimary_title = { title = e_il-khanate }
}}OR = {
empire = {NOT = {
OR = {title = e_persiatitle = e_byzantiumtitle = e_arabia
}}
}FROM = {
primary_title = { title = e_golden_horde }NOT = { year = 1300 }
}}
}modifier = {
factor = 0.1ROOT = {
primary_title = { title = e_golden_horde }
8/16/2019 crusade kings cassus belli
44/167
}OR = {
empire = {OR = {
title = e_persiatitle = e_byzantiumtitle = e_arabia
}}FROM = {
primary_title = { title = e_il-khanate }NOT = { year = 1300 }
}}
}modifier = {
factor = 0.1ROOT = {
culture = hungarianprimary_title = {
OR = {title = k_hungarytitle = e_carpathia
}
}}empire = {
OR = {title = e_tartariatitle = e_russia
}}
}}
}
crusade = {
name = CB_NAME_CRUSADEwar_name = WAR_NAME_CRUSADEsprite = 9truce_days = 3650is_permanent = yesis_holy_war = yesbattle_warscore_mult = 0.5check_de_jure_tier = KING # this scans all de jure kingdoms for the coun
ties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes
can_use_gui = {ROOT = {
has_called_crusade = noreligion_authority = 0.05OR = {
religion_group = zoroastrian_groupreligion_group = jewish_groupAND = {
religion_group = pagan_groupcustom_tooltip = {
text = CTT_PAGAN_GHWS_UNLOCKEDhas_global_flag = pagan_ghws_unl
8/16/2019 crusade kings cassus belli
45/167
ocked}
}AND = {
religion_group = christiancustom_tooltip = {
text = CTT_CHRISTIAN_CRUSADES_UNLOCKED
has_global_flag = christian_crusades_unlocked
}}AND = {
religion_group = muslimcustom_tooltip = {
text = CTT_MUSLIM_JIHADS_UNLOCKED
has_global_flag = muslim_jihads_ unlocked
}}
}}
}
can_use = {ROOT = {
can_call_crusade = yes}
FROM = {OR = {
NOT = { religion_group = ROOT }is_heresy_of = ROOTis_parent_religion = ROOTAND = {
religion_group = pagan_group
NOT = { religion = ROOT }}}
}
NOT = { # Not if the Schism has been mendedAND = {
OR = {religion = catholicreligion = fraticelli
}has_global_flag = schism_mended
}
}}
can_use_title = {FROM = {
any_realm_title = {de_jure_liege_or_above = PREVPREV
}
independent = yes # Don't declare Crusades on revolters
8/16/2019 crusade kings cassus belli
46/167
- chances are high the war will invalidate
num_of_realm_counties = {value = 6title = PREV
}}
}
is_valid = {ROOT = {
can_call_crusade = yes}FROM = {
OR = {NOT = { religion_group = ROOT }is_heresy_of = ROOTis_parent_religion = ROOTAND = {
religion_group = pagan_groupNOT = { religion = ROOT }
}}
}
}is_valid_title = {
FROM = {any_realm_title = {
de_jure_liege_or_above = PREVPREV}
}}
on_success_title = {
# Should we give the seized land to its current king?
if = { limit = {has_holder = yesholder_scope = {
religion = ROOT}
}holder_scope = {
gain_settlements_under_title = {title = PREVenemy = FROMis_crusade = yes # Even if the title hol
der is not participating in the war, gain holdings occupied by all Crusade parti
cipants }}
}
# Should we give the seized land to a claimant of our faith?if = {
limit = {OR = {
has_holder = no
8/16/2019 crusade kings cassus belli
47/167
holder_scope = {NOT = { religion = ROOT }
}}
best_crusade_claimant = {always = yes # There is a "best" claiman
t}
}
# Claimants must be of ROOT's religion, and are ranked by strength of claim and actual contribution to the war
best_crusade_claimant = {if = {
limit = {PREV = { has_holder = no }OR = {
independent = yesis_ruler = noliege = {
tier = EMPEROR}
}
}usurp_title = PREV}gain_settlements_under_title = {
title = PREVenemy = FROMis_crusade = yes # Even if the title hol
der is not participating in the war, gain holdings occupied by all Crusade participants
}}
}
# Give the seized land to the main contributor of the Crusadeif = {limit = {
OR = {has_holder = noNOT = {
holder_scope = {religion = ROOT
}}
}NOT = {
best_crusade_claimant = {
always = yes}}
}
most_participating_attacker = {gain_settlements_under_title = {
title = PREVenemy = FROM
}
8/16/2019 crusade kings cassus belli
48/167
if = {limit = {
primary_title = { is_primary_type_title = no } # Mercs, the Pope, Holy Orders, etc
PREV = { has_holder = no }NOT = { character = ROOT }OR = {
independent = yesliege = {
tier = EMPEROR}
}}usurp_title = PREV
if = {limit = {
NOT = { culture = PREV }}hidden_tooltip = { PREV = { conq
uest_culture = THIS } }}
}}
}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 500participation_scaled_piety = 1000if = {
limit = {religion_group = muslim
}participation_scaled_decadence = -100
}}
any_attacker = {limit = { NOT = { character = ROOT } }hidden_tooltip = {
participation_scaled_prestige = 500participation_scaled_piety = 1000if = {
limit = {religion_group = muslim
}participation_scaled_decadence = -100
}}
}
any_attacker = {limit = {ai = noNOT = { has_character_flag = achievement_crusade
r }}set_character_flag = achievement_crusader
}
ROOT = {
8/16/2019 crusade kings cassus belli
49/167
religion_authority = {modifier = won_crusadeyears = 20
}}
FROM = {piety = -100religion_authority = {
modifier = lost_crusadeyears = 20
}}
}
on_fail = {ROOT = {
piety = -100}
any_defender = {limit = { character = FROM }participation_scaled_piety = 200participation_scaled_prestige = 100
if = { limit = {religion_group = muslim
}participation_scaled_decadence = -50
}}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = {
participation_scaled_piety = 200participation_scaled_prestige = 100if = {
limit = { religion_group = muslim}participation_scaled_decadence = -50
}}
}
FROM = {if = {
limit = {has_dlc = "Legacy of Rome"OR = {
has_landed_title = e_byzantiumhas_landed_title = e_roman_empire
}religion_group = christian
}hidden_tooltip = { character_event = { id = LoR.
30 days = 12 } }}
}
8/16/2019 crusade kings cassus belli
50/167
}
on_reverse_demand = {ROOT = {
piety = -200religion_authority = {
modifier = lost_crusadeyears = 20
}}FROM = {
piety = 100religion_authority = {
modifier = won_crusadeyears = 20
}}any_defender = {
limit = { character = FROM }participation_scaled_piety = 300participation_scaled_prestige = 150if = {
limit = {religion_group = muslim
}participation_scaled_decadence = -100}
}FROM = {
if = {limit = {
has_dlc = "Legacy of Rome"OR = {
has_landed_title = e_byzantiumhas_landed_title = e_roman_empir
e}
religion_group = christian}hidden_tooltip = { character_event = { id = LoR.
30 days = 12 } }}
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = {
participation_scaled_piety = 300participation_scaled_prestige = 150if = {
limit = {
religion_group = muslim}participation_scaled_decadence = -100
}}
}}
attacker_ai_victory_worth = {factor = -1 # always accept
8/16/2019 crusade kings cassus belli
51/167
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
# Holy War CBreligious = {
name = CB_NAME_RELIGIOUSwar_name = WAR_NAME_RELIGIOUSsprite = 9truce_days = 3650is_permanent = yesis_holy_war = yescheck_de_jure_tier = DUKE # this scans all dejure duchies for the counti
es which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes
can_use = {ROOT = {
NOT = { religion_group = pagan_group }NOT = { pacifist = yes }NOT = { religion = buddhist }OR = {
NOT = { religion = hindu }FROM = { NOT = { religion_group = indian_group }
}}
NOT = { same_realm = FROM }OR = {NOT = { religion_group = FROM }is_heresy_of = FROMis_parent_religion = FROMAND = {
religion_group = muslimNOT = { religion = FROM }FROM = {
NOT = {any_current_enemy = {
NOT = {religion
_group = muslim }}
}}
}}top_liege = {
religion_group = ROOTNOT = { religion = FROM }
8/16/2019 crusade kings cassus belli
52/167
OR = {religion = ROOTAND = {
is_heretic = noROOT = { is_heretic = no }
}}
}}
}
can_use_title = {# The attacker needs at least one county in the target kingdom,
or a border, or be only two sea zones away from one of your countiesany_direct_de_jure_vassal_title = {
OR = {holder_scope = {
OR = {character = ROOTis_liege_or_above = ROOT
}}location = {
any_neighbor_province = {
OR = { AND = {has_owner = yesowner = {
OR = {
character = ROOT
is_liege_or_above = ROOT}
}}AND = {
is_land = noOR = {year = 1
100ROOT = {
religion_group = muslim }FROM = {
religion_group = muslim }}any_neighbor_pro
vince = {OR = {
AND = {
has_owner = yes
owner = {
OR = {
character = ROOT
8/16/2019 crusade kings cassus belli
53/167
is_liege_or_above = ROOT
}
}
}
AND = {
is_land = no
any_neighbor_province = {
owner = {
OR = {
character = ROOT
is_liege_or_above = ROOT
}
}}
}}
}}
}}
}}
}
}is_valid = {
ROOT = {NOT = { religion_group = pagan_group }NOT = { pacifist = yes }NOT = { religion = buddhist }NOT = { same_realm = FROM }OR = {
NOT = { religion_group = FROM }is_heresy_of = FROMis_parent_religion = FROMAND = {
religion_group = muslimNOT = { religion = FROM }}
}top_liege = {
NOT = { religion = FROM }}
}}
8/16/2019 crusade kings cassus belli
54/167
on_success = {any_attacker = {
limit = { character = ROOT }participation_scaled_piety = 100participation_scaled_prestige = 50if = {
limit = {religion_group = muslim
}participation_scaled_decadence = -10
}}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = {
participation_scaled_piety = 100participation_scaled_prestige = 50if = {
limit = {religion_group = muslim
}participation_scaled_decadence = -10
}}
}ROOT = {
religion_authority = {modifier = won_holy_waryears = 20
}}FROM = {
religion_authority = {modifier = lost_holy_waryears = 20
}
}FROM = { piety = -100 }FROM = { prestige = -50 }
}
on_success_title = {custom_tooltip = {
text = religious_cb_succ_tiphidden_tooltip = {
ROOT = {vassalize_or_take_under_title = {
title = PREVenemy = FROM
same_religion = yes # Only vassalize rulers of my religion}
# gain_settlements_under_title = {# title = PREV# enemy = FROM# }
}}
}
8/16/2019 crusade kings cassus belli
55/167
}
on_fail = {ROOT = {
piety = -50prestige = -100
}}
on_reverse_demand = {ROOT = {
transfer_scaled_wealth = {to = FROMvalue = 4.0
}piety = -75prestige = -150
}any_defender = {
limit = { character = FROM }participation_scaled_piety = 200participation_scaled_prestige = 100if = {
limit = {
religion_group = muslim}participation_scaled_decadence = -10
}}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = {
participation_scaled_piety = 200participation_scaled_prestige = 100if = {
limit = {religion_group = muslim
}participation_scaled_decadence = -10}
}}ROOT = {
religion_authority = {modifier = lost_holy_waryears = 20
}}FROM = {
religion_authority = {
modifier = won_holy_waryears = 20}
}}
attacker_ai_victory_worth = {factor = -1 # always accept
}
8/16/2019 crusade kings cassus belli
56/167
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}
ai_will_do = {factor = 1
# Try to guide the Hordes in the right directionmodifier = {
factor = 0.1ROOT = {
OR = {dynasty = 613 # Seljuksdynasty = 800 # Timuridsprimary_title = { title = e_il-khanate }
}
}OR = {empire = {
NOT = {OR = {
title = e_persiatitle = e_byzantiumtitle = e_arabia
}}
}FROM = {
primary_title = { title = e_golden_horde
} NOT = { year = 1300 }}
}}modifier = {
factor = 0.1ROOT = {
primary_title = { title = e_golden_horde }}OR = {
empire = {OR = {
title = e_persiatitle = e_byzantiumtitle = e_arabia
}}FROM = {
primary_title = { title = e_il-khanate }NOT = { year = 1300 }
}}
8/16/2019 crusade kings cassus belli
57/167
}modifier = {
factor = 2.0OR = {
culture = persianculture = balochculture = afghanculture = turkish
}empire = {
OR = {title = e_persiatitle = e_rajastan
}}
}}
}
excommunicated_ruler = {name = CB_NAME_EXCOMMUNICATED_RULERwar_name = WAR_NAME_EXCOMMUNICATED_RULERsprite = 11truce_days = 3650
is_permanent = yescan_ask_to_join_war = no
can_use = {FROM = {
excommunicated_for = ROOTin_revolt = noNOT = {
any_current_enemy = {NOT = {
religion_group = ROOT}
}}}
}
is_valid = {FROM = {
excommunicated_for = ROOT}
}
on_success = {ROOT = {
if = { limit = {FROM = {
primary_title = {tier = BARON
}}
}ROOT = {
piety = 10
8/16/2019 crusade kings cassus belli
58/167
prestige = 50}
}if = {
limit = {FROM = {
primary_title = {tier = COUNT
}}
}ROOT = {
piety = 20prestige = 100
}}if = {
limit = {FROM = {
primary_title = {tier = DUKE
}}
}
ROOT = { piety = 30prestige = 150
}}if = {
limit = {FROM = {
primary_title = {tier = KING
}}
}
ROOT = { piety = 50prestige = 200
}}if = {
limit = {FROM = {
primary_title = {tier = EMPEROR
}}
}
ROOT = { piety = 70prestige = 400
}}
}
FROM = {excommunicate = noprestige = -200
8/16/2019 crusade kings cassus belli
59/167
rightful_religious_head_scope = {opinion = {
who = PREVmodifier = opinion_repented_sins
}}abdicate = yes
}}
on_fail = {ROOT = {
piety = -50prestige = -100
}}
on_reverse_demand = {ROOT = {
piety = -100prestige = -200transfer_scaled_wealth = {
to = FROMvalue = 4.0
}}FROM = {
prestige = 200}
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {
factor = 100}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
bid_for_independence = {
name = CB_NAME_INDEPENDENCEwar_name = WAR_NAME_INDEPENDENCEsprite = 12truce_days = 3650
is_permanent = yesis_independence = yes
can_use = {ROOT = {
8/16/2019 crusade kings cassus belli
60/167
de_facto_liege = FROM
higher_tier_than = BARONOR = {
ai = yesis_feudal = yeshigher_tier_than = COUNT
}}
FROM = {NOT = {
any_war = {attacker = {
character = FROM}OR = {
using_cb = bid_for_independenceusing_cb = depose_liege
}}
}}
}
is_valid = {ROOT = {
OR = {liege = {
character = PREV # either independent}liege = {
FROM = {is_liege_or_above = PREV # or ha
ve shared liege}
}
}}FROM = {
any_demesne_title = {NOT = { lower_tier_than = ROOT }temporary = no
}}
}
on_success = {if = {
limit = {
FROM = { independent = no}
}FROM = {
if = {limit = {
in_revolt = yes}liege_before_war = {
8/16/2019 crusade kings cassus belli
61/167
ROOT = {set_defacto_liege = PREV
}}
}if = {
limit = {in_revolt = no
}liege = {
ROOT = {set_defacto_liege = PREV
}}
}}
}
if = {limit = {
FROM = {independent = yes
}}
ROOT = { set_defacto_liege = ROOT}
}
hidden_tooltip = {ROOT = {
prestige = 100any_demesne_title = {
add_pressed_claim = FROM}
}}
any_attacker = {limit = { character = ROOT }participation_scaled_prestige = 100
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 100 }
}
FROM = {any_demesne_title = { # All titles
limit = {
OR = { tier = kingtier = emperor
}# is_titular = no
NOT = { has_law = centralization_0 }}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
8/16/2019 crusade kings cassus belli
62/167
}if = {
limit = { has_law = centralization_2 }add_law = centralization_1
}if = {
limit = { has_law = centralization_3 }add_law = centralization_2
}if = {
limit = { has_law = centralization_4 }add_law = centralization_3
}}
}}
on_fail = {ROOT = {
prestige = -50}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = -50
}any_attacker = {limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = -50 }
}}
on_reverse_demand = {ROOT = {
prestige = -100prisoner = FROM
}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = -100}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = -100
}}FROM = {
prestige = 50}
}
on_attacker_leader_death = {hidden_tooltip = {any_defender = {
letter_event = {id = 251
}}
}
end_war = invalid
8/16/2019 crusade kings cassus belli
63/167
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 150
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
depose_liege = {name = CB_NAME_DEPOSE_LIEGEwar_name = WAR_NAME_DEPOSE_LIEGEsprite = 12truce_days = 3650
is_permanent = yescan_call_vassals = nomajor_revolt = no
can_use = {ROOT = {
de_facto_liege = FROM}
FROM = {is_feudal = yesin_revolt = no
liege = { in_revolt = noliege = {
in_revolt = no}
}NOT = {
any_war = {OR = {
AND = { # Cannot depose liege when our liege is currently involved in such a war
attacker = {character = FROM
}OR = {using_cb = bid_f
or_independenceusing_cb = depos
e_liege}
}AND = { # Cannot depose liege if
someone else is already deposing liege
8/16/2019 crusade kings cassus belli
64/167
defender = {character = FROM
}using_cb = depose_liege
}}
}}
}}
is_valid = {ROOT = {
OR = {liege = {
character = PREV # either independent}liege = {
FROM = {is_liege_or_above = PREV # or ha
ve shared liege}
}}
}FROM = {any_demesne_title = {
NOT = { lower_tier_than = ROOT }temporary = no
}}
}
on_success = {FROM = {
prestige = -500any_demesne_title = { # All titles
limit = { OR = {tier = kingtier = emperor
}# is_titular = no
NOT = { has_law = centralization_0 }}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
}if = {
limit = { has_law = centralization_2 }add_law = centralization_1}if = {
limit = { has_law = centralization_3 }add_law = centralization_2
}if = {
limit = { has_law = centralization_4 }add_law = centralization_3
8/16/2019 crusade kings cassus belli
65/167
}}
abdicate_to_most_liked_by = ROOT}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 250
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 250 }
}}
on_fail = {ROOT = {
prestige = -100}
}
on_reverse_demand = {ROOT = {
prestige = -200
prisoner = FROM}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}}
attacker_ai_victory_worth = {
factor = -1 # always accept}
attacker_ai_defeat_worth = {factor = 150
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
overthrow_ruler = {name = CB_NAME_OVERTHROWRULERwar_name = WAR_NAME_OVERTHROWRULERsprite = 12truce_days = 3650
is_revolt_cb = yes
8/16/2019 crusade kings cassus belli
66/167
can_call_vassals = yesattacker_can_call_allies = nomajor_revolt = yes
can_use = {ROOT = {
de_facto_liege = FROM}
}
is_valid = {ROOT = {
OR = {liege = {
character = PREV # either independent}liege = {
FROM = {is_liege_or_above = PREV # or ha
ve shared liege}
}}
}
FROM = { any_demesne_title = {NOT = { lower_tier_than = ROOT }temporary = no
}}
}
on_success = {ROOT = {
primary_title = {add_pressed_claim = FROM
}
}FROM = {prestige = -500remove_opinion = {
who = ROOTmodifier = declared_war
}any_demesne_title = { # All titles
limit = {OR = {
tier = kingtier = emperor
}
# is_titular = noNOT = { has_law = centralization_0 }}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
}if = {
limit = { has_law = centralization_2 }add_law = centralization_0
8/16/2019 crusade kings cassus belli
67/167
}if = {
limit = { has_law = centralization_3 }add_law = centralization_1
}if = {
limit = { has_law = centralization_4 }add_law = centralization_2
}}abdicate = yes
}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 250
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 250 }
}}
on_fail = {ROOT = {
prestige = -100}FROM = {
remove_opinion = {who = ROOTmodifier = declared_war
}}
}
on_reverse_demand = {ROOT = {
prestige = -200
prisoner = FROM}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}}
attacker_ai_victory_worth = {
factor = -1 # always accept}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
8/16/2019 crusade kings cassus belli
68/167
defender_ai_defeat_worth = {factor = 100
}}
overthrow_ruler_no_calls = {name = CB_NAME_OVERTHROWRULER_NCwar_name = WAR_NAME_OVERTHROWRULER_NCsprite = 12truce_days = 3650
is_revolt_cb = yescan_call_vassals = nocan_ask_to_join_war = no
can_use = {ROOT = {
de_facto_liege = FROM}
}
is_valid = {ROOT = {
OR = { liege = {character = PREV # either independent
}liege = {
FROM = {is_liege_or_above = PREV # or ha
ve shared liege}
}}
}FROM = {
higher_tier_than = ROOT}}
on_success = {ROOT = {
prestige = 200primary_title = {
add_pressed_claim = FROM}
}FROM = {
prestige = -500
remove_opinion = {who = ROOTmodifier = declared_war
}any_demesne_title = { # All titles
limit = {OR = {
tier = kingtier = emperor
}
8/16/2019 crusade kings cassus belli
69/167
# is_titular = noNOT = { has_law = centralization_0 }
}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
}if = {
limit = { has_law = centralization_2 }add_law = centralization_0
}if = {
limit = { has_law = centralization_3 }add_law = centralization_1
}if = {
limit = { has_law = centralization_4 }add_law = centralization_2
}}abdicate = yes
}}
on_fail = { ROOT = {prestige = -100
}
FROM = {prestige = -100remove_opinion = {
who = ROOTmodifier = declared_war
}}
}
on_reverse_demand = {ROOT = {
prestige = -200prisoner = FROM
}FROM = {
prestige = 50}
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
8/16/2019 crusade kings cassus belli
70/167
defender_ai_defeat_worth = {factor = 100
}}
change_gavelkind_succession_law = {name = CB_NAME_GAVELKIND_SUCCESSION_LAWwar_name = WAR_NAME_GAVELKIND_SUCCESSION_LAWsprite = 6truce_days = 3650attacker_can_call_allies = nocan_ask_to_join_war = nomajor_revolt = yes
can_use = {ROOT = {
vassal_of = FROM}
}
is_valid_title = {NOT = {
has_law = succ_gavelkind}
OR = { tier = emperortier = kingis_primary_holder_title = yes
}}
on_success = {FROM = {
hidden_tooltip = { disband_event_forces = faction_loyalists }
any_demesne_title = { # All titleslimit = {
OR = { tier = kingtier = emperor
}# is_titular = no
NOT = { has_law = centralization_0 }}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
}if = {
limit = { has_law = centralization_2 }
add_law = centralization_1}if = {
limit = { has_law = centralization_3 }add_law = centralization_2
}if = {
limit = { has_law = centralization_4 }add_law = centralization_3
}
8/16/2019 crusade kings cassus belli
71/167
}}
any_attacker = {limit = { character = ROOT }participation_scaled_prestige = 100hidden_tooltip = {
disband_event_forces = faction_revolters}
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = {
participation_scaled_prestige = 100disband_event_forces = faction_revolters
}}
}
on_success_title = {succession_w_cooldown = gavelkind
}
on_fail = {
ROOT = { prestige = -100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}
hidden_tooltip = {
any_attacker = {disband_event_forces = faction_revoltersadd_character_modifier = {
name = faction_succ_gavelkind_ultimatum_ timer
hidden = yesduration = 3650
}}
}FROM = { hidden_tooltip = { disband_event_forces = faction_loyal
ists } }}
on_reverse_demand = {ROOT = {
prestige = -200prisoner = FROM
}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}
8/16/2019 crusade kings cassus belli
72/167
any_defender = {limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}
hidden_tooltip = {any_attacker = {
limit = { liege = { character = FROM } }prisoner = FROMdisband_event_forces = faction_revoltersadd_character_modifier = {
name = faction_succ_gavelkind_ultimatum_ timer
hidden = yesduration = 3650
}}
}
FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } }
}
attacker_ai_victory_worth = {
factor = -1 # always accept}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}is_valid = {
ROOT = {OR = {
liege = {character = PREV # either independent
}liege = {
FROM = {is_liege_or_above = PREV # or ha
ve shared liege}
}}}
}}
lower_crown_authority_law = {name = CB_NAME_LOWER_CROWN_AUTHORITY_LAWwar_name = WAR_NAME_LOWER_CROWN_AUTHORITY_LAWsprite = 6
8/16/2019 crusade kings cassus belli
73/167
truce_days = 3650can_call_allies = nocan_ask_to_join_war = nomajor_revolt = yes
can_use = {ROOT = {
vassal_of = FROM}
}
can_use_title = {holder_scope = { independent = yes }OR = {
tier = kingtier = emperor
}OR = {
has_law = centralization_1has_law = centralization_2has_law = centralization_3has_law = centralization_4
}}
on_success = {ROOT = {
opinion = {modifier = opinion_lowered_crown_authoritywho = FROMmonths = 12
}}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 100hidden_tooltip = {
disband_event_forces = faction_revolters}}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 100 }hidden_tooltip = {
disband_event_forces = faction_revolters}
}FROM = { hidden_tooltip = { disband_event_forces = faction_loyal
ists } }}
on_success_title = {if = {
limit = { has_law = centralization_1 }add_law_w_cooldown = centralization_0
}if = {
limit = { has_law = centralization_2 }add_law_w_cooldown = centralization_1
}
8/16/2019 crusade kings cassus belli
74/167
if = {limit = { has_law = centralization_3 }add_law_w_cooldown = centralization_2
}if = {
limit = { has_law = centralization_4 }add_law_w_cooldown = centralization_3
}}
on_fail = {ROOT = {
prestige = -100}
any_defender = {limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}
hidden_tooltip = {any_attacker = {disband_event_forces = faction_revoltersadd_character_modifier = {
name = faction_lower_CA_ultimatum_timerhidden = yesduration = 3650
}}
}FROM = { hidden_tooltip = { disband_event_forces = faction_loyal
ists } }}
on_reverse_demand = {ROOT = {
prestige = -200prisoner = FROM
}
any_defender = {limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }
hidden_tooltip = { participation_scaled_prestige = 100 }}
hidden_tooltip = {any_attacker = {
limit = { liege = { character = FROM } }prisoner = FROMdisband_event_forces = faction_revoltersadd_character_modifier = {
name = faction_lower_CA_ultimatum_timer
8/16/2019 crusade kings cassus belli
75/167
hidden = yesduration = 3650
}}
}FROM = { hidden_tooltip = { disband_event_forces = faction_loyal
ists } }}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}
is_valid = {ROOT = {
OR = {liege = {
character = PREV # either independent}liege = {
FROM = {is_liege_or_above = PREV # or ha
ve shared liege}
}
}}}
}
coastal_republic = {name = CB_NAME_COASTAL_REPUBLICwar_name = WAR_NAME_COASTAL_REPUBLICsprite = 1truce_days = 3650is_permanent = yescheck_all_titles = yes
can_ask_to_join_war = no
allow_distant = yes # AI parameter
can_use = {ROOT = {
OR = {is_merchant_republic = yesis_patrician = yes
}
8/16/2019 crusade kings cassus belli
76/167
NOT = { is_liege_or_above = FROM }NOT = { is_vassal_or_below = FROM }NOT = { same_liege = FROM }
}}
can_use_title = {tier = BARONis_capital = no # Minor Holdingis_republic = yes
location = {port = yes
# Must have a trade post there alreadyOR = {
PREV = {holder_scope = {
NOT = { same_realm = ROOT }OR = {
is_patrician = yesis_merchant_republic = y
es}
}}trade_post_owner = {
OR = {character = ROOTis_liege_or_above = ROOT
}}
}
# Not allowed to use this CB to take cities in the capital province of a rival merchant republic
FROM = {
OR = { is_merchant_republic = nocapital_scope = {
NOT = { province_id = PREVPREV }}
}}
}}
is_valid = {ROOT = {
OR = {
is_merchant_republic = yesis_patrician = yes}
}}
on_success_title = {if = {
limit = {NOT = {
8/16/2019 crusade kings cassus belli
77/167
location = {trade_post_owner = {
is_liege_or_above = ROOT}
}}
}usurp_title = ROOT
}
if = {limit = {
location = {trade_post_owner = {
is_liege_or_above = ROOT}
}}location = {
trade_post_owner = {usurp_title = PREVPREV
}}
}
any_attacker = {limit = { character = ROOT }participation_scaled_prestige = 100
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 100 }
}}
on_fail = {ROOT = {
prestige = -100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}}
on_reverse_demand = {
ROOT = { prestige = -200transfer_scaled_wealth = {
to = FROMvalue = 4.0
}}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
8/16/2019 crusade kings cassus belli
78/167
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 50
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 50
}}
coastal_county_republic = {name = CB_NAME_COASTAL_COUNTY_REPUBLICwar_name = WAR_NAME_COASTAL_COUNTY_REPUBLICsprite = 1truce_days = 3650is_permanent = yescheck_all_titles = yescan_ask_to_join_war = no
allow_distant = yes # AI parameter
can_use = {ROOT = {
OR = { is_merchant_republic = yesis_patrician = yes
}NOT = { is_liege_or_above = FROM }NOT = { is_vassal_or_below = FROM }NOT = { same_liege = FROM }
}}
can_use_title = {tier = COUNTlocation = {
port = yescounty = {any_direct_de_jure_vassal_title = {
holder_scope = {OR = {
character = ROOTis_liege_or_above = ROOT
}}
}
8/16/2019 crusade kings cassus belli
79/167
}any_neighbor_province = {
OR = {AND = {
has_owner = yesowner = {
OR = {character = ROOTis_liege_or_abov
e = ROOT}
}}AND = {
is_land = noany_neighbor_province = {
OR = {AND = {
has_owner = yes
owner ={
OR = {
character = ROOT
is_liege_or_above = ROOT
}}
}AND = {
is_land= no
any_neighbor_province = {
owner = {
OR = {
character = ROOT
is_liege_or_above = ROOT
}
}}
}}}
}}
}}
}
is_valid = {
8/16/2019 crusade kings cassus belli
80/167
ROOT = {OR = {
is_merchant_republic = yesis_patrician = yes
}}
}
is_valid_title = {tier = COUNTlocation = {
port = yescounty = {
any_direct_de_jure_vassal_title = {holder_scope = {
OR = {character = ROOTis_liege_or_above = ROOT
}}
}}
}}
on_success_title = {if = {
limit = {any_direct_de_jure_vassal_title = {
holder_scope = {character = ROOT
}}
}usurp_title = ROOT
}
if = { limit = {NOT = {
any_direct_de_jure_vassal_title = {holder_scope = {
character = ROOT}
}}
}any_de_jure_vassal_title = {
limit = {holder_scope = {
is_liege_or_above = ROOT}}holder_scope = {
usurp_title = PREVPREVset_defacto_liege = ROOT
}}
}
8/16/2019 crusade kings cassus belli
81/167
any_attacker = {limit = { character = ROOT }participation_scaled_prestige = 100
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = { participation_scaled_prestige = 100 }
}}
on_fail = {ROOT = {
prestige = -100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}}
on_reverse_demand = {ROOT = {prestige = -200transfer_scaled_wealth = {
to = FROMvalue = 4.0
}}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }}
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept}
defender_ai_defeat_worth = {factor = 100
}}
8/16/2019 crusade kings cassus belli
82/167
weaken_vassal_plot = {name = CB_NAME_WEAKEN_VASSALwar_name = WAR_NAME_WEAKEN_VASSALsprite = 3truce_days = 3650hostile_against_others = yes
press_claim = yesattacker_can_call_allies = nocan_ask_to_join_war = no
can_use_title = {OR = {
FROM = {has_landed_title = PREV
}holder_scope = {
is_liege_or_above = FROM}
}}
is_valid_title = {OR = {
FROM = { has_landed_title = PREV}holder_scope = {
is_liege_or_above = FROM}
}}
on_success = {any_attacker = {
participation_scaled_prestige = 100}
FROM = { any_demesne_title = { # All titleslimit = {
OR = {tier = kingtier = emperor
}# is_titular = no
NOT = { has_law = centralization_0 }}if = {
limit = { has_law = centralization_1 }add_law = centralization_0
}if = {limit = { has_law = centralization_2 }add_law = centralization_1
}if = {
limit = { has_law = centralization_3 }add_law = centralization_2
}if = {
8/16/2019 crusade kings cassus belli
83/167
limit = { has_law = centralization_4 }add_law = centralization_3
}}
}}
on_success_title = {FROM = {
random_vassal = {limit = {
tier = countany_demesne_title = {
tier = countdejure_liege_title = {
ROOT = {plot_target_titl
e = {title =
PREVPREV}
}}
}
}grant_title = PREVPREV}
}}
on_fail = {ROOT = {
prestige = -100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 50
}any_defender = {limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 50 }
}}
on_reverse_demand = {ROOT = {
prestige = -200imprison = FROM
}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}}
on_attacker_leader_death = {
8/16/2019 crusade kings cassus belli
84/167
hidden_tooltip = {any_defender = {
letter_event = {id = 251
}}
}end_war = invalid
}
attacker_ai_victory_worth = {factor = -1 # always accept
}
attacker_ai_defeat_worth = {factor = 100
}
defender_ai_victory_worth = {factor = -1 # always accept
}
defender_ai_defeat_worth = {factor = 100
}}
decadence_invasion = {name = CB_NAME_INVASIONwar_name = WAR_NAME_DEC_INVASIONsprite = 7truce_days = 3650hostile_against_others = yescan_ask_to_join_war = no
can_use = {ROOT = { has_character_flag = decadence_invader }
}on_success = {
FROM = {any_demesne_title = { # All titles
if = {limit = {
OR = {tier = kingtier = emperor
}NOT = { has_law = centralization
_0 }
}add_law = centralization_0}
}}
ROOT = {prestige = 200piety = 100occupy_minors_of_occupied_settlements = FROM
8/16/2019 crusade kings cassus belli
85/167
gain_all_occupied_titles = FROMgive_nickname = nick_the_conqueror
}any_attacker = {
limit = { character = ROOT }participation_scaled_prestige = 200participation_scaled_piety = 100
}any_attacker = {
limit = { NOT = { character = ROOT } }hidden_tooltip = {
participation_scaled_prestige = 200participation_scaled_piety = 100
}}
FROM = {prestige = -200primary_title = {
holder_scope = {any_demesne_title = {
limit = {tier = PREVPREV
}
usurp_title_plus_barony_if_unlanded = ROOT
if = {limit = {
higher_tier_than = BARON
NOT = { culture= ROOT }
}hidden_tooltip = { conqu
est_culture = ROOT }}
}}}
set_defacto_liege = ROOTimprison = ROOT
}
hidden_tooltip = {ROOT = {
disband_event_forces = decadence_revolters
# Powerful vassals can choose independence
any_vassal = {limit = {NOT = { character = FROM }higher_tier_than = COUNTprisoner = no
}character_event = { id = 91240 }
}}
}
8/16/2019 crusade kings cassus belli
86/167
}
on_fail = {ROOT = {
prestige = -200}FROM = {
prestige = 100}any_defender = {
limit = { character = FROM }participation_scaled_prestige = 100
}any_defender = {
limit = { NOT = { character = FROM } }hidden_tooltip = { participation_scaled_prestige = 100 }
}hidden_tooltip = {
ROOT = { disband_event_forces = decadence_revolters }}
}
on_reverse_demand = {ROOT = { set_defacto_liege = FROM }
ROO