• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Doom Spell that does % of Life

Status
Not open for further replies.
Level 6
Joined
Jun 8, 2008
Messages
256
Hi again.

I'm still working on my map, and I'm in need of some help.

I want to have a unit that casts Doom which does 10% of the targets HP every second, for 8 seconds.

It's not so important that it does 10% every second, but I do not want it to do 80% damage in one strike. However, 40% would be ok, if it didn't occur in 2 seconds. I want the duration to be at least 6 seconds.


Any help appreciated :)
 
Level 6
Joined
Jun 8, 2008
Messages
256
That'll deal 10 damage or 10% of the units HP?
Don't have access to editor right now, so can't check :p
 
Level 3
Joined
Sep 25, 2008
Messages
39
That'll be 10 damage.
You need 0.10 x GetUnitMaxLife(picked unit) to get a percentage.
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
There are 2 commands to damage life: Property (which is life itself) and Percentage of a Real (Where the Real is the Property in the previous option). Just damage the unit with 10% of TargetUnit's (max/current) life every x seconds.
 
Level 6
Joined
Jun 8, 2008
Messages
256
All very confusing :p I'll probably understand it when I open the editor.

Thanks for the help both of you! :)
 
Status
Not open for further replies.
Top