How do I buff an entire force?
I'm trying to use something similar in my map. It has king of the hill elements so when a team captures a hill I want the entire team rewarded with a buff. I tried using this but didn't have much luck.
Code:Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions) Loop - Actions Hero - Modify Strength of (Picked unit): Add 10
I'm trying to use something similar in my map. It has king of the hill elements so when a team captures a hill I want the entire team rewarded with a buff. I tried using this but didn't have much luck.
Code:
reward red
Events
Time - RedTimer expires
Conditions
Actions
Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
Loop - Actions
Unit - Order Dummy Caster 0019 <gen> to Undead Lich - Frost Armor (Picked unit)
Countdown Timer - Destroy (Last created timer window)