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

Item that restores 40% of hp/mana over time

Status
Not open for further replies.
Level 1
Joined
Jun 21, 2009
Messages
282
I'm not sure where to start for this ability really, so this is what I need:

An item that restores 3% of health a tick, for a total of 40% of health restored over a 10 second effect.

Same goes for mana (but as a seperate item), and these abilities will be taken off once that person with that effect gets attacked with either melee or spells.

So see what you can do, thank you.
 
Level 1
Joined
Jun 21, 2009
Messages
282
This is a use ability item, for an example: Once you use the item THEN the 10 second effect starts to take effect, this item has 3 uses to it and once all uses are used, the item will disapear.

Sorry if I wasn't clear before.
 
Level 10
Joined
Dec 12, 2010
Messages
569
Well, for the health tick thing, I have to say, you maybe could use some sort of Healing Ward aura or something and only have it on for so long, but the only problem with that is those type of effects (Healing Ward Aura, Fountain of Health's Life Regeneration, and Fountain of Mana's Mana Regeneration) stay on for a little while longer than they're supposed to. But one thing, 3 is not divisible by 40. :eekani:

About the part where you want the ability to non-combat consumable, use:

  • Unit - Remove YourBuff buff from Caster
Where YourBuff is a custom buff you make for your ability and Caster is a variable you set for your casting unit with the simple action:

  • Set Caster to (Casting Unit)

But if you didn't want to do something like that, another alternative is to just use something like the Replenishment Potion's ability. It almost the same, except it doesn't use percentages.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
As Slayer said so, 40 is not divisible by 3 :)
Your math is sexy, I'd like to help, but make sure you have correct formula first, okay ?

EDIT:
I decided to help you, but I altered a bit of your calculations
This buff lasts for 10 seconds and will heal either HP or MP for 3% per second
Dispels on attack
2 of the abilities can stack (HP + MP on same unit)
Bug: There will be 2-3 seconds delay before the effect to completely disappears, don't know why... but still, it's MUI of course :) (will look forward to fix this... if can)
Test map attached

EDIT 2:
I found the bug (and I think it cannot be fixed)
Because, I'm using the default ability of Fountain of Power (which heals units' HP and MP based on %)
The effect itself is delayed when you're out of the Area of Effect
The effect still lasts for 2-3 seconds
This phenomeneon can be seen if you play DotA Game, you teleport to building (but you still gets the regeneation, right?)

EDIT 3:
Yes !
I finally solved it :)
By not using Ability, but using simple Math function, that unit can gain HP/MP :)
 

Attachments

  • HP and MP Regen.w3x
    15.6 KB · Views: 42
Last edited:
Level 1
Joined
Jun 21, 2009
Messages
282
Well, why not put the ability to 7 second duration, and then the bug will have 3 more seconds to it which will be 10 seconds.

Why not that?

Yeah, the 2 item abilities work! Thanks!!
 
Last edited:
Level 33
Joined
Mar 27, 2008
Messages
8,035
Well, why not put the ability to 7 second duration, and then the bug will have 3 more seconds to it which will be 10 seconds.
Well, what if any enemy attacks that unit ?
I want to keep the "Dispel on Attack" as a true statement
If your unit has been hit, it takes about 2-3 seconds also to disappear the effect, that's not the way, right ?
Either way, it's done :)
 
Status
Not open for further replies.
Top