• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

mana regeneration in region

Status
Not open for further replies.
Level 5
Joined
Mar 21, 2007
Messages
155
hi, i am trying to make a trigger where a unit gets mana regeneration ONLY in a specific region.
(i.e i want to make a unit able to move earth, and throw earth, but in some areas, there is no earth. but where there is, i want his mana to regenerate saying that there is earth)

but i can't seem to do it, i bet its plain simple but i can't find it. please help
 
Level 5
Joined
Mar 21, 2007
Messages
155
hmm, the trigger dosen't work??? i know what u mean, i made this but it won't work for some reason???!!!

allow earthbending
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in earthbending zone <gen> matching ((Unit-type of (Picked unit)) Equal to Earthbender)) and do (Unit - Set mana of (Picked unit) to 1.00)

:with (earthbending zone) being the zone and (earthbender) being the type of unit

what am i doing wrong???
 
Status
Not open for further replies.
Top