HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how to change a unit max hp ?

01-26-2004, 02:50 PM#1
chemo
how do i change a units hp to 150% instead of 100% so if it had 100 hp it would go 150 ?

its a spell for a Hero so plz dont tell me to make a dummy unit...

do any have a smart way to do this or am I stranded ?
01-26-2004, 02:57 PM#2
DoCa-Cola
There is a trigger for it somewhere.. something along the lines of

Set [Unit] Max HP XXX% Current Value

search around for it, I know there is one.
01-26-2004, 03:19 PM#3
The_Inquisitor3
Try to use "Unit - Add Ability manual of health... that way it will have more HP
01-26-2004, 03:23 PM#4
LegolasArcher
Thats absolutly brialant! I never thought of adding abilities like that using the add ability trigger. Thanks for the idea!
01-26-2004, 04:44 PM#5
Shark
make an ability of an item ability(khadgar's gem of health)
edit it the way you want, say 500 HP, and use the unit - add ability (500hp ability) to (the unit you need_variable)

or if it's an aura, check out the Custom Auras thread, and use same tactics as described...
01-26-2004, 05:49 PM#6
chemo
if u didnt see i needed the unit to gain #% extra in its MAX HP....

i know u can add ability's... and Its not an Aura..... its an ability that convert the unit for a short time..

dosnt any have an idea to this one ?
01-26-2004, 06:07 PM#7
Bulletcatcher
How about, instead of giving it 50% more hp, have it take 33% less damage? I believe basing an ability off berserk and leaving the attack at 100% while setting 'damage taken' to 0.66 would do this.
01-26-2004, 07:10 PM#8
chemo
hmm that sound good to my ears... thx ill go with that :D