| 04-20-2007, 07:45 PM | #1 |
I want to make an hero ability that increase it's hp regeneration by a % of his regeneration. Let's say, after all buffs, item, etc, my hero regain 12HP each second. If he has the skill at level 1 he get a 25% bonus, making his regen goes to 15HP second, level 2, he get a 50% bonus, making it 18HP each second, etc. Right now, the only bonus I've found are static bonus, like Life regeneration aura (Neutral), that when the field Data-percentage is at true, base the % on his max HP, so at 1% he goes from 0 to full in 100 seconds just like a fountain of health. I'm also out of luck finding a way to trigger it because I can find a unit current and max HP but not its regeneration rate. Any suggestion ? |
| 04-20-2007, 07:46 PM | #2 |
Unholy Aura? I forget if thats the name; Death Knight's aura does that I believe. |
| 04-20-2007, 08:39 PM | #3 |
Yep the unholy aura.However it also grants movement speed bonus so if you want it to improve only life regeneration remove the movement sped. |
| 04-20-2007, 10:29 PM | #4 |
I'm gonna try it again, but I think I've test unholy aura too. I'll try again. |
| 04-22-2007, 03:32 AM | #5 |
After extensive testing, even unholy aura has that behavior. I went from 300/1000 to full in about 3 seconds. Is there a way to know programaticly the regeneration rate of a unit ? Beside sampling it over one second. |
| 04-22-2007, 06:59 AM | #6 |
Thats probably because your using 15 for the field, intead of .15. If you do 15 its makking its regeration larger by about 150+ times. |
| 04-22-2007, 02:41 PM | #7 |
Nope, I was using 0.25 and even with 2500% regen it would have only regenerate about 26HP seconds not 250 |
| 04-22-2007, 03:08 PM | #8 |
Nah, you must be using the wrong ability. Unholy aura would do 250 off of 0.25 unless you had insane regen to start with. |
| 04-22-2007, 04:27 PM | #9 |
It's the base ability with modified value, so I'm sure it's Unholy Aura, the undead hero's ability. Could it be that Unholy Aura is % based by default and that Data - Pourcentage Bonus is to base the % on the max HP ? Because I was thinking that without Data - Pourcentage Bonus, the bonus was a set amount of HP. It's kinda hard for me to test because I don't know how to get the real regeneration rate, like you can get the max amount of HP and Mana. All I get is an estimate basef on how fast the hero goes from 1 to full, but even that the per second rate is not constant. I guess it change because of synchronisation. Again, thanks for the help :) |
| 04-22-2007, 04:36 PM | #10 |
Probably the case that percentage bonus uses max hp. The default for the ability is to base it on regen amount. |
| 04-22-2007, 06:05 PM | #11 |
I believe you can set regen rates in game constants if I recall correctly, that might help you work out your formulas. |
| 04-22-2007, 08:02 PM | #12 |
Yeah I got the formulas, I was just hoping I could find a way to make the engine tell me instead of having to make 100 condition depending on the item and buff an hero has. |
