
行动
贿赂守军
内战期间,人心动摇,Actor Flavor Rank一片混乱。我们应充分利用当前不稳定局势,向敌方堡垒提供金钱与保障,说服其指挥官和平投降,而不是抵抗我们的围攻。
玫瑰战争灾难select trigger 1wotr_bribe_garrison_variable变量potential定义in_game/common/generic_actions/war_of_the_roses_actions.txt:1
2type = disaster
8allow = {
9scope:actor = {
10in_civil_war = yes
11stability > 0
}
}
15automation_tick = never
16price = price:wotr_action_price
18cooldown = {
19type = wotr_bribe_garrison
20months = 6
}
23select_trigger = {
24looking_for_a = disaster
30name = "choose_disaster" 选择灾难:
31target_flag = recipient
32column = {
33data = name
}
}
41select_trigger = {
42looking_for_a = location
43interaction_source_list = {
44scope:actor = {
46every_fort_in_country = {
47limit = {
48controller = {
49this != scope:actor
50is_rebel_country = yes
}
}
53add_to_list = source
}
56random_country_at_war_with = {
57limit = {
57is_rebel_country = yes
}
58every_fort_in_country = {
59limit = {
59controller ?= prev
}
60add_to_list = source
}
}
}
}
65target_flag = target_siege
66name = "select_ongoing_siege_to_bribe" 选择一场正在进行的围攻进行贿赂
67none_available_msg_key = "no_ongoing_siege_to_bribe"
68column = {
68data = name
}
69column = {
69data = population
}
70column = {
70data = rank
}
74enabled = {
75garrison_percentage > 0.1
76has_siege = yes
77siege = {
78any_besieging_unit = {
78owner = scope:actor
}
}
}
}
83effect = {
84if = {
85limit = {
85exists = scope:target_siege
}
86custom_tooltip = {
87text = chosen_siege_tt Target Siege的守军将投降
}
}
91else = {
91custom_tooltip = no_chosen_siege_tt 所选地点的守军将投降
}
}
94ai_will_do = {
95add = -20
96if = {
97limit = {
98scope:actor.gold <= {
99value = scope:actor.monthly_income_total
100multiply = 3
}
}
103subtract = 100
}
105if = {
106limit = {
107scope:actor = {
107is_during_bankruptcy = yes
}
}
109subtract = 1000
}
111add = scope:actor.stability
}