Advena
Just casually observing atm ;)
- Reaction score
- 42
Hey everyone, a quick question for those who play around with Real variables a lot.
I have an ability that's supposed to insta-kill all units below blablabla % of their max hp. The ability have 10 levels.
The bold numbers in the ability triggercode below are supposed to mean 5% (of picked unit's life). I have no good way of testing it atm so I thought I could ask if anyone can say right away that it looks good or bad.
If there's anything else you wanna know or if you got any ideas to imporve the trigger, post away
Cheers guys
I have an ability that's supposed to insta-kill all units below blablabla % of their max hp. The ability have 10 levels.
The bold numbers in the ability triggercode below are supposed to mean 5% (of picked unit's life). I have no good way of testing it atm so I thought I could ask if anyone can say right away that it looks good or bad.
Code:
Cold Night
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Cold Night (Spellcasting Frost Px25)
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Percentage life of (Picked unit)) Less than or equal to ((Real((Level of (Ability being cast) for (Casting unit)))) x 0.05))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to False
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Do nothing
If there's anything else you wanna know or if you got any ideas to imporve the trigger, post away
Cheers guys