
Situation
Fall of Delhi
A century of overextension and a crumbling central authority have hurt the rule and reputation of the mighty Delhi. Beyond their borders are vultures and enemies, waiting to strike at any moment. The great Delhi Flavor Rank of their forefathers will be brought to its knees in but an instant lest they succeed in safeguarding their people from internal and external threats.
DelhiCountrycan start, on ended, on start, visible
The Dissolution of DelhiDisasteron ended
DhimmiEstateon monthly
SlavesGoodson monthlyOpposers InterferenceStatic Modifieron endedWars of the Successors of DelhiStatic Modifieron ended, on monthlydelhi_claimants_variableVariableon endeddlh_surrendered_territories_varVariableon endedstarts_fall_of_delhi_variableVariablecan startDefinitionin_game/common/situations/fall_of_delhi.txt:1
3hint_tag = hint_fall_of_delhi
4resolution = "fall_of_delhi_resolution"
5voters = fall_of_delhi_voters
7can_start = {
9custom_tooltip = {
10text = has_never_had_situation_before_tt Has not had this Situation before
}
}
18visible = {
}
40on_start = {
42every_country = {
43limit = {
46AND = {
47exists = capital
48capital.sub_continent = sub_continent:south_asia
}
}
56add_to_global_variable_list = {
56name = fall_of_delhi_voters
56target = this
}
}
}
68ordered_known_country = {
69limit = {
70capital.sub_continent = sub_continent:south_asia
}
77order_by = country_total_army_levy_size
78max = 1
79check_range_bounds = no
94add_to_global_variable_list = {
94name = fall_of_delhi_possible_votes
94target = this
}
103propose_resolution = {
104resolution = resolution:fall_of_delhi_resolution
105actor = this
107vote = this
}
}
}
}
}
122on_monthly = {
124if = {
}
}
135random_list = {
13670 = {
}
1401 = {
}
}
156random_list = {
1572 = {
158random_in_global_list = {
159variable = fall_of_delhi_voters
160limit = {
161OR = {
162own_entire_province = province_definition:puadh_province
163own_entire_province = province_definition:delhi_province
164own_entire_province = province_definition:upper_doab_province
165own_entire_province = province_definition:central_doab_province
166own_entire_province = province_definition:lower_doab_province
167own_entire_province = province_definition:braj_province
}
}
}
}
17625 = {
177random_in_global_list = {
178variable = fall_of_delhi_voters
179limit = {
}
}
}
1925 = {
193random_in_global_list = {
194variable = fall_of_delhi_voters
195limit = {
195has_estate_privilege = estate_privilege:habshi_advisors_privilege
}
}
}
20295 = {
}
}
}
207on_ended = {
209if = {
}
}
214if = {
218every_country = {
}
}
225else_if = {
}
231else_if = {
232limit = {
}
}
}
246random_country = {
}
}
253tooltip = {
254if = {
255limit = {
256has_owner = yes
262active_resolution(resolution:fall_of_delhi_resolution) = {
}
}
}
267custom_tooltip = "LOYAL_SUBJECT_OF_DELHI"
}
269else_if = {
270limit = {
271has_owner = yes
277active_resolution(resolution:fall_of_delhi_resolution) = {
278vote_in_active_resolution(root.owner) ?= resolution_proposer
}
}
}
282custom_tooltip = "DISLOYAL_SUBJECT_OF_DELHI"
}
284else_if = {
291custom_tooltip = "ALLY_OF_DELHI"
}
293else_if = {
294limit = {
}
303custom_tooltip = "RIVAL_ENEMY_OF_DELHI"
}
}
313map_color = {
321else_if = {
322limit = {
323has_owner = yes
324OR = {
327active_resolution(resolution:fall_of_delhi_resolution) = {
}
}
}
}
333value = delhi_subject_loyal_color
}
335else_if = {
336limit = {
}
345value = delhi_enemy_or_rival_color
}
347else_if = {
356value = delhi_subject_disloyal_color
}
358else_if = {
359limit = {
360has_owner = yes
362active_resolution(resolution:fall_of_delhi_resolution) = {
363vote_in_active_resolution(root.owner) ?= resolution_proposer
}
}
}
367value = delhi_claimant_color
}
369else_if = {
370limit = {
371owner ?= {
372has_variable = delhi_provincial_sultanate_variable
}
}
375value = delhi_provincial_sultanate_color
}
377else = {
378value = define:NMapColors|DEFAULT_COLOR
}
}
387legend_key = {
388desc = "[loyal_subject|e]"
389color = delhi_subject_loyal_color
390require_color_on_map = yes
}
392legend_key = {
393desc = "[rival_enemy|e]"
394color = delhi_enemy_or_rival_color
395require_color_on_map = yes
}
397legend_key = {
398desc = "[disloyal_subject|e]"
399color = delhi_subject_disloyal_color
400require_color_on_map = yes
}
402legend_key = {
403desc = "delhi_claimant_opinion"
404color = delhi_claimant_color
405require_color_on_map = yes
}
407legend_key = {
408desc = "indian_sultanate_reform"
409color = delhi_provincial_sultanate_color
410require_color_on_map = yes
}