2023-05-23 11:11:33 +08:00
|
|
|
RG_leader_trait_tempest_incoming_random_kill_effect = {
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
# Check if the general on side A has the supreme warrior trait
|
|
|
|
any_ground_combat_$SIDE_A$ = {
|
|
|
|
exists = leader
|
|
|
|
leader = {
|
|
|
|
has_trait = RG_leader_trait_general_gray_skill
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value > 100
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
95 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
5 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 10
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
90 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
10 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 20
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
80 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
20 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 30
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
70 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
30 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 40
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
60 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
40 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 40
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
60 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
40 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 50
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
50 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
50 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 60
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
40 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
60 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 70
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
30 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
70 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 80
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
20 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
80 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value <= 90
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
10 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
90 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else_if = {
|
|
|
|
limit = {
|
|
|
|
check_variable = {
|
|
|
|
which = rg_general_skill_combat_killed_variable
|
|
|
|
value >= 90
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_list = {
|
|
|
|
# NOTE: Update custom loc for effect when changing probablity
|
2023-06-08 13:11:05 +08:00
|
|
|
5 = {
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
95 = {
|
|
|
|
random_ground_combat_$SIDE_B$ = {
|
|
|
|
limit = {
|
|
|
|
is_in_frontline = yes
|
|
|
|
}
|
|
|
|
remove_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
}
|