
Action
Inspect an Area
Our Actor Flavor Rank has rested on its laurels for far too long. It is time to remind the areas within our borders that we are in control, crushing any ambitions they may have.
Complacent DeclineDisasterselect trigger 1Recent InspectionStatic Modifierselect trigger 2Definitionin_game/common/generic_actions/decline_of_empire_actions.txt:1
2type = disaster
4allow = {
5scope:actor = {
6at_war = no
7is_during_bankruptcy = no
}
}
11automation_tick = never
12automation_tick_frequency = 12
13price = price:complacent_decline_actions_price
15cooldown = {
16type = cd_inspect_area
17years = 1
}
20select_trigger = {
21looking_for_a = disaster
22name = "choose_disaster" Choose the Disaster:
23target_flag = recipient
24column = {
25data = name
}
}
34select_trigger = {
35looking_for_a = area
36source = actor
37target_flag = target_area
38name = "choose_an_area" Choose an Area
39none_available_msg_key = "no_areas_available"
40column = {
40data = name
}
41column = {
41data = population
}
42column = {
42data = integration
}
43visible = {
44any_ownable_location_in_area = {
45owner ?= scope:actor
}
}
49enabled = {
}
}
56effect = {
57if = {
58limit = {
58exists = scope:target_area
}
}
62custom_tooltip = selected_area_inspected_tt The selected Area will undergo an inspection, lowering Pop Satisfaction and Complacency while raising the Control of key Provinces within it.
The effectiveness of this inspection depends largely on the Population of the Area as well as our Legislative Efficiency
The effectiveness of this inspection depends largely on the Population of the Area as well as our Legislative Efficiency
}
65ai_will_do = {
66add = {
67value = 15
68desc = BASE_VALUE
}
71if = {
72limit = {
72exists = scope:target_area
}
73add = {
74desc = "population divided by area control"
75value = scope:target_area.population
76if = {
77limit = {
78scope:target_area = {
79area_average_control(scope:actor) < 0.05
}
}
82divide = 0.05
}
84else = {
85scope:target_area = {
86divide = "area_average_control(scope:actor)"
}
}
89multiply = 0.01
}
92scope:target_area = {
93every_location_in_area = {
94limit = {
94owner ?= scope:actor
}
95add = 1
}
}
}
}