i need help with 2 problems
my map is an hero arena.
the first one is a triger that prevent allies attack allies.
the second is to detect living units in team 1 to make duel end.
look my :idea:idea but dont work i nedd help to fix it or try another way to do it.
the end of duel
Events
Time - Every 5.00 seconds of game time
Conditions
bDuel Equal to True
Actions
For each (Integer A) from 1 to 5, do (If ((Number of living (Unit-type of Heroes[(Integer A)]) units owned by (Owner of Heroes[(Integer A)])) Equal to 0) then do (Trigger - Run End Duel team2 <gen> (checking conditions)) else do (Do nothing))
For each (Integer A) from 6 to 10, do (If ((Number of living (Unit-type of Heroes[(Integer A)]) units owned by (Owner of Heroes[(Integer A)])) Equal to 0) then do (Trigger - Run End Duel team 1 <gen> (checking conditions)) else do (Do nothing))
my map is an hero arena.
the first one is a triger that prevent allies attack allies.
the second is to detect living units in team 1 to make duel end.
look my :idea:idea but dont work i nedd help to fix it or try another way to do it.
the end of duel
Events
Time - Every 5.00 seconds of game time
Conditions
bDuel Equal to True
Actions
For each (Integer A) from 1 to 5, do (If ((Number of living (Unit-type of Heroes[(Integer A)]) units owned by (Owner of Heroes[(Integer A)])) Equal to 0) then do (Trigger - Run End Duel team2 <gen> (checking conditions)) else do (Do nothing))
For each (Integer A) from 6 to 10, do (If ((Number of living (Unit-type of Heroes[(Integer A)]) units owned by (Owner of Heroes[(Integer A)])) Equal to 0) then do (Trigger - Run End Duel team 1 <gen> (checking conditions)) else do (Do nothing))