
ActionChanged this version
Call Parliament
This will call in the Parliament in an attempt to get support to resolve a Parliament Issue, change Policies in our Laws, creating a Casus Belli, raising higher Taxes or larger Army Levies and Naval Levies.
During this session we will get the following effects
Game Concept Parliament in Session,
Parliament Location;
and either Parliament in Capital or Parliament Outside Capital depending on selected Location.
Rural ParliamentsModifier Typeselect trigger 1
Fort LevelModifier Typeselect trigger 1
Has a Parliamentary SystemModifier Typeallow
Parliament SeatModifier Typeselect trigger 1
Parliament AbolishedModifier Typeallow
Permanent ParliamentModifier Typeselect trigger 1Definitionin_game/common/generic_actions/parliament.txt:2
3type = owncountry
5ai_tick = never
6automation_tick = never
7player_automated_category = parliament
9allow = {
10scope:actor = {
11is_active_parliament = no
}
}
20select_trigger = {
21show_if = {
}
28looking_for_a = location
29source = actor
30ai_interaction_source_list = {
31scope:actor = {
32capital = {
33add_to_list = source
}
}
}
38name = "select_parliament_location" Select Parliament Location
39none_available_msg_key = "call_parliament_no_locations"
40column = {
41data = name
}
43column = {
44data = population
}
46column = {
47data = control
}
49column = {
50data = rank
}
52visible = {
53has_owner = yes
54owner ?= scope:actor
55controller ?= scope:actor
56local_control > 0
57OR = {
58is_capital = yes
59AND = {
}
}
}
}
77select_trigger = {
78looking_for_a = parliament_issue
79interaction_source_list = {
80scope:actor = {
81every_possible_parliament_issue = {
82add_to_list = source
}
}
}
86ai_interaction_source_list = {
87scope:actor = {
88every_possible_parliament_issue = {
89if = {
90limit = {
91ai_parliament_issue_resolution_vote_bias(scope:actor) >= 0
}
93add_to_list = source
}
}
}
}
98cache_interaction_source_list = yes
99cache_targets = yes
100target_flag = parliament_issue
101name = "select_parliament_debate" Select Parliament Debate
102none_available_msg_key = "select_parliament_debate_none_available"
103column = {
104data = parliament_issue_widget
}
106visible = {
107is_available_for = scope:actor
}
}
111effect = {
112scope:actor = {
113if = {
114limit = {
115exists = scope:parliament_location
}
118set_parliament_location = scope:parliament_location
119custom_tooltip = {
120text = select_parliament_location_modifier_tooltip Parliament Location gains Parliament Location for the duration of the Parliament.
}
123if = {
124limit = {
124scope:parliament_location = scope:actor.capital
}
125custom_tooltip = {
126text = select_parliament_location_capital_modifier_tooltip We move towards centralization as Parliament Location is our Capital.
}
}
129else = {
130custom_tooltip = {
131text = select_parliament_location_not_capital_modifier_tooltip We move towards decentralization as Parliament Location is NOT our Capital.
}
}
134scope:parliament_location = {
}
}
142else = {
143custom_tooltip = select_parliament_location_inform_choice_tt If we hold Parliament in our capital with icon we will move towards centralization, while if we pick another Location, we will move towards decentralization. The selected Location will gain Parliament Location for the duration of the Parliament.
144set_parliament_location = scope:actor.capital
}
148set_parliament_active = yes
150if = {
151limit = {
151exists = scope:parliament_issue
}
152set_parliament_issue = scope:parliament_issue
153set_parliament_issue_support = {
158if = {
159limit = {
160scope:parliament_issue.estate_type = {
161always_loyal = no
}
}
164add = {
165desc = estate_power
166value = "estate_power(scope:parliament_issue.estate_type)"
}
}
}
}
}
}
174ai_will_do = {
175add = {
176if = {
177limit = {
178scope:actor = {
179months_since_last_parliament_called < 72
180stability < 0
}
}
183value = -10000
}
186if = {
187limit = {
188scope:actor = {
189months_since_last_parliament_called > 120
}
}
192value = 500
}
196if = {
197limit = {
198scope:actor = {
199OR = {
200any_neighbor_country = {
201scope:actor = {
202wants_casus_belli_with = prev
}
}
205any_rival = {
206scope:actor = {
207wants_casus_belli_with = prev
}
}
}
}
}
213value = 100
}
}
217scope:actor = {
218if = {
219limit = {
220exists = scope:parliament_issue
}
222add = "parliament_issue_chance(scope:parliament_issue)"
}
}
225if = {
226limit = {
227exists = scope:parliament_location
}
229scope:parliament_location = {
230save_temporary_scope_as = this_parliament_location
}
}
233else = {
234scope:actor = {
235capital = {
236save_temporary_scope_as = this_parliament_location
}
}
}
241multiply = {
242scope:this_parliament_location = {
243if = {
244limit = {
245scope:actor = {
246capital = scope:this_parliament_location
}
}
250value = 30
}
252else = {
253value = proximity
254add = {
255value = local_control
256multiply = 10
}
258add = {
259value = scope:actor.societal_value:centralization_vs_decentralization
260multiply = 0.1
}
263add = {
264value = random_integer
265modulo = 10
}
}
269if = {
270limit = {
270location_rank = location_rank:town
}
271add = 2
}
273else_if = {
274limit = {
274OR = {
274location_rank = location_rank:city
274location_rank = location_rank:megalopolis
}
}
275add = 10
}
}
}
}