Event
Insurrection in Capital

Decades of feudal oppression, religious intolerance, and unjust taxation have all contributed to the revolutionary movements beginning to surface across our lands. Target Ruler has desperately been seeking resolutions to the ever-increasing problems as our country finds itself at the mercy of the increasingly ambitious Burghers supported by the outraged Commoners.
The Commoners and Burghers of Area have joined the Target Rebel of Province. In a swift strike, the insurgents stormed the local prison of Capital, arming themselves in the process and declared an active state of Revolution! against the Ancien Régime!
Armored HorsemenAdvanceafter
ArquebusiersAdvanceafter
Baggage TrainAdvanceafter
Chambered CannonAdvanceafter
CuirassiersAdvanceafter
Early ArquebusiersAdvanceafter
FalconetAdvanceafter
Flying BatteryAdvanceafter
FusiliersAdvanceafter
Gallop CavalryAdvanceafter
HalberdiersAdvanceafter
Heavy CavalrymenAdvanceafterDefinitionin_game/events/disaster/revolution_disaster.txt:4
5type = country_event
6category = disaster_event
7title = revolution_disaster.1.title Insurrection in Capital
8desc = revolution_disaster.1.desc Decades of feudal oppression, religious intolerance, and unjust taxation have all contributed to the revolutionary movements beginning to surface across our lands. Target Ruler has desperately been seeking resolutions to the ever-increasing problems as our country finds itself at the mercy of the increasingly ambitious Burghers supported by the outraged Commoners.
The Commoners and Burghers of Area have joined the Target Rebel of Province. In a swift strike, the insurgents stormed the local prison of Capital, arming themselves in the process and declared an active state of Revolution! against the Ancien Régime!
The Commoners and Burghers of Area have joined the Target Rebel of Province. In a swift strike, the insurgents stormed the local prison of Capital, arming themselves in the process and declared an active state of Revolution! against the Ancien Régime!
9outcome = neutral
11image = "gfx/interface/illustrations/disaster/revolution_disaster.dds"
12major = yes
13immediate = {
14capital = {
15province_definition = {
15save_scope_as = target_province_definition
}
}
17set_variable = {
19value = {
20value = total_sub_unit_count:army_heavy_infantry
21add = total_sub_unit_count:army_light_infantry
}
23years = 1
}
25set_variable = {
27value = {
28value = total_sub_unit_count:army_heavy_cavalry
29add = total_sub_unit_count:army_light_cavalry
}
31years = 1
}
33set_variable = {
}
38set_variable = {
}
43ruler_or_regent ?= {
44save_scope_as = target_ruler
}
46create_rebel = {
47category = estate
49name = revolutionary_rebel COUNTRY Adjective Revolutionaries
50save_scope_as = target_rebel
}
57capital = {
57save_scope_as = target_location
}
73set_variable = {
75value = {
76add = 1
77if = {
}
85if = {
}
93add = {
94value = "estate_power(estate_type:crown_estate)"
95multiply = 2
96min = 0.1
}
98if = {
99limit = {
99government_power > 0
}
100add = {
101value = 25
102divide = government_power
}
}
105else = {
105add = 2
}
106if = {
107limit = {
107stability < 0
}
108add = {
109value = -25
110divide = stability
111min = 0.1
}
}
}
115years = 1
}
119capital = {
120province = {
121every_location_in_province = {
122limit = {
122owner ?= root
}
123every_pop = {
124limit = {
125owner = root
126OR = {
}
}
133change_pop_allegiance = scope:target_rebel
}
}
}
}
138ordered_province = {
139limit = {
140this != root.capital.province
141province_capital = {
141proximity > 0
}
}
143order_by = {
144value = "province_capital.proximity"
}
146max = {
147value = num_provinces
148multiply = {
149value = root.var:rev_rebellion_intensity_var
150multiply = 0.05
}
152min = 1
}
154check_range_bounds = no
161every_location_in_province = {
162add_to_list = rev_rebelling_locations_list
163every_pop = {
164limit = {
165owner = root
166OR = {
}
}
173change_pop_allegiance = scope:target_rebel
}
}
}
}
192after = {
193scope:target_rebel = {
194start_civil_war = {
195raise_all_levies = {
196type = army
197instant = yes
}
199set_revolution = yes
201save_scope_as = target_country
202every_in_list = {
203list = rev_rebelling_locations_list
204limit = {
204owner = root
}
205change_location_owner = scope:target_country
}
207root = {
208every_owned_location = {
209limit = {
210is_neighbor_of = scope:target_country
211NOT = {
211is_connected_to = root.capital
}
}
213change_location_owner = scope:target_country
}
}
216scope:target_location = {
217province = {
218every_location_in_province = {
218change_location_owner = scope:target_country
}
}
}
}
223hidden_effect = {
224while = {
225limit = {
226OR = {
227root.var:num_infantry_variable > 0
228root.var:num_cavalry_variable > 0
229root.var:num_auxiliary_variable > 0
230root.var:num_artillery_variable > 0
}
}
233scope:target_province_definition = {
235random_location_in_province_definition = {
236limit = {
237has_owner = yes
238OR = {
239owner = scope:target_country
240controller = scope:target_country
}
}
243random_list = {
2446 = {}
2981 = {}
3321 = {}
3622 = {}
}
}
}
}
}
}
}