MorbazanRhot
New Member
- Reaction score
- 7
Alright, my question is pretty simple (I hope). I have an item that when consumed gives the user +50 hp regen per second but after 20 seconds the regen is removed and the user takes 1000 damage. I just use item health regen and made it a unit ability and give it to the user. The problem is that the only way I can think of for the trigger to remember the user is with a variable, but if a new unit uses the item before the old one expires, the old one would never lose the buff or take the damage. I figure there's some way I can do this using arrays, but I can't put my finger on it. So what I want to know is how you would make something like this multi-instanceable, ie that many different heroes (or even the same hero multiple times) could use the item and get the buff and still have it be removed and deal damage properly. If the solution involves triggering the healing in place of making it a unit ability given to the hero that is fine with me too, just whatever will make it work. Thanks in advance and as always +rep to anyone that can help.
Anyone? I believe it's got to be possible because I think something similar must be done with potions in The Black Road given that they give health regeneration over time. Maybe something involving a countdown timer? I really have no idea, I keep going over it and getting nothing which is why I'm looking for help, please.
Anyone? I believe it's got to be possible because I think something similar must be done with potions in The Black Road given that they give health regeneration over time. Maybe something involving a countdown timer? I really have no idea, I keep going over it and getting nothing which is why I'm looking for help, please.