Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Ruler of Burgundy Dies
- country_event = {
- id = flavor_bur.1
- title = "flavor_bur.EVTNAME1"
- desc = "flavor_bur.EVTDESC1"
- picture = DEATH_OF_HEIR_eventPicture
- major = yes
- trigger = {
- tag = BUR
- ai = yes
- was_player = no
- NOT = { has_country_flag = burgundian_succession_crisis }
- is_at_war = yes
- is_subject = no
- is_emperor = no
- government = monarchy
- has_regency = no
- is_female = no
- NOT = { is_year = 1500 }
- capital_scope = {
- continent = europe
- }
- FRA = {
- exists = yes
- is_subject = no
- num_of_cities = 8
- is_neighbor_of = BUR
- }
- OR = {
- emperor = {
- exists = yes
- NOT = { war_with = FRA }
- }
- emperor = {
- exists = no
- }
- }
- }
- mean_time_to_happen = {
- months = 500
- modifier = {
- factor = 1.1
- luck = yes
- }
- modifier = {
- factor = 0.75
- has_heir = no
- }
- modifier = {
- factor = 0.75
- is_monarch_leader = yes
- }
- modifier = {
- factor = 0.75
- is_heir_leader = yes
- }
- modifier = {
- factor = 0.85
- NOT = { war_score = 0 }
- }
- modifier = {
- factor = 0.75
- NOT = { war_score = -25 }
- }
- modifier = {
- factor = 0.75
- NOT = { war_score = -50 }
- }
- modifier = {
- factor = 0.5
- NOT = { war_score = -75 }
- }
- }
- immediate = {
- hidden_effect = {
- set_country_flag = burgundian_succession_crisis
- add_ruler_modifier = {
- name = burgundian_succession_crisis
- }
- #GO THROUGH AND CHECK FOR ELIGIBLE RECIPIENTS. France can only get second part by being emperor.
- #Emperor?
- if = {
- limit = {
- emperor = {
- exists = yes
- num_of_cities = 4
- }
- }
- set_country_flag = bur_emperor_eligible
- }
- #Any HRE monarchy married to BUR? SPA/CAS? Emperor can trigger this one, too.
- if = {
- limit = {
- any_country = {
- marriage_with = ROOT
- num_of_cities = 4
- NOT = {
- tag = FRA
- }
- OR = {
- is_part_of_hre = yes
- tag = SPA
- AND = {
- tag = CAS
- SPA = {
- exists = no
- }
- }
- }
- }
- }
- set_country_flag = bur_marriage_eligible
- }
- if = {
- limit = {
- SPA = {
- exists = yes
- num_of_cities = 6
- }
- }
- set_country_flag = bur_spain_eligible
- set_country_flag = bur_spain_spa
- }
- if = {
- limit = {
- SPA = {
- exists = no
- }
- CAS = {
- num_of_cities = 6
- }
- }
- set_country_flag = bur_spain_eligible
- set_country_flag = bur_spain_cas
- }
- #DONE CHECKING FOR ELIGIBILITY
- #ROLL FOR WHO GETS THE SECOND PART
- #Every possibility
- if = {
- limit = {
- has_country_flag = bur_emperor_eligible
- has_country_flag = bur_marriage_eligible
- has_country_flag = bur_spain_eligible
- }
- random_list = {
- 70 = {
- set_country_flag = bur_marriage_inherits
- }
- 10 = {
- set_country_flag = bur_emperor_inherits
- }
- 20 = {
- set_country_flag = bur_spain_inherits
- }
- }
- }
- #No emperor
- if = {
- limit = {
- NOT = { has_country_flag = bur_emperor_eligible }
- has_country_flag = bur_marriage_eligible
- has_country_flag = bur_spain_eligible
- }
- random_list = {
- 65 = {
- set_country_flag = bur_marriage_inherits
- }
- 35 = {
- set_country_flag = bur_spain_inherits
- }
- }
- }
- #No marriage
- if = {
- limit = {
- has_country_flag = bur_emperor_eligible
- NOT = { has_country_flag = bur_marriage_eligible }
- has_country_flag = bur_spain_eligible
- }
- random_list = {
- 70 = {
- set_country_flag = bur_emperor_inherits
- }
- 30 = {
- set_country_flag = bur_spain_inherits
- }
- }
- }
- #No Spain
- if = {
- limit = {
- has_country_flag = bur_emperor_eligible
- has_country_flag = bur_marriage_eligible
- NOT = { has_country_flag = bur_spain_eligible }
- }
- random_list = {
- 70 = {
- set_country_flag = bur_marriage_inherits
- }
- 30 = {
- set_country_flag = bur_emperor_inherits
- }
- }
- }
- #No emperor or marriage
- if = {
- limit = {
- NOT = { has_country_flag = bur_emperor_eligible }
- NOT = { has_country_flag = bur_marriage_eligible }
- has_country_flag = bur_spain_eligible
- }
- set_country_flag = bur_spain_inherits
- }
- #No emperor or Spain
- if = {
- limit = {
- NOT = { has_country_flag = bur_emperor_eligible }
- has_country_flag = bur_marriage_eligible
- NOT = { has_country_flag = bur_spain_eligible }
- }
- set_country_flag = bur_marriage_inherits
- }
- #No marriage or Spain
- if = {
- limit = {
- has_country_flag = bur_emperor_eligible
- NOT = { has_country_flag = bur_marriage_eligible }
- NOT = { has_country_flag = bur_spain_eligible }
- }
- set_country_flag = bur_emperor_inherits
- }
- #No possible inheritor
- if = {
- limit = {
- NOT = { has_country_flag = bur_emperor_eligible }
- NOT = { has_country_flag = bur_marriage_eligible }
- NOT = { has_country_flag = bur_spain_eligible }
- }
- set_country_flag = bur_retains_independence
- }
- #DONE CHOOSING INHERITANCE RECEPIENT
- #CHOOSE WHICH MARRIAGE INHERITS
- if = {
- limit = {
- has_country_flag = bur_marriage_inherits
- }
- if = {
- limit = {
- emperor = {
- marriage_with = ROOT
- }
- emperor = {
- num_of_cities = 8
- }
- }
- emperor = {
- set_country_flag = bur_marriage_successor
- }
- }
- if = {
- limit = {
- NOT = {
- any_country = {
- has_country_flag = bur_marriage_successor
- }
- }
- }
- random_country = {
- limit = {
- marriage_with = ROOT
- OR = {
- is_part_of_hre = yes
- AND = {
- tag = CAS
- SPA = {
- exists = no
- }
- }
- tag = SPA
- }
- num_of_cities = 4
- NOT = { tag = FRA }
- }
- set_country_flag = bur_marriage_successor
- }
- }
- if = {
- limit = {
- NOT = {
- any_country = {
- OR = {
- is_part_of_hre = yes
- AND = {
- tag = CAS
- SPA = {
- exists = no
- }
- }
- tag = SPA
- }
- marriage_with = ROOT
- num_of_cities = 4
- NOT = {
- tag = FRA
- }
- }
- }
- }
- clr_country_flag = bur_marriage_inherits
- set_country_flag = bur_retains_independence
- }
- }
- #DONE CHOOSING MARRIAGE INHERITOR
- }
- }
- option = {
- name = "flavor_bur.EVTOPTA1"
- if = {
- limit = {
- has_heir = yes
- has_female_heir = no
- }
- kill_heir = yes
- }
- tooltip = {
- kill_ruler = yes
- }
- hidden_effect = {
- define_ruler = {
- regency = yes
- }
- }
- FRA = {
- country_event = { id = flavor_bur.3 }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment