- Joined
- Apr 21, 2013
- Messages
- 1,194
Hey everyone,
I was working on a spell to help someone, it works fine with one hero but it fails when two caster use the spell within little time gaps.
it's a channeling spell; which the caster targets a point and waits for a few seconds and teleports to the point.
I tried to make it MUI but i failed Can anybody show what i'm doing wrong?
I posted the map too if anyone want to have changes on this one.
I was working on a spell to help someone, it works fine with one hero but it fails when two caster use the spell within little time gaps.
it's a channeling spell; which the caster targets a point and waits for a few seconds and teleports to the point.
-
SpellExecution
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
- (Ability being cast) Equal to Blink(channeling)
-
Actions
- Set castCount = (castCount + 1)
- Set blinkCaster[castCount] = (Triggering unit)
- Set targetLoc[castCount] = (Target point of ability being cast)
- Set firstPos[castCount] = (Position of blinkCaster[castCount])
- Trigger - Run Effects <gen> (checking conditions)
-
Events
-
Blink
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Blink(channeling)
-
Actions
- -------- Moving Unit --------
- Unit - Move blinkCaster[castCount] instantly to targetLoc[castCount]
- -------- The other special effect where it will appear in the taget location --------
- Special Effect - Create a special effect at targetLoc[castCount] using Abilities\Spells\Other\Drain\ManaDrainCaster.mdl
- Set specialEffecLastPos[castCount] = (Last created special effect)
- Wait 0.70 seconds
- Special Effect - Destroy specialEffecLastPos[castCount]
- Custom script: call RemoveLocation (udg_targetLoc[udg_castCount])
-
Events
-
Effects
- Events
- Conditions
-
Actions
- Animation - Play blinkCaster[castCount]'s victory animation
- Special Effect - Create a special effect at firstPos[castCount] using Abilities\Spells\Other\Drain\ManaDrainTarget.mdl
- Set specialEffectFirstPos[castCount] = (Last created special effect)
- Wait 2.00 seconds
- Special Effect - Destroy specialEffectFirstPos[castCount]
I tried to make it MUI but i failed Can anybody show what i'm doing wrong?
I posted the map too if anyone want to have changes on this one.