- Joined
- Feb 13, 2019
- Messages
- 128
Trigger
I'm just trying to set it up so that when the game starts, every player owned Hero unit, receives this buff from the dummy.
But I'm not sure on how to set the variables to the units without making a separate trigger for each player, and making triggers that just uses "specific unit".
I want to say this is what loops are for? But don't they run forever? (the loop) will that have an adverse affect on gameplay?
Thank you for your time I really appreciate it.
-
Events
-
Player - Player 1 (Red) types a chat message containing test as An exact match
-
-
Conditions
-
Actions
-
Set VariableSet Hero_Group = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Hero))
-
Unit Group - Pick every unit in Hero_Group and do (Set VariableSet UnitHunger[(Player number of (Owner of (Picked unit)))] = 3)
-
Unit - Create 1 Dummy (0) for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees
-
Unit - Add Well Fed Dummy (Archimonde) to (Last created unit)
-
Unit - Order (Last created unit) to Special Archimonde - Finger Of Death (Picked unit)
-
-
Custom script: call DestroyGroup(udg_Hero_Group)
-
Custom script: call RemoveLocation(udg_??????)
I'm just trying to set it up so that when the game starts, every player owned Hero unit, receives this buff from the dummy.
But I'm not sure on how to set the variables to the units without making a separate trigger for each player, and making triggers that just uses "specific unit".
I want to say this is what loops are for? But don't they run forever? (the loop) will that have an adverse affect on gameplay?
Thank you for your time I really appreciate it.