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
Death Grip MUI GUI.w3x
Variables
Not Needed
Vision
Revive
Message
Needed
---------------------------
Init
Start
Loop
Stop
Read Me>>>
To edit special effects
To edit damage\distance
---------------------------
Knockback
KnockbackTarget
KnockbackUnits
Name
Type
is_array
initial_value
Angle
real
No
Caster
unit
No
Distance
real
No
Hashtable
hashtable
No
Position
location
No
Position2
location
No
RemainingTime
real
No
UnitGroup
group
No
Vision
Events
Map initialization
Conditions
Actions
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Entire map)
Revive
Events
Unit - A unit Dies
Conditions
Actions
Unit - Replace (Dying unit) with a (Unit-type of (Dying unit)) using The new unit's max life and mana
Message
Events
Time - Elapsed game time is 0.03 seconds
Conditions
Actions
Game - Display to (All players) for 8.00 seconds the text: Spell by xXSoraXxDeath GripEnjoy =] The units will respawn in the place they die instantly.
Init
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Set Variable Set Hashtable = (Last created hashtable)
Start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Death Grip
Actions
Set Variable Set Position = (Position of (Triggering unit))
Set Variable Set Position2 = (Position of (Target unit of ability being cast))
Set Variable Set Angle = ((Angle from Position to Position2) + 180.00)
Set Variable Set Distance = "10.00"
Set Variable Set RemainingTime = ((Distance between Position and Position2) - 100.00)
Set Variable Set Caster = (Triggering unit)
Hashtable - Save Handle Of (Target unit of ability being cast) as (Key target.) of (Key (Triggering unit).) in Hashtable .
Hashtable - Save Distance as (Key distance.) of (Key (Target unit of ability being cast).) in Hashtable .
Hashtable - Save RemainingTime as (Key time.) of (Key (Target unit of ability being cast).) in Hashtable .
Hashtable - Save Angle as (Key angle.) of (Key (Target unit of ability being cast).) in Hashtable .
Hashtable - Save Handle Of Caster as (Key caster.) of (Key (Target unit of ability being cast).) in Hashtable .
Unit Group - Add (Target unit of ability being cast) to UnitGroup
Unit - Turn collision for (Target unit of ability being cast) Off .
Custom script: call RemoveLocation(udg_Position)
Custom script: call RemoveLocation(udg_Position2)
Trigger - Turn on Loop <gen>
Loop
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in UnitGroup) Greater than 0
Then - Actions
Unit Group - Pick every unit in UnitGroup and do (Actions)
Loop - Actions
Set Variable Set Distance = (Load (Key distance.) of (Key (Picked unit).) from Hashtable.)
Set Variable Set Angle = (Load (Key angle.) of (Key (Picked unit).) from Hashtable.)
Set Variable Set RemainingTime = (Load (Key time.) of (Key (Picked unit).) from Hashtable.)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RemainingTime Greater than 0.00
Then - Actions
Set Variable Set Position = (Position of (Picked unit))
Set Variable Set Position2 = (Position offset by (Load (Key distance.) of (Key (Picked unit).) from Hashtable.) towards (Load (Key angle.) of (Key (Picked unit).) from Hashtable.) degrees.)
Unit - Move (Picked unit) instantly to Position2
Hashtable - Save (RemainingTime - 10.00) as (Key time.) of (Key (Picked unit).) in Hashtable .
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Picked unit) using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Position)
Custom script: call RemoveLocation(udg_Position2)
Else - Actions
Unit - Turn collision for (Picked unit) On .
Unit - Pause (Load (Key caster.) of (Key (Picked unit).) in Hashtable.)
Unit - Unpause (Load (Key caster.) of (Key (Picked unit).) in Hashtable.)
Hashtable - Clear all child hashtables of child (Key (Picked unit).) in Hashtable .
Unit Group - Remove (Picked unit) from UnitGroup .
Else - Actions
Trigger - Turn off (This trigger)
Stop
Events
Unit - A unit Stops casting an ability
Conditions
Actions
Unit Group - Pick every unit in UnitGroup and do (Actions)
Loop - Actions
Unit Group - Remove (Load (Key target.) of (Key (Triggering unit).) in Hashtable.) from UnitGroup .
Copy the abilities and buffs first; then add in variables appropriate to the ones i have then;
To edit the buff that initiates when the spell is initiated go to the buff "Death Grip" and edit the target effect.
To edit the death and decay special effect see the trigger "Loop" look for the special effect; and simply change it=]
The damage is done based on the spell Aerial Shackles.
The damage ticks every second the spell is active;
The further the distance the target is dragged, the more damage it does.
To edit the damage, simply go to the spell under the "Data - Damage Per Second"
and adjust the damage to you're prefference, you may need to increase the duration of the spell if you plan on making a really long cast range, as it stops pulling the unit when the spell is done being cast; or is interupted.
KnockbackTarget
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Death Grip
Actions
-------- Just for configuration/readability --------
Set Variable Set KnockbackAngle = (Angle from (Position of (Triggering unit)) to (Position of (Target unit of ability being cast)))
-------- Distance unit is knocked back per second --------
-------- .04 is how often the units are moved, so we multiply the distance by .04 --------
Set Variable Set KnockbackDistance = (400.00 x 0.04)
-------- How long the unit is knocked back for --------
Set Variable Set RemainingTime = "2.00"
-------- Store the values --------
Hashtable - Save KnockbackDistance as (Key distance.) of (Key (Target unit of ability being cast).) in knockbackTable .
Hashtable - Save KnockbackAngle as (Key angle.) of (Key (Target unit of ability being cast).) in knockbackTable .
Hashtable - Save RemainingTime as (Key time.) of (Key (Target unit of ability being cast).) in knockbackTable .
Unit Group - Add (Target unit of ability being cast) to KnockbackUnits
KnockbackUnits
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in KnockbackUnits and do (Actions)
Loop - Actions
-------- Load all necessary variables stored in the Hashtable --------
Set Variable Set KnockbackDistance = (Load (Key distance.) of (Key (Picked unit).) from knockbackTable.)
Set Variable Set KnockbackAngle = (Load (Key angle.) of (Key (Picked unit).) from knockbackTable.)
Set Variable Set RemainingTime = (Load (Key time.) of (Key (Picked unit).) from knockbackTable.)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RemainingTime Greater than 0.00
Then - Actions
-------- Move the unit and update time remaining --------
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by KnockbackDistance towards KnockbackAngle degrees.)
Hashtable - Save (RemainingTime - 0.04) as (Key time.) of (Key (Picked unit).) in knockbackTable .
Else - Actions
-------- Knockback is done, clean up --------
Hashtable - Clear all child hashtables of child (Key (Picked unit).) in knockbackTable .
Unit Group - Remove (Picked unit) from KnockbackUnits .
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.