- Joined
- Nov 14, 2007
- Messages
- 155
how can i create a trigger that would let specific units recover health and mana at a certain region??
for example:
Region A only regenerates Allies of Player 1 (Red)..
I tried these triggers
Life and Mana Regeneration:
target units are self
and i tried summoning a unit like the feral spirit; it can't gain the ability; and i tried replacing inside the region, the unit replaced;
and after the unit re-enters the ability can't be gained
+Rep to those who can help!
for example:
Region A only regenerates Allies of Player 1 (Red)..
I tried these triggers
-
Regenerate
-
Events
-
Unit - A unit enters Region A<gen>
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
((Entering unit) belongs to an ally of Player 1 (Red)) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Entering unit)) Equal to Player 2 (Blue)
-
(Owner of (Entering unit)) Equal to Player 3 (Teal)
-
(Owner of (Entering unit)) Equal to Player 4 (Purple)
-
(Owner of (Entering unit)) Equal to Player 5 (Yellow)
-
(Owner of (Entering unit)) Equal to Player 6 (Orange)
-
-
-
-
-
-
Actions
-
Unit Group - Pick every unit in (Units in Hero Spawn Point West <gen>) and do (Actions)
-
Loop - Actions
-
Unit - Add Life Regeneration Aura (Neutral) to (Entering unit)
-
Unit - Add Mana Regeneration (Neutral) to (Entering unit)
-
-
-
-
-
DeRegenerate
-
Events
-
Unit - A unit leaves Region A <gen>
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
((Leaving unit) belongs to an ally of Player 1 (Red)) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Leaving unit)) Equal to Player 2 (Blue)
-
(Owner of (Leaving unit)) Equal to Player 3 (Teal)
-
(Owner of (Leaving unit)) Equal to Player 4 (Purple)
-
(Owner of (Leaving unit)) Equal to Player 5 (Yellow)
-
(Owner of (Leaving unit)) Equal to Player 6 (Orange)
-
-
-
-
-
-
Actions
-
Unit Group - Pick every unit in (Units in Hero Spawn Point West <gen>) and do (Actions)
-
Loop - Actions
-
Unit - Remove Life Regeneration Aura (Neutral) from (Leaving unit)
-
Unit - Remove Mana Regeneration (Neutral) from (Leaving unit)
-
-
-
-
Life and Mana Regeneration:
target units are self
and i tried summoning a unit like the feral spirit; it can't gain the ability; and i tried replacing inside the region, the unit replaced;
and after the unit re-enters the ability can't be gained
+Rep to those who can help!
Last edited: