EventChanged this version
The Bid for the Country Adjective Crown

Years of mismanagement, court intrigue and an unstable rule have wrought the seeds of our downfall! Like shades in the dusk, many prominent individuals with Country Adjective aspirations have gathered in a petty attempt to prop up Scope Pretender as the rightful ruler of the Country.
ByzantiumCountryimmediate, option
Byzantine Succession CrisisDisasteroptionCo-EmperorStatic Modifierimmediatehesychasm_indicisiveness_variableVariableoptionDefinitionin_game/events/disaster/succession_crisis.txt:11
12hide_portraits = yes
13type = country_event
14category = disaster_event
15title = succession_crisis.1.title The Bid for the Country Adjective Crown
16desc = succession_crisis.1.desc Years of mismanagement, court intrigue and an unstable rule have wrought the seeds of our downfall! Like shades in the dusk, many prominent individuals with Country Adjective aspirations have gathered in a petty attempt to prop up Scope Pretender as the rightful ruler of the Country.
17outcome = neutral
19image = "gfx/interface/illustrations/disaster/succession_crisis.dds"
21immediate = {
22create_rebel = {
23category = pretender
24name = succession_crisis_pretender Crown Pretenders
25save_scope_as = succession_crisis_pretender_scope
}
27set_variable = {
29value = scope:succession_crisis_pretender_scope
}
31if = {
32limit = {
34character:byz_andronikos_iii_palaiologos ?= {
34is_alive = no
}
35character:byz_john_kantakouzenos ?= {
36is_alive = yes
37is_adult = yes
38is_ruler = no
39owner = ROOT
}
}
43character:byz_john_kantakouzenos = {
44save_scope_as = scope_pretender
}
}
47else_if = {
48limit = {
49estate_power(estate_type:nobles_estate) >= 0.5
50has_ruler = yes
51ruler = {
52has_dynasty = yes
}
}
55root.ruler.dynasty = {
56ordered_character_in_dynasty = {
57order_by = mil
61max = 1
62save_scope_as = scope_pretender
}
}
}
66else_if = {
67limit = {
68estate_power(estate_type:clergy_estate) >= 0.5
69has_ruler = yes
70ruler = {
71has_dynasty = yes
}
}
74root.ruler.dynasty = {
75ordered_character_in_dynasty = {
76order_by = adm
80max = 1
81save_scope_as = scope_pretender
}
}
}
86else_if = {
87limit = {
88estate_power(estate_type:burghers_estate) >= 0.5
89has_ruler = yes
90ruler = {
91has_dynasty = yes
}
}
94root.ruler.dynasty = {
95ordered_character_in_dynasty = {
96order_by = dip
100max = 1
101save_scope_as = scope_pretender
}
}
}
105else_if = {
106limit = {
107has_ruler = yes
108ruler = {
109has_dynasty = yes
}
}
112root.ruler.dynasty = {
113ordered_character_in_dynasty = {
114order_by = total_abilities
118max = 1
119save_scope_as = scope_pretender
}
}
}
124if = {
125limit = {
126NOT = {
126exists = scope:scope_pretender
}
127estate_power(estate_type:crown_estate) >= 0.5
}
129ordered_character = {
130order_by = total_abilities
134max = 1
135save_scope_as = scope_pretender
}
}
139if = {
140limit = {
141NOT = {
141exists = scope:scope_pretender
}
}
143create_character = {
144religion = root.religion
145culture = root.culture
147age = 30
148save_scope_as = scope_pretender
}
}
152scope:scope_pretender = {
157change_character_allegiance = scope:succession_crisis_pretender_scope
}
165every_province = {
166limit = {
167OR = {
168province_average_control < 0.5
169province_food_percentage < 0.5
170province_satisfaction < 0.5
}
172any_location_in_province = {
172is_capital = no
}
}
174add_to_list = revolt_provinces_list
}
}