You are on page 1of 102

## normal scopes(including posttitle scopes) ## # ROOT = receiver # FROM = giver # <no scope change> = attacker or receiver ## title scopes

## # ROOT = receiver # FROM = giver # <no scope change> = 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_posttitl e, on_reverse_demand, on_reverse_demand_title, on_reverse_demand_posttitle # # Added on_attacker_leader_death, on_defender_leader_death and on_thirdparty_dea th, which all trigger when corresponding character dies # These three all have war scopes, which currently has the following scope chang es: # attacker, defender, thirdparty(only valid if thirdparty character is involved) , thirdparty_title(only valid if thirdparty title is involved) # claim = { name = CB_NAME_CLAIM war_name = WAR_NAME_CLAIM sprite = 1 truce_days = 3650 hostile_against_others = yes can_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 } AND = { ROOT = { has_weak_claim = PREV } OR = { is_pretender = yes # Checks vs ROOT char acter 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 = BARON NOT = { 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 } } on_fail_title = { ROOT = { 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 = { ROOT = { prestige = -150

transfer_scaled_wealth = { to = FROM value = 4.0 } } 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 } 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_CLAIM sprite = 2 truce_days = 3650 hostile_against_others = yes can_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_suc cession } } } # Old version always allowed women to go for secondary titles # AND = { # lower_tier_than = KING

# # } OR = {

is_primary_holder_title = no } FROM = { has_landed_title = PREV } holder_scope = { is_liege_or_above = FROM } } NOT = { any_war = { # when used in title scope, checks all wars

for that title attacker = { character = ROOT } } } OR = { ROOT = { has_strong_claim = PREV } AND = { ROOT = { has_weak_claim = PREV } OR = { is_pretender = yes # Checks vs ROOT char acter 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_claim who = 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 = yes holder_scope = { religion = catholic } } holder_scope = { abdicate_to = ROOT } } if = { limit = { OR = { controls_religion = no NOT = { holder_scope = { religion = cath olic } } } } 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_fla g } } if = { limit = { ROOT = { is_ruler = yes is_liege_or_above = FROMFROM # T 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 free if = { limit = { NOT = { ROOT = { has_character_f lag = claimant_is_vassal_ruler_flag } } holder_scope = { is_liege_or_above = FROM FROM } NOT = { de_jure_liege_or_above = FROMFROM } ROOT = { NOT = { dynasty = FROMFR OM } } } ROOT = { set_defacto_liege = ROOT } } # try and vassalize, but only conditionally if = { limit = { NOT = { holder_scope = { is_liege_or_abov e = FROMFROM } } OR = { de_jure_liege_or_above = FROMFROM ROOT = { has_character_f lag = claimant_is_vassal_ruler_flag } ROOT = { dynasty = FROMFR OM } } } ROOT = { set_defacto_liege = FROMFROM } } # check if the previous effect managed to make u s part of the same realm # if not, we'll break the other realm if = { limit = { NOT = { ROOT = { has_character_f lag = 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 mutual liege, restore that vassal tie if = { limit = { ROOT = { has_character_flag = oth er_claim_tmp_flag de_facto_liege = ROOT } } FROM = { FROM = { top_liege = { ROOT = { set_defa cto_liege = PREV } } } } } ROOT = { clr_character_flag = other_claim_tmp_fla g clr_character_flag = claimant_is_vassal_ ruler_flag } } } if = { limit = { higher_tier_than = BARON NOT = { 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 = -150 transfer_scaled_wealth = { to = FROM value = 4.0 } ROOT = { prestige = -150 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 = PREV } } 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 } } claim_on_liege = { name = CB_NAME_CLAIM war_name = WAR_NAME_CLAIM_LIEGE sprite = 3 truce_days = 3650 hostile_against_others = yes major_revolt = yes press_claim = yes can_call_vassals = yes can_use = { FROM = { in_revolt = no liege = { in_revolt = no liege = { 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 acter 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 } } OR = { has_law = succ_feudal_elective ROOT = { has_claim = PREV } } } on_success = { any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 hidden_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 = king tier = 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 } } }

if = { limit = { ROOT = { prisoner = yes host = { 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 = BARON NOT = { 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 } } disband_event_forces = faction_revolters } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyal ists } } } 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_revolters prisoner = FROM } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyal ists } } } 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 } } claim_on_liege_plot = { name = CB_NAME_CLAIM war_name = WAR_NAME_CLAIM_LIEGE sprite = 3 truce_days = 3650 hostile_against_others = yes press_claim = yes can_call_allies = no can_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 = 100 hidden_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 = king tier = 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 = BARON NOT = { culture = ROOT } } hidden_tooltip = { conquest_culture = ROOT } } ROOT = { plot_succeeds = yes } } on_fail = { ROOT = { prestige = -100 } any_defender = { limit = { character = FROM } participation_scaled_prestige = 50 hidden_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_loyal ists } } } on_reverse_demand = { ROOT = { prestige = -200 imprison = FROM } any_defender = { limit = { character = FROM } participation_scaled_prestige = 100 hidden_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_loyal ists } } } 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 } } claim_on_vassal_plot = { name = CB_NAME_CLAIM_VASSAL war_name = WAR_NAME_CLAIM_VASSAL sprite = 3 truce_days = 3650 hostile_against_others = yes reflect_titleholder_change = no press_claim = yes can_call_allies = no can_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 } } on_success = { ROOT = { prestige = 50 } } on_success_title = { usurp_title_plus_barony_if_unlanded = ROOT ROOT = { 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 } defender_ai_victory_worth = { factor = -1 # always accept } defender_ai_defeat_worth = { factor = 100 } } other_claim_on_liege = { name = CB_NAME_CLAIM war_name = WAR_NAME_OTHER_CLAIM sprite = 4 truce_days = 3650 hostile_against_others = yes major_revolt = yes press_claim = yes can_call_vassals = yes can_use = { FROM = { in_revolt = no liege = { in_revolt = no liege = { in_revolt = no } } } } can_use_title = { OR = { ROOT = { is_female = no } NOT = { has_law = agnatic_succession } AND = { lower_tier_than = KING is_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 acter 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 } } OR = { has_law = succ_feudal_elective ROOT = { 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 = 100 hidden_tooltip = { disband_event_forces = faction_revol

ters } } any_attacker = { limit = { NOT = { character = ROOT } NOT = { character = PREV } } hidden_tooltip = { participation_scaled_prestige = 100 disband_event_forces = faction_revolters } } ROOT = { opinion = { modifier = pressed_my_claim who = PREV } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyali sts } any_demesne_title = { # All titles limit = { OR = { tier = king tier = 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 } } } if = { limit = { ROOT = { prisoner = yes host = { character = FROM } } } ROOT = { prisoner = no } }

} on_success_title = { if = { limit = { is_primary_holder_title = yes } hidden_tooltip = { FROM = { set_character_flag = temp_other_claim_o n_liege_prison } } } # If the claimant has the wrong government type, take care of th at first. if = { limit = { higher_tier_than = ROOT holder_scope = { is_feudal = yes } ROOT = { is_ruler = yes OR = { is_theocracy = yes is_republic = yes } } } ROOT = { abdicate = yes } } usurp_title_plus_barony_if_unlanded_and_vassals = ROOT if = { limit = { higher_tier_than = BARON NOT = { culture = ROOT } } hidden_tooltip = { conquest_culture = ROOT } } } on_success_posttitle = { hidden_tooltip = { if = { limit = { top_liege = { ROOT = { NOT = { top_liege = { characte r = PREVPREV } } } } } ROOT = {

set_defacto_liege = PREV } } if = { 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_prison } } FROM = { imprison = ROOT clr_character_flag = temp_other_claim_on _liege_prison } } } } on_fail = { prestige = -100 imprison = FROM if = { limit = { OR = { is_liege_of = ROOT ROOT = { 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 }

} hidden_tooltip = { any_attacker = { disband_event_forces = faction_revolters } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyal ists } } } on_reverse_demand = { prestige = -200 imprison = FROM if = { limit = { OR = { is_liege_of = ROOT ROOT = { 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_revolters prisoner = FROM } } 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 } } claim_all = { name = CB_NAME_CLAIM_ALL war_name = WAR_NAME_CLAIM_ALL sprite = 5 truce_days = 3650 is_permanent = yes can_ask_to_join_war = no is_claim_all = yes can_use = { ROOT = { total_claims = { who = FROM strong = yes # Count only strong claims value = 2 } } } is_valid = { ROOT = { total_claims = { who = FROM strong = yes # Count only strong claims value = 1 # must have at least one claim left } } } on_add = { ROOT = { any_claim = { limit = { holder_scope = { OR = { character = FROM is_liege_or_above = FROM } } ROOT = { has_strong_claim = PREV } } press_claim = ROOT } } } on_success = { ROOT = { any_claim = { limit = { holder_scope = { OR = { character = FROM

is_liege_or_above = FROM } } ROOT = { has_strong_claim = PREV } } usurp_title_plus_barony_if_unlanded = ROOT if = { limit = { higher_tier_than = BARON NOT = { culture = ROOT } } hidden_tooltip = { conquest_culture = RO OT } } } } hidden_tooltip = { ROOT = { if = { limit = { has_dlc = "Legacy of Rome" OR = { has_landed_title = e_byz antium 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 } 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 = -200 transfer_scaled_wealth = { to = FROM value = 4.0 } any_claim = { limit = { holder_scope = { OR = { character = FROM is_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_byzantium has_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 } 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_LAW war_name = WAR_NAME_SENIORITY_SUCCESSION_LAW sprite = 6 truce_days = 3650 can_call_allies = no can_ask_to_join_war = no major_revolt = yes attacker_alliance_occ_warscore = yes # Occupying any holding of any atta cker counts towards war score can_use = { ROOT = { vassal_of = FROM } } is_valid_title = { NOT = { has_law = succ_seniority } OR = { tier = emperor tier = king is_primary_holder_title = yes } } on_success = { FROM = { hidden_tooltip = { disband_event_forces = faction_loyali sts } any_demesne_title = { # All titles limit = { OR = { tier = king tier = 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

} } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters } } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 100 disband_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_revolters add_character_modifier = { name = faction_succ_seniority_ultimatum_ timer hidden = yes duration = 3650 } } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyal ists } } } on_reverse_demand = { ROOT = { prestige = -200 prisoner = 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_revolters add_character_modifier = { name = faction_succ_seniority_ultimatum_ timer hidden = yes duration = 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 } } change_primogeniture_succession_law = { name = CB_NAME_PRIMOGENITURE_SUCCESSION_LAW war_name = WAR_NAME_PRIOGENITURE_SUCCESSION_LAW sprite = 6 truce_days = 3650 can_call_allies = no can_ask_to_join_war = no major_revolt = yes attacker_alliance_occ_warscore = yes # Occupying any holding of any atta cker counts towards war score can_use = { ROOT = { vassal_of = FROM } } is_valid_title = {

NOT = { has_law = succ_primogeniture } OR = { tier = emperor tier = king is_primary_holder_title = yes } } on_success = { FROM = { hidden_tooltip = { disband_event_forces = faction_loyali sts } any_demesne_title = { # All titles limit = { OR = { tier = king tier = 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 } } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters } } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 100 disband_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_revolters add_character_modifier = { name = faction_succ_primogeniture_ultima tum_timer hidden = yes duration = 3650 } } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyal ists } } } on_reverse_demand = { ROOT = { prestige = -200 prisoner = 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_revolters add_character_modifier = { name = faction_succ_primogeniture_ultima tum_timer hidden = yes duration = 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 } } change_feudal_elective_succession_law = { name = CB_NAME_FEUDAL_ELECTIVE_SUCCESSION_LAW war_name = WAR_NAME_FEUDAL_ELECTIVE_SUCCESSION_LAW sprite = 6 truce_days = 3650 can_call_allies = no can_ask_to_join_war = no major_revolt = yes attacker_alliance_occ_warscore = yes # Occupying any holding of any atta cker counts towards war score can_use = { ROOT = { vassal_of = FROM } } is_valid_title = { NOT = { has_law = succ_feudal_elective } OR = { tier = emperor tier = king is_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_loyali sts } any_demesne_title = { # All titles limit = { OR = { tier = king tier = 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 } } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters } } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 100 disband_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_revolters add_character_modifier = { name = faction_succ_feudal_elective_ulti matum_timer hidden = yes duration = 3650 } } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyal ists } } } on_reverse_demand = { ROOT = { prestige = -200 prisoner = 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_revolters add_character_modifier = { name = faction_succ_feudal_elective_ulti matum_timer hidden = yes duration = 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 } } invasion = { name = CB_NAME_INVASION war_name = WAR_NAME_INVASION sprite = 7 truce_days = 3650 hostile_against_others = yes can_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 = FROM gain_all_occupied_titles = FROM give_nickname = nick_the_conqueror } ROOT = { if = { limit = { has_dlc = "Legacy of Rome" OR = { has_landed_title = e_byz antium has_landed_title = e_rom an_empire } religion_group = christian } character_event = { id = LoR.30 days = 1 2 } } } } FROM = { prestige = -200 } } on_success_title = { custom_tooltip = invasion_succ_tip hidden_tooltip = { usurp_title_plus_barony_if_unlanded = ROOT FROM = { set_defacto_liege = ROOT } if = { limit = { FROM = { is_liege_or_above = ROOT } } FROM = { imprison = ROOT } } } if = { limit = { higher_tier_than = BARON NOT = { culture = ROOT } } hidden_tooltip = { conquest_culture = ROOT } } } 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 } } } on_reverse_demand = { ROOT = { prestige = -200 transfer_scaled_wealth = { to = FROM value = 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_byzantium has_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 } 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_INVASION war_name = WAR_NAME_INVASION sprite = 8 truce_days = 365 hostile_against_others = yes is_permanent = yes can_ask_to_join_war = no check_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 = { ROOT = { OR = { AND = { primary_title = { is_tribal_type_title = yes } has_horde_culture = yes NOT = { religion_group = christian } } AND = { mercenary = yes NOT = { 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 = FROM gain_all_occupied_titles = FROM } } } on_success_title = { custom_tooltip = tribal_invasion_succ_tip hidden_tooltip = { ROOT = { vassalize_or_take_under_title = { title = PREV enemy = FROM is_crusade = yes # Even if the title hol der is not participating in the war, gain holdings occupied by all Crusade parti cipants } } } } 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 = FROM value = 4.0 } } FROM = { prestige = 200 } FROM = { if = { limit = { has_dlc = "Legacy of Rome" OR = { has_landed_title = e_byzantium has_landed_title = e_roman_empir e } religion_group = christian } hidden_tooltip = { character_event = { id = LoR. 30 days = 12 } } } } 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 } } crusade = { name = CB_NAME_CRUSADE war_name = WAR_NAME_CRUSADE sprite = 9

truce_days = 3650 is_permanent = yes check_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 = { OR = { ROOT = { religion_group = christian year = 1090 } ROOT = { religion = sunni year = 1187 # Allow if the Caliphate has survive d this long } ROOT = { religion = shiite year = 1187 # Allow if the Caliphate has survive d this long } } ROOT = { can_call_crusade = yes has_called_crusade = no religion_authority = 0.05 } FROM = { OR = { NOT = { religion_group = ROOT } is_heresy_of = ROOT is_parent_religion = ROOT } } NOT = { # Not if the Schism has been mended AND = { religion = catholic 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 - chances are high the war will invalidate num_of_realm_counties = { value = 6 title = PREV } } } is_valid = {

ROOT = { can_call_crusade = yes } FROM = { OR = { NOT = { religion_group = ROOT } is_heresy_of = ROOT is_parent_religion = ROOT } } } is_valid_title = { FROM = { any_realm_title = { de_jure_liege_or_above = PREVPREV } } } on_success_title = { if = { limit = { has_holder = yes holder_scope = { religion = ROOT } } holder_scope = { gain_settlements_under_title = { title = PREV enemy = FROM is_crusade = yes # Even if the title hol der is not participating in the war, gain holdings occupied by all Crusade parti cipants } } } if = { limit = { OR = { has_holder = no NOT = { holder_scope = { religion = ROOT } } } } most_participating_attacker = { gain_settlements_under_title = { title = PREV enemy = FROM } if = { limit = { primary_title = { is_primary_typ e_title = no } # Mercs, the Pope, Holy Orders, etc

PREV = { has_holder = no } OR = { NOT = { character = ROOT } independent = yes liege = { 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 = 500 participation_scaled_piety = 1000 if = { limit = { religion_group = muslim } participation_scaled_decadence = -100 } } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 500 participation_scaled_piety = 1000 if = { limit = { religion_group = muslim } participation_scaled_decadence = -100 } } } ROOT = { religion_authority = 0.2 } FROM = { piety = -100 } } on_fail = { ROOT = { piety = -100

religion_authority = -0.05 } any_defender = { limit = { character = FROM } participation_scaled_piety = 200 participation_scaled_prestige = 100 if = { limit = { religion_group = muslim } participation_scaled_decadence = -50 } } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_piety = 200 participation_scaled_prestige = 100 if = { limit = { religion_group = muslim } participation_scaled_decadence = -50 } } } FROM = { religion_authority = 0.025 } FROM = { if = { limit = { has_dlc = "Legacy of Rome" OR = { has_landed_title = e_byzantium has_landed_title = e_roman_empir e } religion_group = christian } hidden_tooltip = { character_event = { id = LoR. 30 days = 12 } } } } } on_reverse_demand = { ROOT = { piety = -200 religion_authority = -0.1 } FROM = { piety = 100 religion_authority = 0.05 } any_defender = { limit = { character = FROM } participation_scaled_piety = 300

participation_scaled_prestige = 150 if = { limit = { religion_group = muslim } participation_scaled_decadence = -100 } } FROM = { if = { limit = { has_dlc = "Legacy of Rome" OR = { has_landed_title = e_byzantium has_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 = 300 participation_scaled_prestige = 150 if = { limit = { religion_group = muslim } participation_scaled_decadence = -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 } } religious = { name = CB_NAME_RELIGIOUS war_name = WAR_NAME_RELIGIOUS sprite = 9 truce_days = 3650

is_permanent = yes check_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 i s_permanent = yes can_use = { ROOT = { NOT = { religion_group = pagan_group } NOT = { same_realm = FROM } OR = { NOT = { religion_group = FROM } is_heresy_of = FROM is_parent_religion = FROM AND = { religion_group = muslim NOT = { religion = FROM } FROM = { NOT = { any_current_enemy = { NOT = { religion _group = muslim } } } } } } top_liege = { religion_group = ROOT NOT = { religion = FROM } OR = { religion = ROOT AND = { is_heretic = no ROOT = { is_heretic = no } } } } } } is_valid = { ROOT = { NOT = { religion_group = pagan_group } NOT = { same_realm = FROM } OR = { NOT = { religion_group = FROM } is_heresy_of = FROM is_parent_religion = FROM AND = { religion_group = muslim NOT = { religion = FROM } } } top_liege = { NOT = { religion = FROM } } } }

on_success = { any_attacker = { limit = { character = ROOT } participation_scaled_piety = 100 participation_scaled_prestige = 50 if = { limit = { religion_group = muslim } participation_scaled_decadence = -10 } } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_piety = 100 participation_scaled_prestige = 50 if = { limit = { religion_group = muslim } participation_scaled_decadence = -10 } } } ROOT FROM FROM FROM } on_success_title = { ROOT = { gain_settlements_under_title = { title = PREV enemy = FROM } } } on_fail = { ROOT = { piety = -50 } ROOT = { prestige = -100 } } on_reverse_demand = { ROOT = { transfer_scaled_wealth = { to = FROM value = 4.0 } } any_defender = { limit = { character = FROM } participation_scaled_piety = 200 participation_scaled_prestige = 100 if = { limit = { = = = = { { { { religion_authority = 0.01 } religion_authority = -0.01 } piety = -100 } prestige = -50 }

religion_group = muslim } participation_scaled_decadence = -10 } } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_piety = 200 participation_scaled_prestige = 100 if = { limit = { religion_group = muslim } participation_scaled_decadence = -10 } } } FROM = { religion_authority = 0.01 } ROOT = { religion_authority = -0.01 } } 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 } } excommunicated_ruler = { name = CB_NAME_EXCOMMUNICATED_RULER war_name = WAR_NAME_EXCOMMUNICATED_RULER sprite = 11 truce_days = 3650 is_permanent = yes can_ask_to_join_war = no can_use = { FROM = { excommunicated_for = ROOT in_revolt = no NOT = { 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 prestige = 50 } } if = { limit = { FROM = { primary_title = { tier = COUNT } } } ROOT = { piety = 20 prestige = 100 } } if = { limit = { FROM = { primary_title = { tier = DUKE } } } ROOT = { piety = 30 prestige = 150 } } if = { limit = { FROM = { primary_title = { tier = KING } } } ROOT = { piety = 50 prestige = 200

} } if = { limit = { FROM = { primary_title = { tier = EMPEROR } } } ROOT = { piety = 70 prestige = 400 } } } FROM = { excommunicate = no prestige = -200 rightful_religious_head_scope = { opinion = { who = PREV modifier = opinion_repented_sins } } abdicate = yes } } on_fail = { ROOT = { piety = -50 prestige = -100 } } on_reverse_demand = { ROOT = { piety = -100 prestige = -200 transfer_scaled_wealth = { to = FROM value = 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_INDEPENDENCE war_name = WAR_NAME_INDEPENDENCE sprite = 12 truce_days = 3650 is_permanent = yes is_independence = yes can_use = { ROOT = { de_facto_liege = FROM } FROM = { NOT = { any_war = { attacker = { character = FROM } OR = { using_cb = bid_for_independence 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 = { higher_tier_than = ROOT } } on_success = { if = { limit = {

FROM = { independent = no } } FROM = { liege = { ROOT = { set_defacto_liege = PREV } } } } if = { limit = { FROM = { independent = yes } } ROOT = { set_defacto_liege = ROOT } } hidden_tooltip = { ROOT = { prestige = 100 any_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 = king tier = 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_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 = -100 prisoner = 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 } 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_LIEGE war_name = WAR_NAME_DEPOSE_LIEGE sprite = 12 truce_days = 3650 is_permanent = yes can_call_vassals = yes can_use = { ROOT = { de_facto_liege = FROM } # cannot depose FROM = { in_revolt = no liege = { in_revolt = no liege = { in_revolt = no } } NOT = { any_war = { OR = { AND = { # Cannot depose liege wh en our liege is currently involved in such a war attacker = { character = FROM } OR = { using_cb = bid_f or_independence using_cb = depos e_liege } } AND = { # Cannot depose liege if someone else is already deposing liege 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 = { higher_tier_than = ROOT } } on_success = { FROM = { prestige = -500 any_demesne_title = { # All titles limit = { OR = { tier = king tier = 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 } } 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_OVERTHROWRULER war_name = WAR_NAME_OVERTHROWRULER sprite = 12 truce_days = 3650 is_revolt_cb = yes can_call_vassals = 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 = { higher_tier_than = ROOT } } on_success = { ROOT = { primary_title = { add_pressed_claim = FROM } } FROM = { prestige = -500 remove_opinion = { who = ROOT modifier = declared_war } any_demesne_title = { # All titles limit = { OR = { tier = king tier = 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_0 } 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 = ROOT modifier = 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 = 150 } defender_ai_victory_worth = { factor = -1 # always accept } defender_ai_defeat_worth = { factor = 100 } } overthrow_ruler_no_calls = { name = CB_NAME_OVERTHROWRULER_NC war_name = WAR_NAME_OVERTHROWRULER_NC sprite = 12 truce_days = 3650 is_revolt_cb = yes can_call_vassals = no

can_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 = 200 primary_title = { add_pressed_claim = FROM } } FROM = { prestige = -500 remove_opinion = { who = ROOT modifier = declared_war } any_demesne_title = { # All titles limit = { OR = { tier = king tier = 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_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 = -100 remove_opinion = { who = ROOT modifier = declared_war } } } on_reverse_demand = { ROOT = { prestige = -200 prisoner = FROM } FROM = { 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 } } succession_on_liege = { name = CB_NAME_SUCCESSION war_name = WAR_NAME_SUCCESSION sprite = 13 truce_days = 3650 hostile_against_others = yes press_claim = yes can_call_vassals = yes

allow_whitepeace = no is_valid_title = { FROM = { has_landed_title = PREV } } on_success = { FROM = { prestige = -100 any_demesne_title = { limit = { tier = FROM } usurp_title_plus_barony_if_unlanded = ROOT } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 200 } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 200 } } } on_success_title = { if = { limit = { OR = { tier = king tier = emperor # } 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_fail = { ROOT = { prestige = -50 } is_titular = no NOT = { has_law = centralization_0 }

} FROM = { prestige = 50 } } on_reverse_demand = { ROOT = { imprison = FROM } any_defender = { limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_prestige = 100 } } } on_reverse_demand_title = { ROOT = { remove_claim = PREV } } 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 = 150 } defender_ai_victory_worth = { factor = -1 # always accept } defender_ai_defeat_worth = { factor = 100 } } other_succession = { name = CB_NAME_SUCCESSION war_name = WAR_NAME_OTHER_SUCCESSION sprite = 14 truce_days = 3650

hostile_against_others = yes press_claim = yes can_call_vassals = yes allow_whitepeace = no can_use_title = { OR = { ROOT = { is_female = no } NOT = { has_law = agnatic_succession } AND = { lower_tier_than = KING is_primary_holder_title = no } } } is_valid_title = { FROM = { has_landed_title = PREV } } on_success = { ROOT = { opinion = { modifier = pressed_my_claim who = PREV } } prestige = 50 any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 100 } } } on_success_title = { usurp_title_plus_barony_if_unlanded = ROOT if = { limit = { OR = { tier = king tier = 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_posttitle = { hidden_tooltip = { if = { limit = { top_liege = { ROOT = { NOT = { top_liege = { characte r = PREVPREV } } } } } ROOT = { set_defacto_liege = PREV } } if = { limit = { top_liege = { ROOT = { NOT = { top_liege = { characte r = PREVPREV } } } } } ROOT = { set_defacto_liege = ROOT } } } } on_fail = { prestige = -50 FROM = { prestige = 50 } }

on_reverse_demand = { prestige = -200 ROOT = { imprison = FROM } any_defender = { limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_prestige = 100 } } } on_reverse_demand_title = { ROOT = { remove_claim = PREV } } on_defender_leader_death = { hidden_tooltip = { any_attacker = { 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 } } other_succession_on_liege = { name = CB_NAME_SUCCESSION war_name = WAR_NAME_OTHER_SUCCESSION sprite = 15 truce_days = 3650 hostile_against_others = yes press_claim = yes

can_call_vassals = yes allow_whitepeace = no can_use_title = { OR = { ROOT = { is_female = no } NOT = { has_law = agnatic_succession } AND = { lower_tier_than = KING is_primary_holder_title = no } } } is_valid_title = { FROM = { has_landed_title = PREV } } on_success = { ROOT = { opinion = { modifier = pressed_my_claim who = PREV } } # If the claimant has the wrong government type, take care of th at first. if = { limit = { FROM = { primary_title = { higher_tier_than = ROOT } is_feudal = yes } ROOT = { is_ruler = yes OR = { is_theocracy = yes is_republic = yes } } } ROOT = { abdicate = yes } } FROM = { any_demesne_title = { limit = { tier = FROM } usurp_title_plus_barony_if_unlanded = ROOT } } any_attacker = {

limit = { character = ROOT } participation_scaled_prestige = 100 } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 100 } } } on_success_title = { if = { limit = { OR = { tier = king tier = emperor # } 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_posttitle = { hidden_tooltip = { if = { limit = { top_liege = { ROOT = { NOT = { top_liege = { characte r = PREVPREV } } } } } ROOT = { set_defacto_liege = PREV } } if = { } is_titular = no NOT = { has_law = centralization_0 }

limit = { top_liege = { ROOT = { NOT = { top_liege = { characte r = PREVPREV } } } } } ROOT = { set_defacto_liege = ROOT } } } } on_fail = { prestige = -50 FROM = { prestige = 50 } } on_reverse_demand = { prestige = -200 imprison = 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 } } } on_reverse_demand_title = { ROOT = { remove_claim = PREV } } on_defender_leader_death = { hidden_tooltip = { any_attacker = { 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 } } dejure_county_claim = { name = CB_NAME_DEJURECLAIM war_name = WAR_NAME_DEJURECLAIM sprite = 16 truce_days = 3650 hostile_against_others = yes is_permanent = yes check_all_titles = yes # if permanent, setting this to true will check a gainst all of someones titles, including vassal held titles press_claim = yes can_ask_to_join_war = no can_use_title = { tier = count OR = { FROM = { has_landed_title = PREV } holder_scope = { is_liege_or_above = FROM } } OR = { kingdom = { holder = ROOT } empire = { holder = ROOT } dejure_liege_title = { holder = ROOT } } NOT = { OR = { ROOT = { has_landed_title = PREV } holder_scope = { is_liege_or_above = ROOT

} } } } is_valid_title = { OR = { FROM = { has_landed_title = PREV } holder_scope = { is_liege_or_above = FROM } } } on_success_title = { if = { limit = { holder_scope = { tier = count NOT = { num_of_count_titles = 2 } } } holder_scope = { set_defacto_liege = ROOT } } if = { limit = { holder_scope = { OR = { higher_tier_than = count num_of_count_titles = 2 } } } usurp_title_plus_barony_if_unlanded = ROOT any_de_jure_vassal_title = { # take all baronies under t he one we're fighting for limit = { has_holder = yes NOT = { de_facto_liege = PREV } holder_scope = { OR = { character = FROM is_liege_or_above = FROM } } } usurp_title_plus_barony_if_unlanded = ROOT }

} any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 100 } } } on_fail_title = { 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 transfer_scaled_wealth = { to = FROM value = 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 } }

dejure_barony_claim = { name = CB_NAME_DEJUREBARONYCLAIM war_name = WAR_NAME_DEJUREBARONYCLAIM sprite = 16 truce_days = 3650 hostile_against_others = yes is_permanent = yes check_all_titles = yes # if permanent, setting this to true will check a gainst all of someones titles, including vassal held titles press_claim = yes can_ask_to_join_war = no can_use_title = { tier = baron dejure_liege_title = { AND = { has_holder = yes ROOT = { has_landed_title = PREV } } } NOT = { OR = { ROOT = { has_landed_title = PREV } holder_scope = { is_liege_or_above = ROOT } } } OR = { FROM = { has_landed_title = PREV } holder_scope = { is_liege_or_above = FROM } } NOT = { holder_scope = { liege = { ROOT = { liege = { character = PREVPREV } } } } } } is_valid_title = { OR = { FROM = { has_landed_title = PREV

} holder_scope = { is_liege_or_above = FROM } } } on_success_title = { usurp_title_plus_barony_if_unlanded = ROOT any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 50 } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 50 } } } on_fail_title = { ROOT = { prestige = -50 } any_defender = { limit = { character = FROM } participation_scaled_prestige = 25 } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_prestige = 25 } } } on_reverse_demand = { ROOT = { prestige = -100 transfer_scaled_wealth = { to = FROM value = 4.0 } } 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 } defender_ai_defeat_worth = { factor = 100 } } other_dejure_barony_claim = { name = CB_NAME_DEJUREBARONYCLAIM war_name = WAR_NAME_OTHER_DEJUREBARONYCLAIM sprite = 16 truce_days = 3650 hostile_against_others = yes is_permanent = yes other_de_jure_claim = yes # Optimization for de jure claims of vassals press_claim = yes can_ask_to_join_war = no can_use = { NOT = { ROOT = { character = PREV } } } can_use_title = { tier = baron dejure_liege_title = { AND = { has_holder = yes ROOT = { has_landed_title = PREV } } } NOT = { OR = { ROOT = { has_landed_title = PREV } holder_scope = { is_liege_or_above = ROOT } } } OR = { FROM = { has_landed_title = PREV } holder_scope = { is_liege_or_above = FROM } } NOT = {

holder_scope = { liege = { ROOT = { liege = { character = PREVPREV } } } } } } is_valid_title = { OR = { FROM = { has_landed_title = PREV } holder_scope = { is_liege_or_above = FROM } } } on_success = { ROOT = { opinion = { modifier = pressed_my_claim who = PREV } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 50 } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 50 } } } on_success_title = { usurp_title_plus_barony_if_unlanded = ROOT } on_fail = { prestige = -50 ROOT = { prestige = -50 } any_defender = { limit = { character = FROM } participation_scaled_prestige = 25 } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_prestige = 25 } } } on_reverse_demand = {

prestige = -50 transfer_scaled_wealth = { to = FROM value = 4.0 } ROOT = { prestige = -50 } 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 } defender_ai_defeat_worth = { factor = 100 } } other_dejure_county_claim = { name = CB_NAME_DEJURECLAIM war_name = WAR_NAME_OTHER_DEJURECLAIM sprite = 16 truce_days = 3650 hostile_against_others = yes is_permanent = yes other_de_jure_claim = yes # Optimization for de jure claims of vassals press_claim = yes can_ask_to_join_war = no can_use = { NOT = { ROOT = { character = PREV } } } can_use_title = { tier = count dejure_liege_title = { AND = { has_holder = yes

ROOT = { has_landed_title = PREV } } } NOT = { OR = { ROOT = { has_landed_title = PREV } holder_scope = { is_liege_or_above = ROOT } } } 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 = { opinion = { modifier = pressed_my_claim who = PREV } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 100 } } } on_success_title = { if = { limit = { holder_scope = { tier = count

NOT = { num_of_count_titles = 2 } } } holder_scope = { set_defacto_liege = ROOT } } if = { limit = { holder_scope = { OR = { higher_tier_than = count num_of_count_titles = 2 } } } usurp_title_plus_barony_if_unlanded = ROOT any_de_jure_vassal_title = { # take all baronies under t he one we're fighting for limit = { has_holder = yes NOT = { de_facto_liege = PREV } holder_scope = { OR = { character = FROM is_liege_or_above = FROM } } } usurp_title_plus_barony_if_unlanded = ROOT } } } on_fail = { prestige = -50 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 = { prestige = -100 transfer_scaled_wealth = {

to = FROM value = 4.0 } ROOT = { prestige = -200 } 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 } } change_gavelkind_succession_law = { name = CB_NAME_GAVELKIND_SUCCESSION_LAW war_name = WAR_NAME_GAVELKIND_SUCCESSION_LAW sprite = 6 truce_days = 3650 can_call_allies = no can_ask_to_join_war = no major_revolt = yes attacker_alliance_occ_warscore = yes # Occupying any holding of any atta cker counts towards war score can_use = { ROOT = { vassal_of = FROM } } is_valid_title = { NOT = { has_law = succ_gavelkind } OR = { tier = emperor tier = king is_primary_holder_title = yes

} } on_success = { FROM = { hidden_tooltip = { disband_event_forces = faction_loyali sts } any_demesne_title = { # All titles limit = { OR = { tier = king tier = 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 } } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters } } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 100 disband_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_revolters add_character_modifier = { name = faction_succ_gavelkind_ultimatum_ timer hidden = yes duration = 3650 } } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyal ists } } } on_reverse_demand = { ROOT = { prestige = -200 prisoner = 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_revolters add_character_modifier = { name = faction_succ_gavelkind_ultimatum_ timer hidden = yes duration = 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 } } lower_crown_authority_law = { name = CB_NAME_LOWER_CROWN_AUTHORITY_LAW war_name = WAR_NAME_LOWER_CROWN_AUTHORITY_LAW sprite = 6 truce_days = 3650 can_call_allies = no can_ask_to_join_war = no major_revolt = yes attacker_alliance_occ_warscore = yes # Occupying any holding of any atta cker counts towards war score can_use = { ROOT = { vassal_of = FROM } } can_use_title = { holder_scope = { independent = yes } OR = { tier = king tier = emperor } OR = { has_law = centralization_1 has_law = centralization_2 has_law = centralization_3 has_law = centralization_4 } } on_success = { ROOT = { opinion = { modifier = opinion_lowered_crown_authority who = FROM months = 12 } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 hidden_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 } 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_revolters add_character_modifier = { name = faction_lower_CA_ultimatum_timer hidden = yes duration = 3650 } } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyal ists } } } on_reverse_demand = { ROOT = { prestige = -200

prisoner = 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_revolters add_character_modifier = { name = faction_lower_CA_ultimatum_timer hidden = yes duration = 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 } } coastal_republic = { name = CB_NAME_COASTAL_REPUBLIC war_name = WAR_NAME_COASTAL_REPUBLIC sprite = 1 truce_days = 3650 is_permanent = yes check_all_titles = yes can_ask_to_join_war = no can_use = { ROOT = { is_republic = yes capital_scope = { port = yes

} } } can_use_title = { tier = COUNT location = { port = yes } } is_valid = { ROOT = { is_republic = yes capital_scope = { port = yes } } } is_valid_title = { tier = COUNT location = { port = yes } } on_success_title = { any_de_jure_vassal_title = { limit = { holding_type = CITY } usurp_title = ROOT } usurp_title = ROOT 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 = -200 transfer_scaled_wealth = { to = FROM value = 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 } } weaken_vassal_plot = { name = CB_NAME_WEAKEN_VASSAL war_name = WAR_NAME_WEAKEN_VASSAL sprite = 3 truce_days = 3650 hostile_against_others = yes press_claim = yes can_call_allies = no can_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 titles limit = { OR = { tier = king tier = 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 = { FROM = { random_vassal = { limit = { tier = count any_demesne_title = { tier = count dejure_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 = -200 imprison = 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 = { 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 }

} county_conquest = { name = CB_NAME_COUNTY_CONQUEST war_name = WAR_NAME_COUNTY_CONQUEST sprite = 16 truce_days = 1825 hostile_against_others = yes is_permanent = yes check_all_titles = yes # if permanent, setting this to true will check a gainst all of someones titles, including vassal held titles press_claim = yes can_ask_to_join_war = no can_use = { ROOT = { NOT = { is_liege_or_above = FROM } } } can_use_title = { tier = count OR = { FROM = { has_landed_title = PREV } holder_scope = { is_liege_or_above = FROM NOT = { same_realm = ROOT } } } ROOT = { NOT = { religion_group = christian } piety = 50 } NOT = { OR = { ROOT = { has_landed_title = PREV } holder_scope = { is_liege_or_above = ROOT } } } location = { any_neighbor_province = { owner = { OR = { character = ROOT is_liege_or_above = ROOT } } } } }

is_valid_title = { OR = { FROM = { has_landed_title = PREV } holder_scope = { is_liege_or_above = FROM } } } on_success_title = { if = { limit = { holder_scope = { tier = count NOT = { num_of_count_titles = 2 } lower_tier_than = ROOT } } holder_scope = { set_defacto_liege = ROOT } } if = { limit = { holder_scope = { OR = { higher_tier_than = count num_of_count_titles = 2 NOT = { lower_tier_than = ROOT } } } } usurp_title_plus_barony_if_unlanded = ROOT any_de_jure_vassal_title = { # take all baronies under t he one we're fighting for limit = { has_holder = yes NOT = { de_facto_liege = PREV } holder_scope = { OR = { character = FROM is_liege_or_above = FROM } } } usurp_title_plus_barony_if_unlanded = ROOT } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 }

any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 100 } } } on_fail_title = { 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 transfer_scaled_wealth = { to = FROM value = 4.0 } } any_defender = { limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_prestige = 100 } } } on_add = { ROOT = { piety = -50 } } 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_INVASION war_name = WAR_NAME_DEC_INVASION sprite = 7 truce_days = 3650 hostile_against_others = yes can_ask_to_join_war = no can_use = { ROOT = { has_character_flag = decadence_invader } } on_success = { FROM = { any_demesne_title = { # All titles limit = { OR = { tier = king tier = emperor } NOT = { has_law = centralization_0 } } if = { add_law = centralization_0 } } } ROOT = { prestige = 200 piety = 100 occupy_minors_of_occupied_settlements = FROM gain_all_occupied_titles = FROM give_nickname = nick_the_conqueror } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 200 participation_scaled_piety = 100 } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 200 participation_scaled_piety = 100 } } FROM = { prestige = -200 primary_title = { holder_scope = { any_demesne_title = { limit = { tier = PREVPREV } usurp_title_plus_barony_if_unlan ded = ROOT if = { limit = {

higher_tier_than = BARON NOT = { culture = ROOT } } hidden_tooltip = { conqu est_culture = ROOT } } } } } set_defacto_liege = ROOT imprison = ROOT } hidden_tooltip = { ROOT = { disband_event_forces = decadence_revolters } } } 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 } ROOT = { prestige = -200 transfer_scaled_wealth = { to = FROM value = 8.0 } } FROM = { prestige = 200 } ROOT = { imprison = FROM disband_event_forces = decadence_revolters } } on_reverse_demand_title = {

ROOT = { remove_claim = PREV } } attacker_ai_victory_worth = { factor = 100 } attacker_ai_defeat_worth = { factor = 100 } defender_ai_victory_worth = { factor = -1 # always accept } defender_ai_defeat_worth = { factor = 150 } } muslim_invasion = { name = CB_NAME_INVASION war_name = WAR_NAME_INVASION sprite = 8 truce_days = 3650 hostile_against_others = yes is_permanent = yes can_ask_to_join_war = no check_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 = { ROOT = { religion_group = muslim piety = 500 } NOT = { # These use 'tribal_invasion' instead: ROOT = { OR = { AND = { primary_title = { is_tribal_type _title = yes } has_horde_culture = yes } AND = { mercenary = yes NOT = { num_of_titles = 2 } } } } } FROM = { NOT = { religion = ROOT } }

ROOT = { NOT = { is_liege_or_above = FROM } } } can_use_title = { # Muslims require the target to have at least 6 counties within the target kingdom FROM = { num_of_realm_counties = { value = 6 title = PREV } } } is_valid_title = { FROM = { any_realm_title = { de_jure_liege_or_above = PREVPREV } } } on_add = { ROOT = { piety = -500 } } on_success = { ROOT = { prestige = 200 } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 200 if = { limit = { religion_group = muslim FROM = { NOT = { religion_group = muslim } } } participation_scaled_decadence = -20 } } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 200 if = { limit = { religion_group = muslim FROM = { NOT = { religion_group = muslim } } } participation_scaled_decadence = -20 } }

} FROM = { prestige = -200 } } on_success_title = { custom_tooltip = tribal_invasion_succ_tip hidden_tooltip = { ROOT = { vassalize_or_take_under_title = { title = PREV enemy = FROM is_crusade = yes # Even if the title hol der is not participating in the war, gain holdings occupied by all Crusade parti cipants } } } } on_fail = { FROM = { prestige = 100 } FROM = { if = { limit = { has_dlc = "Legacy of Rome" OR = { has_landed_title = e_byzantium has_landed_title = e_roman_empir e } religion_group = christian } hidden_tooltip = { character_event = { id = LoR. 30 days = 12 } } } } 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 = FROM value = 4.0 }

decadence = 10 } FROM = { prestige = 200 } FROM = { if = { limit = { has_dlc = "Legacy of Rome" OR = { has_landed_title = e_byzantium has_landed_title = e_roman_empir e } religion_group = christian } hidden_tooltip = { character_event = { id = LoR. 30 days = 12 } } } } 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 = 100 } attacker_ai_defeat_worth = { factor = 100 } defender_ai_victory_worth = { factor = -1 # always accept } defender_ai_defeat_worth = { factor = 150 } } cb_faction_independence = { name = CB_NAME_INDEPENDENCE war_name = WAR_NAME_FACTION_INDEPENDENCE sprite = 12 truce_days = 3650 major_revolt = yes can_call_allies = no can_ask_to_join_war = yes attacker_alliance_occ_warscore = yes # Occupying any holding of any atta cker counts towards war score

can_use = { ROOT = { vassal_of = 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 = { if = { limit = { FROM = { independent = yes } } any_attacker = { limit = { OR = { vassal_of = FROM liege_before_war = { character = FROM } } } set_defacto_liege = THIS hidden_tooltip = { prestige = 100 any_demesne_title = { add_pressed_claim = FROM } } } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters } } any_attacker = { limit = { NOT = { character = ROOT } }

hidden_tooltip = { participation_scaled_prestige = 100 disband_event_forces = faction_revolters } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyali sts } any_demesne_title = { # All titles limit = { OR = { tier = king tier = emperor } 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_fail = { ROOT = { prestige = -50 prisoner = FROM add_character_modifier = { name = faction_independence_ultimatum_timer hidden = yes duration = 3650 } hidden_tooltip = { disband_event_forces = faction_revolters } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = -50 } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = -50

disband_event_forces = faction_revolters } add_character_modifier = { name = faction_independence_ultimatum_timer hidden = yes duration = 3650 } } FROM = { hidden_tooltip = { disband_event_forces = faction_loyal ists } } } on_reverse_demand = { ROOT = { prestige = -100 prisoner = FROM add_character_modifier = { name = faction_independence_ultimatum_timer hidden = yes duration = 3650 } hidden_tooltip = { disband_event_forces = faction_revolters } } any_attacker = { limit = { character = ROOT } participation_scaled_prestige = -100 } any_attacker = { limit = { NOT = { character = ROOT } liege = { character = FROM } } prisoner = FROM participation_scaled_prestige = -100 hidden_tooltip = { disband_event_forces = faction_revolters add_character_modifier = { name = faction_independence_ultimatum_ti mer hidden = yes duration = 3650 } } } FROM = { prestige = 50 hidden_tooltip = { disband_event_forces = faction_loyali sts } } } 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 = 150 } defender_ai_victory_worth = { factor = -1 # always accept } defender_ai_defeat_worth = { factor = 100 } } imperial_reconquest = { name = CB_NAME_IMPERIAL war_name = WAR_NAME_IMPERIAL sprite = 17 truce_days = 3650 is_permanent = yes check_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 i s_permanent = yes can_use = { ROOT = { OR = { has_landed_title = e_byzantium has_landed_title = e_roman_empire } independent = yes religion_group = christian NOT = { same_realm = FROM } } FROM = { NOT = { religion_group = muslim } } } can_use_title = { OR = { de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above

= = = = = = = =

k_byzantium k_anatolia k_armenia k_bulgaria k_serbia k_croatia k_italy k_sicily

de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above de_jure_liege_or_above } } is_valid = { ROOT = { OR = {

= = = = = = = = = = = = = = = = = = = = = = =

k_bavaria k_burgundy k_france k_aquitaine k_brittany k_england k_wales k_frisia k_lotharingia k_aragon k_castille k_andalusia k_leon k_spanish_galicia k_portugal k_navarra k_syria k_jerusalem k_egypt k_africa k_mauretania k_papal_state k_venice

has_landed_title = e_byzantium has_landed_title = e_roman_empire } independent = yes religion_group = christian NOT = { same_realm = FROM } } } on_success = { 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 = { ROOT = { gain_settlements_under_title = { title = PREV enemy = FROM } }

} on_fail = { ROOT = { prestige = -150 } } on_reverse_demand = { ROOT = { transfer_scaled_wealth = { to = FROM value = 4.0 } ROOT = { prestige = -200 } } any_defender = { limit = { character = FROM } participation_scaled_piety = 100 participation_scaled_prestige = 200 if = { limit = { religion_group = muslim } participation_scaled_decadence = -10 } } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_piety = 100 participation_scaled_prestige = 200 if = { limit = { religion_group = muslim } participation_scaled_decadence = -10 } } } } 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 } }

You might also like