• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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