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

[Spell] Regen return after seconds

Status
Not open for further replies.
Level 2
Joined
Jun 2, 2013
Messages
12
I Wanted to know how to make a skill that when I learn it, my Hero regeneration increases, but if I take damage regeneration skirt and a count is started after 10 seconds that regeneration return.Sorry for english i'm BR
 
Level 8
Joined
Sep 7, 2008
Messages
320
I Wanted to know how to make a skill that when I learn it, my Hero regeneration increases, but if I take damage regeneration skirt and a count is started after 10 seconds that regeneration return.Sorry for english i'm BR

Use timer :
Add integer 10 to hero
Every second, reduce that integer by 1
When integer reach to 0 , add regen to hero
When hero take dmg, remove regen then increases that integer to 10
 
Level 2
Joined
Jun 2, 2013
Messages
12
Use timer :
Add integer 10 to hero
Every second, reduce that integer by 1
When integer reach to 0 , add regen to hero
When hero take dmg, remove regen then increases that integer to 10

But what if the hero takes damage while this timer is counting? Thus the count reaches 0 even if the hero taking damage right?
 
Status
Not open for further replies.
Top