- Joined
- Jan 12, 2010
- Messages
- 454
Hello,
I am trying to make a Starcraft-esk Stimpack ability based on Chemical Rage and using a trigger to "damage" the marine everytime he uses the Stimpack but I'm not quite sure how do go about it, since I want to do a precentage of his total health as damage instead of a set ammount.
Heres what I have so far:
So how could I damage his health by 10% everytime he uses the Stimpack? And to go with that how could I add a check to not use the ability if his health is below 10%?
And if you havent figured it out yes, I suck at triggering, and could not do it to save my life.
Any help would be greatly appreicated.
Regards,
Jake
(Btw - I posted this here instead of Triggers & Scripts because it said "Need help getting started with a trigger? If so, this is not the right place - please use the World Editor Help Zone.")
I am trying to make a Starcraft-esk Stimpack ability based on Chemical Rage and using a trigger to "damage" the marine everytime he uses the Stimpack but I'm not quite sure how do go about it, since I want to do a precentage of his total health as damage instead of a set ammount.
Heres what I have so far:
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Stimpack
-
Actions
- Unit - Set life of (Triggering unit) to 90.00%
So how could I damage his health by 10% everytime he uses the Stimpack? And to go with that how could I add a check to not use the ability if his health is below 10%?
And if you havent figured it out yes, I suck at triggering, and could not do it to save my life.
Any help would be greatly appreicated.
Regards,
Jake
(Btw - I posted this here instead of Triggers & Scripts because it said "Need help getting started with a trigger? If so, this is not the right place - please use the World Editor Help Zone.")