要求制定反海盗政策
行动本版本变更

要求制定反海盗政策

request_antipiracy_policyin_game/common/generic_actions/golden_age_of_piracy.txt:147

海盗祸患除之不禁,归根结底是因为一些该死的国家厚颜无耻地公开支持和资助这些强盗!我们必须动用外交力量来说服他们纠正这一可怕错误。

需要海盗法法律select trigger 2反海盗政策allow, select trigger 2海盗黄金时代局势select trigger 1antipiracy_request_cooldown变量select trigger 2

定义in_game/common/generic_actions/golden_age_of_piracy.txt:147

148type = situation
149show_message = no
150potential = {
151scope:actor = {
152NOT = {
152country_type = navy
}
}
}
156allow = {
157scope:actor = {
158has_policy = anti_piracy_policy
}
}
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" 选择局势:
177column = {
178data = name
}
180visible = {
182situation_is_active = yes
}
}
186select_trigger = {
187looking_for_a = country
188target_flag = target_country
189name = "choose_a_country" 选择一个国家
190none_available_msg_key = "no_suitable_countries"
191column = {
191data = name
}
192visible = {
193within_diplomatic_range = scope:actor
194has_law = piracy_law
195NOT = {
195has_policy = anti_piracy_policy
}
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 该国家在过去6个月内未回应过类似请求
204has_variable = antipiracy_request_cooldown
}
206has_reform = government_reform:pirate_brethren_reform
}
}
}
211effect = {
212if = {
213limit = {
214exists = scope:target_country
}
216scope:target_country = {
217trigger_event_non_silently = golden_age_of_piracy.100
}
}
220else = {
221custom_tooltip = request_antipiracy_policy_tt 我们将做出行动以说服他们变更法律
}
}
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
}
}
© 2026 Soft Santa Cruz, S.L.U.。保留所有权利。非官方粉丝项目,与Paradox Interactive无关。游戏内容 © Paradox Interactive。 关于 · 隐私 · 法律声明