I've created item, that increases max unit hp by 100. But here is one problem. If unit take off item, it won't lost hp, but is it pick it again it will gain additional hp. So currently is possible to fast healing units by picking and taking off items. How to workaround it(for example make only max hp bigger, but not cuurrent hp)?
make the item apply a buff, and the on removal remove that buff. it should lower the hp again.
I'll do some testing in a map to see if I can duplicate your problem.
I made it via equip behaviors(buff, vital fraction(max)), so behavior is removed when item is droped, but current hp are not changed(only max -100), and when i'm picking it again unit getting +100 current hp and +100 maximum.
I am trying to create a fix for this. Here is the trigger I have created: http://i.imgur.com/VEkEr.jpg It works for the most part, except I have been unable to prevent it from killing the hero if it has less health than should be removed no matter what conditions I have tried. Anyone have any ideas?
This has one other problem I found. It will remove too much health if the hp missing is less than what is to be removed. Should be fixable w/ conditions as well once we figure out how to place limits on the first part.
I've created item, that increases max unit hp by 100. But here is one problem. If unit take off item, it won't lost hp, but is it pick it again it will gain additional hp. So currently is possible to fast healing units by picking and taking off items. How to workaround it(for example make only max hp bigger, but not cuurrent hp)?
@ShadowDancer93: Go
make the item apply a buff, and the on removal remove that buff. it should lower the hp again.
I'll do some testing in a map to see if I can duplicate your problem.
ok I did not succeed in reproducing your problem....
for me dropping decreases the health, and picking up increases it again.
I made it via equip behaviors(buff, vital fraction(max)), so behavior is removed when item is droped, but current hp are not changed(only max -100), and when i'm picking it again unit getting +100 current hp and +100 maximum.
Maybe explain how u did it?
@ShadowDancer93: Go
ahhhh, then adjust the buff to give -100 current, and 100 max.
I thought you said that the max hp wasn't decreased. didn't think of the current hp at all XD
or add an effect to it that does damage when the unit loses the buff (so 100 dmg)
although if the unit has full hp this might not work as wanted.
@Helral: Go
the way I added that -100 current on equip: create a new damage effect, set the dmg amount to 100, apply the effect on the init of the buff.
Uh, I've back to work on map, and topic still is on.
Helral: Your method has 2 problems:
1. If I want stack behaviors it fails
2. If unit have less hp than item givest equipping item will kill unit.
@ShadowDancer93: Go
I am trying to create a fix for this. Here is the trigger I have created: http://i.imgur.com/VEkEr.jpg It works for the most part, except I have been unable to prevent it from killing the hero if it has less health than should be removed no matter what conditions I have tried. Anyone have any ideas?
This has one other problem I found. It will remove too much health if the hp missing is less than what is to be removed. Should be fixable w/ conditions as well once we figure out how to place limits on the first part.
lothar9999: thank for help, you solved my problem.
Btw: Try this