• 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.

Healing over time?

Status
Not open for further replies.
Level 8
Joined
Aug 8, 2008
Messages
340
Hello. I am making a spell, that when the target unit use it, it gets healed 25hp every second for 10 seconds. But the way that I am doing it does not work. So can someone tell me how to make a trigger that does that?
 
Level 2
Joined
Dec 19, 2007
Messages
20
Make a dummy spell, when the unit casts it create a dummy and order it to heal the caster. You have to make a healing spell for the dummy too, i say use rejuvenation.
 
Level 4
Joined
Jun 19, 2007
Messages
107
Rejuv doesnt heal every 10 seconds but all the time till the unit is healed for as much as the skill says.

You would probably be better off with a dummy unit for neutral passive, which has a heal with 10 seconds cooldown and unlimited range. Then just order the dummy to use his "heal" on the targeted unit.

The skill which the hero(or unit?) uses should just be for example a rejuv with no effect and then have triggers launch when the skill is cast.
 
Level 12
Joined
Mar 16, 2006
Messages
992
Why would you use item abilities? There are already normal abilities that do this job.

Rejuvenation and dummy heal being the best bets.
 
Level 12
Joined
Aug 22, 2008
Messages
911
In conclusion: If the unit will be able to target others as well as itself, a simple spell like heal or rejuvenation will do, else you will need a trigger to make a dummy unit cast the spell on the unit. Or else simply setting the targets to "Self" will do...?
 
Level 12
Joined
Aug 22, 2008
Messages
911
Then do this:
  • Events
    • Time - Every 1 second
  • Conditions
  • Actions
    • Unit Group - Pick every unit in ((Units in Playable Map Area) matching ((Matching Unit) has buff Yourbuff equal to True)) and do Actions
      • Loop - Actions
        • Unit - Set life of (Picked Unit) to ((Life of (Picked Unit)) + 10
 
Level 8
Joined
Aug 3, 2008
Messages
391
Then do this:
  • Events
    • Time - Every 1 second
  • Conditions
  • Actions
    • Unit Group - Pick every unit in ((Units in Playable Map Area) matching ((Matching Unit) has buff Yourbuff equal to True)) and do Actions
      • Loop - Actions
        • Unit - Set life of (Picked Unit) to ((Life of (Picked Unit)) + 10

Isn't it better to use Rejuvenation? Else a trigger with a dummy casting Rejuvenation?
 
Status
Not open for further replies.
Top