Stupify
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Stupify
Actions
Wait 0.50 seconds
Set StupifyTarget = (Position of (Target unit of ability being cast))
Special Effect - Create a special effect at StupifyTarget using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
Special Effect - Create a special effect at StupifyTarget using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Stupify for (Casting unit)) Equal to 1
Then - Actions
Hero - Modify Intelligence of (Targeted unit): Subtract 1
Else - Actions
Hero - Modify Intelligence of (Targeted unit): Subtract (Random integer number between 1 and 2)
Also, the wait sux, the Begins Casting instead of Stats the Effect sux, the 2 leaking SFX sux, the leaking location sux, and the Casting Unit instead of Triggering Unit sux. fix those, and youll be good to go.
PurplePootAlso, the wait sux, the Begins Casting instead of Stats the Effect sux, the 2 leaking SFX sux, the leaking location sux, and the Casting Unit instead of Triggering Unit sux. fix those, and youll be good to go.
Okay, I tried to make it better and make myself not look like an idiot.
Stupify
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Stupify
Actions
Set StupifyTarget = (Position of (Target unit of ability being cast))
Special Effect - Create a special effect at StupifyTarget using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
Set StupifyEffect[1] = (Last created special effect)
Special Effect - Create a special effect at StupifyTarget using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Set StupifyEffect[2] = (Last created special effect)
Custom script: call RemoveLocation( udg_StupifyTarget )
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Stupify for (Triggering unit)) Equal to 1
Then - Actions
Hero - Modify Intelligence of (Target unit of ability being cast): Subtract 1
Else - Actions
Hero - Modify Intelligence of (Target unit of ability being cast): Subtract (Random integer number between 1 and 2)
Wait 2.00 seconds
For each (Integer A) from 1 to 2, do (Actions)
Loop - Actions
Special Effect - Destroy StupifyEffect[(Integer A)]