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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Naga Hook.w3x
Variables
Hook Spell
Read This First
Cast nagahook
Hook deploy
Hook detonate
Map Triggers
This Map Only
Gain Level asd
Created entirely by bAsToIsE
Name
Type
is_array
initial_value
naga_hook_caster
unit
Yes
naga_hook_damage
real
Yes
naga_hook_distance
real
Yes
naga_hook_target
unit
Yes
naga_hook_unit
unit
Yes
nagahookwaittimer
timer
No
player_caster_number
integer
No
Before you even try to move this spell to your map do the following:
1. Go to the advanced option in the main editor screen.
2. Click on Gameplay Constants.
3. Check the 'Use Custom Gameplay Constants' button if you havent already.
4. Scroll down a little bit and locate the 'Follow Range Unit' Function.
Important!!!!________________Important!!!!____________Important!!!!_______
5. Change it to 25 or 35 (or the targeted unit will never be returned to the caster).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cast nagahook
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Naga Hook
Actions
Set Variable Set player_caster_number = (Player number of (Owner of (Casting unit)))
Set Variable Set naga_hook_caster[player_caster_number] = (Casting unit)
Set Variable Set naga_hook_target[player_caster_number] = (Target unit of ability being cast)
Set Variable Set naga_hook_distance[(Player number of (Owner of naga_hook_caster[player_caster_number]))] = (Distance between (Position of naga_hook_caster[player_caster_number]) and (Position of naga_hook_target[player_caster_number]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Naga Hook for naga_hook_caster[player_caster_number]) Equal to 1
Then - Actions
Set Variable Set naga_hook_damage[player_caster_number] = (naga_hook_distance[player_caster_number] x 0.20)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Naga Hook for naga_hook_caster[player_caster_number]) Equal to 2
Then - Actions
Set Variable Set naga_hook_damage[player_caster_number] = (naga_hook_distance[player_caster_number] x 0.30)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Naga Hook for naga_hook_caster[player_caster_number]) Equal to 3
Then - Actions
Set Variable Set naga_hook_damage[player_caster_number] = (naga_hook_distance[player_caster_number] x 0.40)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Naga Hook for naga_hook_caster[player_caster_number]) Equal to 4
Then - Actions
Set Variable Set naga_hook_damage[player_caster_number] = (naga_hook_distance[player_caster_number] x 0.50)
Else - Actions
Trigger - Turn on Hook_deploy <gen>
Countdown Timer - Start nagahookwaittimer as a One-shot timer that will expire in 0.15 seconds
Hook deploy
Events
Time - nagahookwaittimer expires
Conditions
Actions
Unit - Create 1 . naga_hook_unit for (Owner of naga_hook_caster[player_caster_number]) at ((Position of naga_hook_caster[player_caster_number]) offset by 50.00 towards (Angle from (Position of naga_hook_caster[player_caster_number]) to (Position of naga_hook_target[player_caster_number])) degrees.) facing (Angle from (Position of naga_hook_caster[player_caster_number]) to (Position of naga_hook_target[player_caster_number])) degrees
Set Variable Set naga_hook_unit[(Player number of (Owner of (Last created unit)))] = (Last created unit)
Unit - Order naga_hook_unit[player_caster_number] to Right-Click . naga_hook_target[player_caster_number]
Trigger - Add to Hook_detonate <gen> the event (A unit comes within 65.00 of naga_hook_unit[player_caster_number])
Trigger - Turn on Hook_detonate <gen>
Hook detonate
Events
Conditions
(Triggering unit) Equal to naga_hook_target[player_caster_number]
Actions
Unit - Remove naga_hook_unit[player_caster_number] from the game
Special Effect - Create a special effect at (Position of naga_hook_target[player_caster_number]) using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
Unit - Move naga_hook_target[player_caster_number] instantly to (Position of naga_hook_caster[player_caster_number])
Special Effect - Create a special effect at (Position of naga_hook_target[player_caster_number]) using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
Unit - Cause naga_hook_caster[player_caster_number] to damage naga_hook_target[player_caster_number] , dealing naga_hook_damage[player_caster_number] damage of attack type Spells and damage type Normal
Trigger - Turn off (This trigger)
This Map Only
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Game - Set the time of day to 6.00
Gain Level asd
Events
Player - Player 1 (Red) types a chat message containing asd (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red).) and do (Actions)
Loop - Actions
Hero - Create Tome of Power and give it to (Picked unit)
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.