
Action
Bribe Estate
We will bribe the target Estate of the Junior Partner to support Enforce Law Implementation of the Union. The costs will scale with the deficit of the Member Integration Level and the Special Status Power of the target country.
BurghersEstateselect trigger 3
ClergyEstateselect trigger 3
NobilityEstateselect trigger 3
UnionInternational Organizationselect trigger 1
Junior PartnerSpecial Statusselect trigger 2
Has International ParliamentModifier Typeselect trigger 1
Union Integration LevelModifier Typeselect trigger 1Definitionin_game/common/generic_actions/io_parliament_bribes.txt:95
96type = internationalorganizationparliament
97show_in_gui_list = no
99ai_tick = daily
100ai_tick_frequency = 30
101show_message = yes
102show_message_to_target = yes
104automation_tick = daily
105automation_tick_frequency = 1
106player_automated_category = diplomacy
109ai_prerequisite = {
110is_member_of_international_organization_of_type = {
110type = union
}
}
112potential = {
}
114allow = {
}
116select_trigger = {
117looking_for_a = international_organization
118source = actor
119target_flag = recipient
120name = "choose_international_organization" Choose the International Organization:
121none_available_msg_key = "parliament_bribe_no_international_organization"
122column = {
123data = name
}
125visible = {
128has_parliament = yes
}
132enabled = {
133is_active_parliament = yes
}
}
137select_trigger = {
138looking_for_a = country
139source = recipient
140target_flag = target
141name = "choose_country" Choose the Country:
142none_available_msg_key = "parliament_bribe_no_country"
143column = {
143data = name
}
144column = {
144data = population
}
145visible = {
146not = {
146root = scope:actor
}
}
148enabled = {
149has_special_status_in_international_organization = {
151international_organization = scope:recipient
}
153NOT = {
153has_participated_in_parliament = scope:recipient
}
154NOT = {
154has_voted_for_issue_in_parliament = scope:recipient
}
155scope:recipient = {
156special_status_power_fraction = {
}
}
}
}
164select_trigger = {
165looking_for_a = estate
166source = target
167target_flag = estate
168name = "choose_estate" Choose the Estate
169none_available_msg_key = "mission_select_no_estate"
170show_why_not_enabled = yes
171column = {
171data = name
}
172visible = {
173OR = {
}
}
179enabled = {
180scope:target = {
181country_has_estate = root.estate_type
}
}
}
189select_trigger = {
190looking_for_a = parliament_agenda
191source = target
192target_flag = agenda
193name = "choose_parliament_agenda" Choose the Parliament Agenda:
194none_available_msg_key = "parliament_bribe_no_parliament_agenda"
195show_why_not_enabled = yes
196column = {
196data = parliament_agenda_widget
}
197visible = {
198is_visible_for = scope:target
199can_be_bribe = yes
200agenda_for_estate_type = scope:estate.estate_type
}
202enabled = {
203scope:actor = {
204custom_description = {
205text = can_use_agenda_bribe_tt We can use any Parliament Agenda of the ESTATE TYPE of TARGET COUNTRY as a bribe
206value = scope:estate.estate_type
207object = scope:target
208can_use_agenda_bribe = {
209type = PREV
210estate_type = scope:estate.estate_type
211target = scope:target
}
}
}
}
}
217effect = {
219scope:actor = {
220if = {
221limit = {
222exists = scope:agenda
}
224bribe_estate = {
225type = scope:agenda
226estate_type = scope:estate.estate_type
227target = scope:target
}
}
230else = {
231custom_tooltip = bribe_estate_tooltip We will bribe the target Estate of Target by completing a Parliament Agenda of the estate for a bribe cost
}
}
}
235ai_will_do = {
236add = {
237if = {
238limit = {
239exists = scope:actor
240exists = scope:target
241exists = scope:recipient
}
243if = {
244limit = {
245save_temporary_scope_value_as = {
246name = scaling_bribe_gold
247value = {
248value = scope:recipient.modifier:union_integration_level
249if = {
250limit = {
251scope:target = {
251has_variable = integrated_in_union
}
}
253subtract = scope:target.var:integrated_in_union
}
255multiply = scope:actor.monthly_income_trade_and_tax
}
}
258scope:actor.gold > {
258value = scope:scaling_bribe_gold
258multiply = 1.25
}
}
260value = 25
}
}
263else = {
264value = -1
}
}
}