Knights
You can change this now in User CP.
- Reaction score
- 71
I made this trigger for a charge spell, it's supposed to stop the caster when he gets to the target, but it doesn't stop him, nor does it do damage.
So, the problem must be in this line:
It must be calling that false all 32 times, but I see no problems with it..
If anyone can spot it, that would be great =)
Knights
Code:
Charge
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Charge (Defender)
Actions
Wait 0.10 seconds
Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by 25.00 towards (Facing of (Triggering unit)) degrees)
For each (Integer A) from 1 to 32, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Region centered at (Position of (Target unit of ability being cast)) with size (100.00, 100.00)) contains (Triggering unit)) Equal to True
Then - Actions
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - ((Real((Strength of (Triggering unit) (Include bonuses)))) x 5.00))
Skip remaining actions
Else - Actions
Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by 25.00 towards (Facing of (Triggering unit)) degrees)
So, the problem must be in this line:
Code:
If - Conditions
((Region centered at (Position of (Target unit of ability being cast)) with size (100.00, 100.00)) contains (Triggering unit)) Equal to True
If anyone can spot it, that would be great =)
Knights