Im making an escape map, where I need to everyone that isnt alive to ressurect at one place, I have this trigger:
thanks in advance
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Units[(Integer A)] is dead) Equal to True
-
Then - Actions
- Unit - Create 1 Wisp for (Owner of Units[(Integer A)]) at (Center of Region 010 <gen>) facing 0.00 degrees
- Set Units[(Integer A)] = (Last created unit)
- Item - Remove (Item carried by Units[(Integer A)] of type Jornal - segundo nivel)
- Hero - Create Jornal - terceiro nivel and give it to Units[(Integer A)]
- Camera - Pan camera for (Owner of Units[(Integer A)]) to (Center of Region 010 <gen>) over 1.00 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Set Units[1] = Wisp 0012 <gen>
- Set Units[2] = Wisp 0017 <gen>
- Set Units[3] = Wisp 0015 <gen>
- Set Units[4] = Wisp 0019 <gen>
- Set Units[5] = Wisp 0018 <gen>
- Set Units[6] = Wisp 0013 <gen>
- Set Units[7] = Wisp 0016 <gen>
- Set Units[8] = Wisp 0014 <gen>
- Set Units[9] = Wisp 0021 <gen>
- Set Units[10] = Wisp 0020 <gen>
thanks in advance