角色互动本版本变更
接手地区防务
该角色会接手目标地区的防务,可以指挥陆军和海军并在内阁任职,持续10年。
允许接手地区防务修正类型potential, select trigger 1
可以接手地区防务修正类型select trigger 1地方防御指挥静态修正effect, select trigger 2禁止指挥陆军或海军静态修正select trigger 12message = yes
3on_own_nation = yes
12ai_tick = daily
13ai_tick_frequency = 30
15allow = {
}
18select_trigger = {
19looking_for_a = character
20source = actor
21target_flag = recipient
22name = "choose_character" 选择角色:
23column = {
24data = name
}
26visible = {
27is_alive = yes
28is_ruler = no
29is_heir = no
30is_regent = no
31OR = {
}
}
38enabled = {
39is_adult = yes
40OR = {
41AND = {
42mil >= 50
43in_cabinet = no
}
45is_general = yes
}
}
}
51select_trigger = {
52looking_for_a = area
53source = actor
54target_flag = target
55name = "assume_fort_command_select_area_title" 选择目标地区
56none_available_msg_key = "assume_fort_command_no_areas"
57column = {
57data = name
}
58visible = {
59any_location_in_area = {
60owner ?= scope:actor
}
}
63enabled = {
}
}
72effect = {
73if = {
74limit = {
74exists = scope:target
}
75scope:target = {
76every_location_in_area = {
81add_location_modifier = {
83mode = add_and_extend
84years = 10
85size = {缩放修正
86if = {
87limit = {
88scope:recipient.adm <= 20
}
90value = {
91desc = script_value_base 基础
92value = 1
}
}
95else = {
96value = {
97desc = script_value_scaling_with_character_admin 角色的行政能力
98value = scope:recipient.adm
99divide = 20
}
}
102if = {
103limit = {
104scope:recipient.modifier:fort_assumed_efficiency_character != 0
}
106value = {
107desc = script_value_scaling_with_fort_assumed_efficiency_character 角色的fort_assumed_efficiency_character
108multiply = {
109value = scope:recipient.modifier:fort_assumed_efficiency_character
110add = 1
}
}
}
}
}
}
}
}
119else = {
120custom_tooltip = assume_fort_command_tt 目标地区获得地方防御指挥,持续10年
效果与Recipient的行政能力成正比
效果与Recipient的行政能力成正比
}
122scope:actor = {
123change_societal_value = {
}
}
125remove_commander = scope:recipient
126scope:recipient = {
127add_character_modifier = {
}
132add_character_modifier = {
}
}
}
140ai_will_do = {
144add = scope:recipient.adm
145subtract = scope:recipient.dip
146subtract = scope:recipient.mil
147add = {
148if = {
149limit = {
150scope:actor = {
151any_current_war = {
152is_an_attacker = scope:actor
}
}
}
156value = -50
}
}
159add = {
160if = {
161limit = {
162scope:actor = {
163any_current_war = {
164NOT = {
164is_an_attacker = scope:actor
}
}
}
}
168value = 25
}
}
}