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!
What i'm trying to do is... There are 2 castles. Both have health and mana regeneration. I want it so that one castle only heals team 1... and the other castle only heals team 2... Is there any trigger to do this?
Set UnitGroup = (Units in (Playable map area) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an ally of <Your Player>) Equal to True)))
Unit Group - Pick every unit in UnitGroup and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + <Your Value>)
Custom script: call DestroyGroup(udg_UnitGroup)
Set Your Player to the Computer that owns the Castle or if Neutral Passive owns the Castle, set it the the first player in Team 1 or the first player in Team 2
Set Your Value to the amount of Hitpoints you would like to be healed.
I think that is what you want but if not this is what you do make a copy of Life Regeneration Aura (Neutral) and check the "Friend" box in Targets Allowed, do the same thing to Mana Regeneration Aura (Neutral) and add those ablilities to your castle
That's not the same with what you said within the first post
In the first post you asked for a regeneration ability of type Fountain of Life and now you want a damage detection system.
Well, since i assume that the castles are pre-set in the map (via the World Editor and not by triggers), you can have this:
Trigger
Events
Unit - Castle0001 <gen> takes damage [Unit - Specific Unit event]
Conditions
((Damage Source) belongs to an enemy of (Owner of (Castle0001)) Equal to True [Player Comparison]
Actions
Unit - Set life of (Damage Source) to (((Life of (Damage Source)) + X) [Unit - Set life (to Value), place the healing you want done in the position of the "X"]
You will do the same thing for the other castle. Even if it doesn't make that much of sense to me, this is what i think you want; if not, be more specific even.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.