• 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] Changing Units Life

Status
Not open for further replies.
Level 4
Joined
Feb 17, 2007
Messages
121
Hey i need a little help on a trigger where a hero casts a ability like bladestorm (storm) and it will be only for 2 seconds .. I need help like in the middle of that how do you make the heros life damage to half of what it has
so like..

1200/2000 HP
half of that
not like 1200/2000 again like that ::Action::
Unit - Set life of (Casting unit) to 50.00

i want something like half of 1200 to like 600/2000 HP
something like that...

heres the trigger

Storm
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Storm --(bladestorm)--
Actions
Wait 1.00 seconds
Unit - Set life of (Casting unit) to 0.00 ---Help me fix this part--
Wait 2.00 seconds
Unit - Pause (Casting unit) --Pause to make the unit stop ability--
Unit - Unpause (Casting unit) --Allows unit to play again--



**Thanks for helping if it works i give you rep!**
 
Level 4
Joined
Feb 17, 2007
Messages
121
I somehow cant get his part..
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) / 2.00)
where the / 2.00) comes in

this what i got
Unit - Set life of (Triggering unit) to (Life of (Triggering unit))
 
Status
Not open for further replies.
Top