- Joined
- Aug 2, 2015
- Messages
- 69
Whats wrong with this triggering spell?
If its not clear what I want it to do: Trap unit inside a shell up in the air for few secs
Atm it does nothing, (Ive made sure enemy is actually casting this)
If its not clear what I want it to do: Trap unit inside a shell up in the air for few secs
-
[TRIGGER]
-
Encapsulate
-
Events
-
Unit - Sunblade Arch Mage 0177 <gen> Begins channeling an ability
-
-
Conditions
-
(Ability being cast) Equal to Encapsulate
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Target unit of ability being cast) is A ground unit) Equal to True
-
-
Then - Actions
-
Unit - Set Unit: (Target unit of ability being cast)'s Integer Field: Targeted as ('utar') to Value: 4
-
Wait 0.50 seconds
-
Animation - Change (Target unit of ability being cast) flying height to 233.00 at 45.00
-
-
Else - Actions
-
-
Set VariableSet Encapsulate = (Target unit of ability being cast)
-
Trigger - Turn on Encapsulate tick <gen>
-
Special Effect - Create a special effect attached to the body of Encapsulate using Abilities\Spells\Undead\AntiMagicShell\AntiMagicShell.mdl
-
Set VariableSet EncapsulateVFX = (Last created special effect)
-
Wait 5.00 seconds
-
Trigger - Turn off Encapsulate tick <gen>
-
Special Effect - Destroy EncapsulateVFX
-
Animation - Change (Target unit of ability being cast) flying height to 0.00 at 45.00
-
Wait 0.50 seconds
-
Unit - Set Unit: (Target unit of ability being cast)'s Integer Field: Targeted as ('utar') to Value: 2
-
Set VariableSet Encapsulate = No unit
-
-
Atm it does nothing, (Ive made sure enemy is actually casting this)