CuteCumber
Member
- Reaction score
- 4
I made a unit revive trigger like this:
I made it one by one for all the other players. This means I got 10 similar triggers in total. Can this be simplified or combined? Thank you.
Trigger:
- Revive P1
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Triggering unit)) Equal to (==) Peasant (Human)
- ((Triggering unit) is owned by Player 2 (Blue)) Equal to (==) True
- Actions
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Set P1Item[(Integer A)] = (Item carried by (Triggering unit) in slot (Integer A))
- Loop - Actions
- Wait 10.00 game-time seconds
- Unit - Create 1 Peasant (Human) for Player 2 (Blue) at HumanRevivePoint facing Default building facing (270.0) degrees
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Hero - Give (Last created item) to (Last created unit)
- Item - Create (Item-type of P1Item[(Integer A)]) at HumanRevivePoint
- Loop - Actions
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Unit - Remove (Triggering unit) from the game
- Camera - Pan camera for (Owner of (Last created unit)) to HumanRevivePoint over 0.00 seconds
- Selection - Select (Last created unit) for (Owner of (Last created unit))
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Events
I made it one by one for all the other players. This means I got 10 similar triggers in total. Can this be simplified or combined? Thank you.