I'm having a problem with the following trigger. (I'm sorry if the post format or place is wrong, if it is, feel free to move it or correct me.)
-------------
----------
What I want to happen is:
If said unit 'Soulnado' (a summoned unit based on Tornado) comes into the playing map area, it'll be set as a unit variable named 'SoulnadoUnit_1' or 'SoulnadoUnit_2', in case there's already a 'SoulnadoUnit_1'.
That's why I used the conditions to check if there already is such a unit on the map and set the variable accordingly.
What happens is:
Whether there actually is or isn't a Soulnado on the map, it doesn't matter - it runs the 'Then' part of the branch and sets the variable to 'SoulnadoUnit_2', executing the rest of the actions as well.
I thought at first that the trigger was triggering itself somehow, and tried adding a 'turn off this trigger' at the beggining and 'turn on this trigger' at the end, but to no avail. Any ideas? Help will be greatly appreciated.
-------------
-
Soulnado Switch On
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Soulnado
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Playable map area) contains SoulnadoUnit_1) Equal to True
-
Then - Actions
- Set SoulnadoUnit_2 = (Triggering unit)
- Trigger - Turn on Soulnado Ticker 2 <gen>
-
Unit Group - Pick every unit in (Units owned by (Owner of SoulnadoUnit_2) matching ((Unit-type of (Matching unit)) Equal to Warlock)) and do (Actions)
-
Loop - Actions
- Set SoulnadoOwner_2 = (Picked unit)
-
Loop - Actions
-
Else - Actions
- Set SoulnadoUnit_1 = (Triggering unit)
- Trigger - Turn on Soulnado Ticker 1 <gen>
-
Unit Group - Pick every unit in (Units owned by (Owner of SoulnadoUnit_1) matching ((Unit-type of (Matching unit)) Equal to Warlock)) and do (Actions)
-
Loop - Actions
- Set SoulnadoOwner_1 = (Picked unit)
-
Loop - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
----------
What I want to happen is:
If said unit 'Soulnado' (a summoned unit based on Tornado) comes into the playing map area, it'll be set as a unit variable named 'SoulnadoUnit_1' or 'SoulnadoUnit_2', in case there's already a 'SoulnadoUnit_1'.
That's why I used the conditions to check if there already is such a unit on the map and set the variable accordingly.
What happens is:
Whether there actually is or isn't a Soulnado on the map, it doesn't matter - it runs the 'Then' part of the branch and sets the variable to 'SoulnadoUnit_2', executing the rest of the actions as well.
I thought at first that the trigger was triggering itself somehow, and tried adding a 'turn off this trigger' at the beggining and 'turn on this trigger' at the end, but to no avail. Any ideas? Help will be greatly appreciated.