
DisasterChanged this version
Castilian Civil War
Our enemies constantly look for ways to intervene in our politics, either by spurring instability or through supporting rival claimants to our seat of authority. This period of instability will surely reveal those who seek to end our rule and erase us from the pages of history. The wealth of Iberia has always drawn the hungry gazes of the foes on our borders, but we must not allow them to feast!
AragonCountryon monthly
CastileCountrycan start
EnglandCountryon monthly
FranceCountryon monthly
PortugalCountryon monthlyAragoneseCultureon monthlyCatalanCultureon monthlyEnglishCultureon monthlyFrancienCultureon monthlyPortugueseCultureon monthly
MonarchyGovernment Typecan startBastardStatic Modifiercan start, on startModifiers
Definitionin_game/common/disasters/castilian_civil_war.txt:1
3image = "gfx/interface/illustrations/disaster/castilian_civil_war.dds"
7fire_only_once = yes
9can_start = {
11has_any_active_disaster = no
13in_civil_war = no
14ruler_or_regent ?= {
15this != character:cas_alfonso_xi_burgundy
16OR = {
17this = character:cas_pedro_i_burgundy
18dynasty ?= dynasty:burgundy_castile_dynasty
}
}
21any_character = {
22NOR = {
23is_ruler = yes
24is_heir = yes
}
26father ?= character:cas_alfonso_xi_burgundy
27mother ?= character:cas_leonor_guzman
28OR = {
29is_eligible_heir = root
}
}
37OR = {
38legitimacy < 40
39stability < 15
}
}
46modifier = {
}
53on_start = {
54add_country_modifier = {
}
60if = {
61limit = {
62has_ruler = yes
63any_character = {
64father ?= character:cas_alfonso_xi_burgundy
65mother ?= character:cas_leonor_guzman
66OR = {
67is_eligible_heir = root
}
}
}
}
78else_if = {
79limit = {
80has_regent = yes
81has_heir = yes
82heir.mother = character:cas_maria_portugal
83heir.father = character:cas_alfonso_xi_burgundy
84any_character = {
85father ?= character:cas_alfonso_xi_burgundy
86mother ?= character:cas_leonor_guzman
87OR = {
88is_eligible_heir = root
}
}
}
}
}
102on_end = {
103every_character = {
}
111if = {
}
115if = {
}
}
125on_monthly = {
126if = {
128hidden_effect = {
129if = {
130limit = {
}
131random = {
132chance = 5
133switch = {
134trigger = has_variable
135ccw_sided_with_legal_heir = {
136if = {
}
142else = {
143random_known_country = {
145save_scope_as = pretender_ally_nation
}
}
}
149ccw_sided_with_bastard_heir = {
150if = {
}
156else = {
157random_known_country = {
159save_scope_as = pretender_ally_nation
}
}
}
}
164if = {
165limit = {
165exists = scope:pretender_ally_nation
}
}
}
}
174if = {
175limit = {
}
176random = {
177chance = 5
178switch = {
179trigger = has_variable
180ccw_sided_with_legal_heir = {
181if = {
}
185else = {
186random_known_country = {
188save_scope_as = iberian_pretender_ally_nation
}
}
}
192ccw_sided_with_bastard_heir = {
193if = {
}
197else = {
198random_known_country = {
200save_scope_as = iberian_pretender_ally_nation
}
}
}
}
205if = {
206limit = {
206exists = scope:iberian_pretender_ally_nation
}
}
}
}
213if = {
214limit = {
}
215random = {
216chance = 5
}
}
222if = {
223limit = {
}
224random = {
225chance = 5
}
}
}
232random_list = {
23322 = {
233custom_tooltip = an_event_occurs_tt An Event relevant to this Disaster may occur
}
23478 = {
234custom_tooltip = no_event_occurs_tt No Event occurs
}
}
236hidden_effect = {
237random_list = {}
}
}
249else = {
251random_list = {
25214 = {
252custom_tooltip = an_event_occurs_tt An Event relevant to this Disaster may occur
}
25386 = {
253custom_tooltip = no_event_occurs_tt No Event occurs
}
}
255hidden_effect = {
256random_list = {
257250 = {
}
}
}
}
}



