- Joined
- May 11, 2012
- Messages
- 2,108
Fixed it, works fine
-
Death Hand Init
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set DH_Damage[1] = 25.00
-
Set DH_Damage[2] = 35.00
-
Set DH_Damage[3] = 45.00
-
Set DH_Damage[4] = 55.00
-
Set DH_Damage[5] = 65.00
-
Custom script: call DestroyTrigger(GetTriggeringTrigger())
-
-
-
Death Hand
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Death Hand
-
-
Actions
-
Set DH_MaxIndex = (DH_MaxIndex + 1)
-
Set DH_TrigUnit[DH_MaxIndex] = (Triggering unit)
-
Set DH_TargetUnit[DH_MaxIndex] = (Target unit of ability being cast)
-
Set DH_SpellLvl[DH_MaxIndex] = (Level of Death Hand for DH_TrigUnit[DH_MaxIndex])
-
Set DH_DamageUnit[DH_MaxIndex] = DH_Damage[DH_SpellLvl[DH_MaxIndex]]
-
-------- ------------------------------------------------------------------------------------- --------
-
Set DH_Point = (Position of DH_TrigUnit[DH_MaxIndex])
-
Set DH_Point2 = (Position of DH_TargetUnit[DH_MaxIndex])
-
-------- ------------------------------------------------------------------------------------- --------
-
Unit - Turn collision for DH_TargetUnit[DH_MaxIndex] Off
-
Lightning - Create a Magic Leash lightning effect from source DH_Point to target DH_Point2
-
Lightning - Change color of DH_Lightning[DH_MaxIndex] to (67.00 12.00 49.00) with 1.00 alpha
-
Set DH_Lightning[DH_MaxIndex] = (Last created lightning effect)
-
-------- ------------------------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DH_MaxIndex Equal to 1
-
-
Then - Actions
-
Trigger - Turn on Death Hand Loop <gen>
-
-
Else - Actions
-
-
-------- ------------------------------------------------------------------------------------- --------
-
Custom script: call RemoveLocation(udg_DH_Point)
-
Custom script: call RemoveLocation(udg_DH_Point2)
-
Custom script: set udg_DH_Point = null
-
Custom script: set udg_DH_Point2 = null
-
-
-
Death Hand Loop
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer TempInt) from 1 to DH_MaxIndex, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Life of DH_TargetUnit[TempInt]) Less than or equal to 0.41
-
-
Then - Actions
-
Game - Display to (All players) the text: Health below 0.41
-
Lightning - Destroy DH_Lightning[TempInt]
-
-------- ------------------------------------------------------------------------------------- --------
-
Set DH_Point = (Position of DH_TargetUnit[TempInt])
-
Unit - Create 1 Dummy Caster for (Owner of DH_TrigUnit[TempInt]) at DH_Point facing Default building facing degrees
-
Set TempDummyUnit = (Last created unit)
-
Unit - Add a 0.50 second Generic expiration timer to TempDummyUnit
-
Unit - Add Dummy Death Hand to TempDummyUnit
-
Unit - Set level of Dummy Death Hand for TempDummyUnit to (Level of Death Hand for DH_TrigUnit[TempInt])
-
Unit - Order TempDummyUnit to Orc Tauren Chieftain - War Stomp
-
Special Effect - Create a special effect at DH_Point using war3mapImported\DarkNova.mdx
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_DH_Point)
-
-------- ------------------------------------------------------------------------------------- --------
-
Set DH_TrigUnit[TempInt] = DH_TrigUnit[DH_MaxIndex]
-
Set DH_TrigUnit[DH_MaxIndex] = No unit
-
Set DH_TargetUnit[TempInt] = DH_TargetUnit[DH_MaxIndex]
-
Set DH_TargetUnit[DH_MaxIndex] = No unit
-
Set DH_SpellLvl[TempInt] = DH_SpellLvl[DH_MaxIndex]
-
Set DH_DamageUnit[TempInt] = DH_DamageUnit[DH_MaxIndex]
-
Set DH_Lightning[TempInt] = DH_Lightning[DH_MaxIndex]
-
Set DH_MaxIndex = (DH_MaxIndex - 1)
-
Set TempInt = (TempInt - 1)
-
-------- ------------------------------------------------------------------------------------- --------
-
-
Else - Actions
-
-------- ------------------------------------------------------------------------------------- --------
-
Set DH_Point = (Position of DH_TrigUnit[TempInt])
-
Set DH_Point2 = (Position of DH_TargetUnit[TempInt])
-
Set DH_Angle = (Angle from DH_Point2 to DH_Point)
-
-------- ------------------------------------------------------------------------------------- --------
-
-------- ------------------------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between DH_Point and DH_Point2) Less than or equal to 75.00
-
-
Then - Actions
-
Game - Display to (All players) the text: Enemy came near
-
Lightning - Destroy DH_Lightning[TempInt]
-
-------- ------------------------------------------------------------------------------------- --------
-
Set DH_Point = (Position of DH_TargetUnit[TempInt])
-
Unit - Create 1 Dummy Caster for (Owner of DH_TrigUnit[TempInt]) at DH_Point facing Default building facing degrees
-
Set TempDummyUnit = (Last created unit)
-
Unit - Add a 0.50 second Generic expiration timer to TempDummyUnit
-
Unit - Add Dummy Death Hand to TempDummyUnit
-
Unit - Set level of Dummy Death Hand for TempDummyUnit to (Level of Death Hand for DH_TrigUnit[TempInt])
-
Unit - Order TempDummyUnit to Orc Tauren Chieftain - War Stomp
-
Special Effect - Create a special effect at DH_Point using war3mapImported\DarkNova.mdx
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_DH_Point)
-
-------- ------------------------------------------------------------------------------------- --------
-
Set DH_TrigUnit[TempInt] = DH_TrigUnit[DH_MaxIndex]
-
Set DH_TrigUnit[DH_MaxIndex] = No unit
-
Set DH_TargetUnit[TempInt] = DH_TargetUnit[DH_MaxIndex]
-
Set DH_TargetUnit[DH_MaxIndex] = No unit
-
Set DH_SpellLvl[TempInt] = DH_SpellLvl[DH_MaxIndex]
-
Set DH_DamageUnit[TempInt] = DH_DamageUnit[DH_MaxIndex]
-
Set DH_Lightning[TempInt] = DH_Lightning[DH_MaxIndex]
-
Set DH_MaxIndex = (DH_MaxIndex - 1)
-
Set TempInt = (TempInt - 1)
-
-
Else - Actions
-
-------- ------------------------------------------------------------------------------------- --------
-
Set DH_Point3 = (DH_Point2 offset by 3.00 towards DH_Angle degrees)
-
Unit - Move DH_TargetUnit[TempInt] instantly to DH_Point3, facing DH_Angle degrees
-
Unit - Cause DH_TrigUnit[TempInt] to damage DH_TargetUnit[TempInt], dealing ((Life of DH_TargetUnit[TempInt]) x DH_DamageUnit[TempInt]) damage of attack type Spells and damage type Normal
-
Lightning - Move DH_Lightning[TempInt] to source DH_Point and target DH_Point2
-
Custom script: call RemoveLocation(udg_DH_Point3)
-
-------- ------------------------------------------------------------------------------------- --------
-
-
-
-------- ------------------------------------------------------------------------------------- --------
-
Custom script: call RemoveLocation(udg_DH_Point)
-
Custom script: call RemoveLocation(udg_DH_Point2)
-
-------- ------------------------------------------------------------------------------------- --------
-
-
-
-
-
Custom script: set udg_DH_Point = null
-
Custom script: set udg_DH_Point2 = null
-
Custom script: set udg_DH_Point3 = null
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DH_MaxIndex Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
Last edited: