- Joined
- Jun 16, 2008
- Messages
- 1,939
I wanted to make a spell for my Witch Doctor named Voodoo Flash. Should work like this:
u cast the spell (eg warthunder or hoof stomp)
all units within 800 range should be knockbacked from the position of the caster
here is my trigger:
the whole thing inside the seconds loop with special effect and move unit does not work.... it damages but nothing else
u cast the spell (eg warthunder or hoof stomp)
all units within 800 range should be knockbacked from the position of the caster
here is my trigger:
-
VoodooFlash
-
Events
- Unit - A unit starts the effect of an ability
-
Conditions
- (Ability being cast) equal to Voodoo Flash
-
Actions
- Set FlashCaster = (Triggering unit)
- Set FlashPoint = (Position of FlashCaster)
- Set FlashGroup = (Units within 800.00 of FlashPoint matching (((Owner of (Matching unit)) is an enemy of (Owner of FlashCaster)) equal to True))
-
Unitgroup - Pick every unit in FlashGroup and do (Actions)
-
Loop - Actions
- Set FlashTarget = (Picked unit)
- Unit - Cause FlashCaster to damage FlashTarget, dealing ((Real((Level of Voodoo Flash for FlashCaster))) x 75.00) damage of attack type Spells and damage type God
-
For each (Integer A) from 1 to 50, do (Actions)
-
Loop - Actions
- Set FlashPoint02 = (Position of FlashTarget)
- Set FlashPoint03 = (FlashPoint02 offset by 2.00 towards (Angle from FlashPoint to FlashPoint02) degrees)
-
Unit - Turn collision for FlashTarget Off
- Specialeffect - Create a special effect attached to the origin of FlashTarget using Abilities\Spells\Undead\AntiMagicShell\AntiMagicShell.mdl
- Specialeffect - Destroy (Last created special effect)
- Unit - Move FlashTarget instantly to FlashPoint03
- Custom script: call PolledWait( 0.03 )
- Custom script: call RemoveLocation(udg_FlashPoint02)
- Custom script: call RemoveLocation(udg_FlashPoint03)
-
Loop - Actions
- Custom script: set udg_FlashTarget = null
-
Loop - Actions
- Custom script: call DestroyGroup(udg_FlashGroup)
- Custom script: call RemoveLocation(udg_FlashPoint)
- Custom script: set udg_FlashCaster = null
-
Events
the whole thing inside the seconds loop with special effect and move unit does not work.... it damages but nothing else