
ActionChanged this version
Request Anti-Piracy Policy
The scourge of piracy is impossible to eradicate because some cursed nations have the gall to openly encourage and finance these brigands! We must convince them to correct this terrible mistake through the strength of our diplomacy.
Piracy LawLawselect trigger 2
Anti-PiracyPolicyallow, select trigger 2
Golden Age of PiracySituationselect trigger 1antipiracy_request_cooldownVariableselect trigger 2Definitionin_game/common/generic_actions/golden_age_of_piracy.txt:147
148type = situation
149show_message = no
150potential = {
151scope:actor = {
152NOT = {
152country_type = navy
}
}
}
162ai_tick = monthly
163ai_tick_frequency = 4
165automation_tick = never
166automation_tick_frequency = 12
168price = price:send_diplomat
170cooldown = {
}
173select_trigger = {
174looking_for_a = situation
175target_flag = recipient
176name = "choose_situation" Choose the Situation:
177column = {
178data = name
}
}
186select_trigger = {
187looking_for_a = country
188target_flag = target_country
189name = "choose_a_country" Choose a Country
190none_available_msg_key = "no_suitable_countries"
191column = {
191data = name
}
192visible = {
193within_diplomatic_range = scope:actor
196this != scope:actor
}
198enabled = {
199NOR = {
200has_opinion = {
200modifier = opinion_accepted_prosecute_pirates
200target = scope:actor
}
201has_opinion = {
201modifier = opinion_refused_prosecute_pirates
201target = scope:actor
}
202custom_tooltip = {
203text = antipiracy_request_cooldown_tt This country has NOT answered a similar request in the past 6 months
}
206has_reform = government_reform:pirate_brethren_reform
}
}
}
211effect = {
212if = {
213limit = {
214exists = scope:target_country
}
}
220else = {
221custom_tooltip = request_antipiracy_policy_tt We will reach out and attempt to persuade them to change their law
}
}
225ai_will_do = {
226add = -10
227add = {
228desc = "RELATIVE_STRENGTH"
229value = 100
230multiply = "scope:actor.relative_strength(scope:target_country)"
231divide = 10
}
233add = {
234desc = "NUM_LOANS_TOOLTIP"
235value = scope:actor.num_loans
236multiply = -10
}
238add = {
239desc = "DIPLOREASON_BORDER_DISTANCE"
240value = "scope:actor.border_distance_to(scope:target_country)"
241multiply = 0.1
242min = -1000
}
}