Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Another spell made by me,
It might be simple enough but some people might find it useful.
[trigger=Flick INIT]
Flick INIT
Events
Map initialization
Conditions
Actions
-------- //////////////////////// --------
-------- familiarizes the ability --------
-------- //////////////////////// --------
Set Flck_Ability = Flick
-------- //////////////////////// --------
-------- distance of capturing units --------
-------- //////////////////////// --------
Set Flck_CaptureDistance = 100.00
-------- //////////////////////// --------
-------- capturing radius --------
-------- //////////////////////// --------
Set Flck_CaptureRadius = 100.00
-------- //////////////////////// --------
-------- special effect: WARP IN: CASTER/VICTIM --------
-------- //////////////////////// --------
Set Flck_SpecialEffectWarpInCaster = Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
-------- //////////////////////// --------
-------- special effect: WARP OUT: CASTER/VICTIM --------
-------- //////////////////////// --------
Set Flck_SpecialEffectWarpOutCast = Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
[/trigger]
[trigger=Flick]
Flick
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Flck_Ability
Actions
-------- //////////////////////// --------
-------- sets the caster --------
-------- //////////////////////// --------
Set Flck_Caster = (Triggering unit)
-------- //////////////////////// --------
-------- position of the caster --------
-------- //////////////////////// --------
Set Flck_CasterPoint = (Position of Flck_Caster)
-------- //////////////////////// --------
-------- gets the facing point --------
-------- //////////////////////// --------
Set Flck_Facing = (Facing of Flck_Caster)
-------- //////////////////////// --------
-------- picks one unit at in front of caster --------
-------- //////////////////////// --------
Set Flck_Temppoint = (Flck_CasterPoint offset by Flck_CaptureDistance towards Flck_Facing degrees)
Set Flck_Tempgroup = (Units within Flck_CaptureRadius of Flck_Temppoint matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((Matching unit) Not equal to Flck_Caster))))
Set Flck_Victim = (Random unit from Flck_Tempgroup)
-------- //////////////////////// --------
-------- gets where the desired target is putted --------
-------- //////////////////////// --------
Set Flck_TargetPoint = (Target point of ability being cast)
-------- //////////////////////// --------
-------- //////////////////////// --------
Special Effect - Create a special effect at Flck_CasterPoint using Flck_SpecialEffectWarpInCaster
Special Effect - Destroy (Last created special effect)
-------- //////////////////////// --------
Unit - Move Flck_Caster instantly to Flck_TargetPoint
-------- //////////////////////// --------
Special Effect - Create a special effect at Flck_TargetPoint using Flck_SpecialEffectWarpOutCast
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Flck_Victim Not equal to No unit
Then - Actions
-------- //////////////////////// --------
Set Flck_Tempangle = (Angle from Flck_CasterPoint to Flck_TargetPoint)
-------- //////////////////////// --------
Set Flck_Temppoint2 = (Flck_TargetPoint offset by Flck_CaptureDistance towards Flck_Tempangle degrees)
-------- //////////////////////// --------
Set Flck_Temppoint3 = (Position of Flck_Victim)
-------- //////////////////////// --------
Special Effect - Create a special effect at Flck_Temppoint3 using Flck_SpecialEffectWarpInCaster
Special Effect - Destroy (Last created special effect)
-------- //////////////////////// --------
Unit - Move Flck_Victim instantly to Flck_Temppoint2
-------- //////////////////////// --------
Special Effect - Create a special effect at Flck_Temppoint2 using Flck_SpecialEffectWarpInCaster
Special Effect - Destroy (Last created special effect)
Else - Actions
-------- //////////////////////// --------
-------- CLEANING --------
-------- //////////////////////// --------
Custom script: call RemoveLocation(udg_Flck_CasterPoint)
Custom script: call RemoveLocation(udg_Flck_Temppoint)
Custom script: call DestroyGroup(udg_Flck_Tempgroup)
Custom script: call RemoveLocation(udg_Flck_TargetPoint)
Custom script: call RemoveLocation(udg_Flck_Temppoint2)
Custom script: call RemoveLocation(udg_Flck_Temppoint3)
[/trigger]
Flick 1.0 | Reviewed by Maker | 26th May 2013
APPROVED
The spell is leakless is MUI and has fitting effects
[tr]
Get rid of the unndeeded hashtable
Some of the actions are the same in THEN and ELSE, take
them out of...
look good only thing i suggest changing is the Flick_TempPoint and Flick_TempGroup.
u can make these tempPoint1 / 2 / 3 / 4 and a tempGroup. that way it wont add more variables for ppl that already use those variables.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.