DM Cross
You want to see a magic trick?
- Reaction score
- 567
I have a trigger for an ability called Bite. The trigger saves the target to a variable, pauses it, waits 6 seconds and unpauses it. That all works. Lately I wanted to add some special effects (blood spurts) to the ability, and this is how I thought it came up:
(The bold is all the Special Effect actions)
Why doesn't the blood spurt come up on the target?
Code:
BitePause
Events
Unit - A unit Begins channeling an ability
Conditions
((Unit-type of (Casting unit)) Equal to Alexander (Vampire Form)) or ((Unit-type of (Casting unit)) Equal to Alexander (Villager Form))
(Ability being cast) Equal to Bite (Alexander)
Actions
Set VAM_BiteTarget = (Target unit of ability being cast)
Unit - Pause VAM_BiteTarget
[B] Special Effect - Create a special effect attached to the chest of VAM_BiteTarget using Abilities\Weapons\Blood\BloodImpact.mdl
Set VAM_BiteBlood[0] = (Last created special effect)
Special Effect - Create a special effect attached to the head of VAM_BiteTarget using Abilities\Weapons\Blood\BloodImpact.mdl
Set VAM_BiteBlood[1] = (Last created special effect)[/B]
Wait 6.00 seconds
Unit - Unpause VAM_BiteTarget
Wait 15.00 seconds
[B] Special Effect - Destroy VAM_BiteBlood[0]
Special Effect - Destroy VAM_BiteBlood[1][/B]
(The bold is all the Special Effect actions)
Why doesn't the blood spurt come up on the target?


