• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Flick 1.1

Another spell made by me,
It might be simple enough but some people might find it useful.:D


[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]


Keywords:
Blink,Flick,Teleport,dark,sparrow
Contents

Flick (Map)

Reviews
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...

Moderator

M

Moderator


Flick 1.0 | Reviewed by Maker | 26th May 2013
APPROVED


126248-albums6177-picture66521.png


  • The spell is leakless is MUI and has fitting effects
126248-albums6177-picture66523.png


  • Get rid of the unndeeded hashtable
  • Some of the actions are the same in THEN and ELSE, take
    them out of the if/then/else
[tr]
 
Top