HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Slow Loss of Health

06-01-2006, 10:13 PM#1
ViciousBunny
How would I make it so the units I choose, not all of a units, slowly loose .4 HP per second?
06-01-2006, 10:20 PM#2
Captain Griffen
Could you be more specific please? 'units you chose'?
06-03-2006, 03:44 PM#3
ViciousBunny
sure no problem, I made custom units like a man, woman, child, soldier(militia) and other units like that but not all the units I made. Do you think there is an ability I could put on them for that?
06-03-2006, 03:53 PM#4
harshateja
Unholy aura with - life gain and 0 AoE

Self-Affecting Immolation (I think Pheonix Fire will work but dunno)

Trigger the life loss in.
06-03-2006, 04:37 PM#5
Panto
If they're always supposed to lose life, you can give them a negative life regeneration in the object editor (like the Bloodmage's Phoenix).

If they're not supposed to always lose life, you can add a negative "Item Life Regeneration" ability to them via trigger when it's appropriate for them to start dying.
06-04-2006, 12:17 AM#6
ViciousBunny
Wow really? it is that simple, I tried pheonix fire.... but then thay were walking around on fire! thank you i'll send ya rep.
06-04-2006, 12:32 AM#7
ViciousBunny
Well, I went and tried everything I could think of and guess what.... none of it works. I thought that -HP regen would work, but I can get that on any other unit and I cant change it on the pheonix or it will go back to 0. It is really wierd, I cant seem to get it to drain all the time because if I do unholy frenzy it's only when activate, I'm really stumped.
06-04-2006, 01:11 AM#8
PipeDream
The process:
1. Copy/Paste the Item Life Regeneration ability. Name it Life Drain
2. In the new custom ability, shift click on the regeneration field and set it to the appropriate negative value
3.
Collapse JASS:
    call UnitAddAbility(u,'A000')
with the life drain ID instead of 'A000'
or if you're a GUI guy:
Trigger:
Unit - Add Life Drain to (whichever unit)
06-04-2006, 07:43 AM#9
Panto
The same with simply changing the unit to have a negative health regeneration. In order to insert values outside what's normally accepted, you must hold down shift as you open the field.