Files
azurlane-tj/src/common/decisions/DH1_yuanzheng_decision.txt
actions[bot] 9951218126
All checks were successful
sync / build (push) Successful in 53s
2024-07-28 00:31:07
2024-07-28 00:31:07 +08:00

140 lines
3.1 KiB
Plaintext
Executable File

DH1_decision_category = {
DH1_debug_1 = {
icon = border_war
visible = {
is_debug = yes
}
available = {
is_ai = no
}
days_remove = 0
complete_effect = {
complete_national_focus = DH1_zhongnanbandao
complete_national_focus = DH1_beibeibeiqilexingnang
complete_national_focus = DH1_nanyacidalu
for_loop_effect = {
start = 0
end = 20
add = 1
random_owned_controlled_state = {
create_unit = {
division = "name = \"民兵团\" division_template = \"军团\" start_experience_factor = 0.3 start_equipment_factor = 1"
owner = ROOT
}
}
}
add_political_power = 1000
}
}
DH1_yuanzheng_mission = {
icon = border_war
target_array = neighbors
target_trigger = {
FROM = {
exists = yes
}
}
available = {
FROM = {
any_owned_state = {
is_controlled_by = FROM
### 以下固定范围
OR = {
is_core_of = DH1
is_claimed_by = DH1
}
### 以上固定范围
any_neighbor_state = {
is_fully_controlled_by = ROOT # DH1
}
}
}
}
visible = {
ROOT = {
has_completed_focus = DH1_jingong
}
FROM = {
exists = yes
NOT = {
OR = {
is_subject_of = ROOT
is_in_faction_with = ROOT
is_ally_with = ROOT
has_war_with = ROOT
has_border_war_with = ROOT
}
}
}
}
ai_will_do = {
base = 0
modifier = {
DH1 = {
has_country_flag = DOH_DH1_kaishiyuanzheng_flag
}
add = 100
}
modifier = {
DH1 = {
has_idea = DH1_AI_zhongshijingong
}
add = 100
}
}
cost = 15
fire_only_once = no
days_remove = 10
days_re_enable = 30
complete_effect = {
FROM = {
random_controlled_state = {
limit = {
any_neighbor_state = {
is_controlled_by = ROOT
}
}
save_event_target_as = defender_state
set_variable = {
FROM.defender_state_vs_@ROOT = id
}
}
}
random_state = {
limit = {
is_controlled_by = ROOT
any_neighbor_state = {
state = var:FROM.defender_state_vs_@ROOT
}
}
save_event_target_as = attacker_state
set_variable = {
FROM.attacker_state_vs_@ROOT = id
}
}
# log = "attacker [FROM.GetName]: [?FROM.attacker_state_vs_@ROOT]"
# log = "defender [FROM.GetName]: [?FROM.defender_state_vs_@ROOT]"
# log = "attacker [FROM.GetName]: [?FROM.attacker_state_vs_@DH1]"
# log = "defender [FROM.GetName]: [?FROM.defender_state_vs_@DH1]"
}
remove_effect = {
start_border_war = {
change_state_after_war = no
attacker = {
state = var:FROM.attacker_state_vs_@ROOT
num_provinces = 4
on_win = az_DH1_yuanzheng_won_attacker.1
on_lose = az_DH1_yuanzheng_lost_attacker.1
on_cancel = az_DH1_yuanzheng_lost_attacker.1
}
defender = {
state = var:FROM.defender_state_vs_@ROOT
num_provinces = 4
on_win = az_DH1_yuanzheng_won_defender.1
on_lose = az_DH1_yuanzheng_lost_defender.1
on_cancel = az_DH1_yuanzheng_lost_defender.1
}
}
}
}
}