-
Rhazok Abyss Bringer
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Rhazok, Abyss Bringer
-
Actions
- Set VariableSet TempDamage = 350.00
- Set VariableSet TempAoe = 225.00
- -------- --------
- Set VariableSet TempCaster = (Triggering unit)
- Set VariableSet Temp_Loc = (Target point of ability being cast)
- -------- --------
- Special Effect - Create a special effect at Temp_Loc using Abilities\Weapons\Bolt\BoltImpact.mdl
- Set VariableSet Temp_SFX = (Last created special effect)
- Special Effect - Set Color of Temp_SFX to r: 155, g: 255, b: 155
- Special Effect - Set Scale of Temp_SFX to 2.50
- Special Effect - Destroy Temp_SFX
- -------- --------
- Set VariableSet Temp_Group = (Units within TempAoe of Temp_Loc.)
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is alive) Equal to True
- ((Picked unit) belongs to an enemy of (Owner of TempCaster).) Equal to True
- ((Picked unit) is A structure) Equal to False
- ((Picked unit) is Magic Immune) Equal to False
- ((Picked unit) is Mechanical) Equal to False
- Then - Actions
-
Else - Actions
- Unit Group - Remove (Picked unit) from Temp_Group.
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
- Set VariableSet TempTarget = (Picked unit)
- Set VariableSet Temp_Loc2 = (Position of TempTarget)
- Unit - Cause TempCaster to damage TempTarget, dealing TempDamage damage of attack type Spells and damage type Magic
- -------- --------
- Trigger - Run Rhazok Lightning <gen> (ignoring conditions)
-
Loop - Actions
- -------- --------
- Custom script: call RemoveLocation (udg_Temp_Loc)
- Custom script: call RemoveLocation (udg_Temp_Loc2)
- Custom script: call DestroyGroup (udg_Temp_Group)
-
Events
-
Rhazok Lightning
- Events
- Conditions
-
Actions
- Custom script: local lightning udg_Temp_Lightning
- Custom script: set udg_Temp_Lightning = AddLightningEx("CLBP", true , GetLocationX(udg_Temp_Loc), GetLocationY(udg_Temp_Loc), GetLocationZ(udg_Temp_Loc) + 70, GetLocationX(udg_Temp_Loc2), GetLocationY(udg_Temp_Loc2), GetLocationZ(udg_Temp_Loc2) + 70)
- Wait 0.25 seconds
- Lightning - Destroy Temp_Lightning
- Custom script: set udg_Temp_Lightning = null
I tried to debug this for some time now == I removed the location clean ups, to see if the lightning ran too slow to actually create the effect before the locations are removed.
Originially the lightning triggers were on the initial trigger, but it didn't work either.
Funny that I have spell that I got help from here, with the exact same lightning trigger (different variables) that works.