hello everyone, this is for a naval battle.
At the beginning, there are 2 ships and where the soldiers of both teams spawn and the ships that sail to a central point.
I am trying to activate reinforcements at an entry point different from the one at the beginning, so that those reinforcements always appear there (where the ships are), because at the beginning they are no longer there and the soldiers drown, that is the reason for the change.
In other words, I want reinforcements to arrive from a specific place every time both teams have less than 8 soldiers.
I have tried to occupy some siege triggers, but they don't work quite right. The first wave of reinforcements appears fine, but then they appear at the beginning, also the reinforcements of the other team (attackers) do not arrive.
Any help is welcome, thank you.
these are the triggers i'm testing...
At the beginning, there are 2 ships and where the soldiers of both teams spawn and the ships that sail to a central point.
I am trying to activate reinforcements at an entry point different from the one at the beginning, so that those reinforcements always appear there (where the ships are), because at the beginning they are no longer there and the soldiers drown, that is the reason for the change.
In other words, I want reinforcements to arrive from a specific place every time both teams have less than 8 soldiers.
I have tried to occupy some siege triggers, but they don't work quite right. The first wave of reinforcements appears fine, but then they appear at the beginning, also the reinforcements of the other team (attackers) do not arrive.
Any help is welcome, thank you.
these are the triggers i'm testing...
Code:
common_ship_battle_defender_reinforcement_check = (
0, 0, 0, [],#3,0,5
[
(lt, "$defender_reinforcement_stage", 0),
(store_mission_timer_a,":mission_time"),
(ge,":mission_time",10),
(store_normalized_team_count,":num_defenders",0),
(lt,":num_defenders",8),
(add_reinforcements_to_entry,17, 10),
(val_add,"$defender_reinforcement_stage",1),
])
common_ship_battle_attacker_reinforcement_check = (
0, 0, 0, [],#1,0,5
[
(lt,"$attacker_reinforcement_stage",0),
(store_mission_timer_a,":mission_time"),
(ge,":mission_time",10),
(store_normalized_team_count,":num_attackers",1),
(lt,":num_attackers",8),
(add_reinforcements_to_entry, 16, 10),
(val_add,"$attacker_reinforcement_stage", 1),
])