- Joined
- Feb 22, 2025
- Messages
- 315
-
DR INI
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Hour of Death
-
-

Actions
-


Set VariableSet DR_Caster = (Triggering unit)
-


Special Effect - Create a special effect attached to the chest of DR_Caster using Abilities\Weapons\AvengerMissile\AvengerMissile.mdl
-


Set VariableSet HOD_effect = (Last created special effect)
-


Set VariableSet DR_Target = (Target unit of ability being cast)
-


Set VariableSet DR_Point = (Position of DR_Target)
-


If ((Level of Hour of Death for DR_Caster) Equal to 1) then do (Set VariableSet Loops_DR = 6) else do (Do nothing)
-


Animation - Change DR_Caster's vertex coloring to (10.00%, 10.00%, 10.00%) with 10.00% transparency
-


Selection - Remove DR_Caster from selection
-


Unit - Make DR_Caster Invulnerable
-


Unit - Pause DR_Caster
-


Unit - Move DR_Caster instantly to (Position of DR_Target)
-


Special Effect - Create a special effect at (Position of DR_Caster) using WindWeak2.mdx
-


Special Effect - Destroy (Last created special effect)
-


Custom script: call RemoveLocation(udg_DR_Point)
-


Animation - Play DR_Caster's attack animation
-


Special Effect - Create a special effect attached to the chest of DR_Caster using BlackCloudOfFog.mdx
-


Set VariableSet LaserAttachment = (Last created special effect)
-


Sound - Play MalthaelBaseVoicelineOne00 <gen> at 100.00% volume, located at (Position of DR_Caster) with Z offset 0.00
-


Sound - Play MalthaelHourofDeath <gen> at 100.00% volume, located at (Position of DR_Caster) with Z offset 0.00
-


Sound - Play Wraith_Strike <gen> at 100.00% volume, located at (Position of DR_Caster) with Z offset 0.00
-


Unit - Cause DR_Caster to damage DR_Target, dealing 1000.00 damage of attack type Hero and damage type Normal
-


Trigger - Turn on DR SE <gen>
-


Trigger - Turn on DR SE 2 <gen>
-


For each (Integer A) from 1 to Loops_DR, do (Actions)
-



Loop - Actions
-




Wait 0.40 seconds
-




Set VariableSet DRC_Current_loc = (Position of DR_Caster)
-




Set VariableSet DREG[1] = (Units within 600.00 of DRC_Current_loc matching ((((((Matching unit) is A structure) Not equal to True) and (((Matching unit) is alive) Equal to True)) and (((Matching unit) belongs to an enemy of (Owner of DR_Caster).) Equal to True)) and (((((Matching unit
-




Set VariableSet DREG[2] = (Random 1 units from DREG[1])
-




Custom script: call RemoveLocation(udg_DRC_Current_loc)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Number of units in DREG[1]) Greater than 0
-
-





Then - Actions
-






Unit Group - Pick every unit in DREG[2] and do (Actions)
-







Loop - Actions
-








Set VariableSet DR_P = (Picked unit)
-








Set VariableSet DR_PL = (Position of DR_P)
-








Selection - Remove DR_Caster from selection
-








Unit - Move DR_Caster instantly to DR_PL
-








Custom script: call RemoveLocation(udg_DR_PL)
-








Animation - Play DR_Caster's attack animation
-








Sound - Play Wraith_Strike <gen> at 100.00% volume, located at (Position of DR_Caster) with Z offset 0.00
-








Sound - Play SoulSiphon1 <gen> at 100.00% volume, located at (Position of DR_Caster) with Z offset 0.00
-








Unit - Cause DR_Caster to damage DR_P, dealing (Random real number between 100.00 and 150.00) damage of attack type Normal and damage type Normal
-








Trigger - Turn on DR SE <gen>
-








Trigger - Turn on DR SE 2 <gen>
-
-
-






Custom script: call DestroyGroup(udg_DREG[1])
-






Custom script: call DestroyGroup(udg_DREG[2])
-
-





Else - Actions
-






Custom script: call DestroyGroup(udg_DREG[1])
-






Custom script: call DestroyGroup(udg_DREG[2])
-






Selection - Add DR_Caster to selection for (Owner of DR_Caster)
-






Special Effect - Destroy HOD_effect
-






Special Effect - Destroy LaserAttachment
-






Animation - Change DR_Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-






Unit - Make DR_Caster Vulnerable
-






Unit - Unpause DR_Caster
-
-
-
-
-


Selection - Add DR_Caster to selection for (Owner of DR_Caster)
-


Animation - Change DR_Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-


Special Effect - Destroy LaserAttachment
-


Special Effect - Destroy HOD_effect
-


Unit - Make DR_Caster Vulnerable
-


Unit - Unpause DR_Caster
-
-
Was working fine when I tested it weeks ago, but suddenly I was testing it again(using the ability ingame) and the loop with finding targets stops after one repetition where it should be 5 more. Double checked everything idk what's wrong.


