T
TerrorBlade2
Guest
I need to make a back stab that is based on agilty and a back slash that cuts health down to 50% of the target's current health.
Thanks
Thanks
ShaiTan-Enk said:Unless I'm really far off, setting unit life to 50% will set it to exactly 50% of normal. What you would want would be set unit life to (current unit life x .5)
Event
*A unit is targeted by a spell
Conditions
*Ability being cast is equal to Backslash
Action
*set backstabdmg to ((agil of triggering unit) * .05)
*Unit - Set life of (Targeted Unit) to (targeted players life - backstabdmg (variable)
TerrorBlade2 said:I can't find 'unit is targeted by spell
doesnt the variable need to be a real type for this to work?Senkin said:Code:Event *A unit is targeted by a spell Conditions *Ability being cast is equal to Backslash Action *set backstabdmg to ((agil of triggering unit) * .05) *Unit - Set life of (Targeted Unit) to (targeted players life - backstabdmg (variable)
Also you do need to make the variable backstabdmg (it is a simple ol integer variable)
otherwise that is a quicky I made from one of the other posts and a lil change done to it.
That should work just ask me if ne thing goes wrong.
*Unit - Set life of (Targeted Unit) to (targeted players life - backstabdmg (variable)