Hi, I'm really struggling with this. I've tried quite a few ways of doing it and I'm sure that this is one of the best ways that I can accomplish (I don't know jass) but I can't for the life of me understand what is going wrong. Here is the trigger:
From what I understand the trigger works, but the issue has to do with the point "GuardTempPoint" as when I print the numbers it goes 1,2,3,4 as intended but only the first special effect and damage instances appear.
Anyone know the issue?
-
FrozenMaw Copy
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Frozen Maw (Guardian)
-
-
Actions
-
Custom script: local integer i
-
Custom script: local location l = GetSpellTargetLoc()
-
-------- ------- --------
-
-------- Loop number under 8192 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
GuardIntA Equal to 8192
-
-
Then - Actions
-
Set VariableSet GuardIntA = 0
-
-
Else - Actions
-
Set VariableSet GuardIntA = (GuardIntA + 1)
-
-
-
-------- ------- --------
-
-------- Set local variable to match number loop below 8192 --------
-
-------- Set second integer to be said number --------
-
Custom script: set i = udg_GuardIntA
-
Custom script: set udg_GuardIntB = i
-
-------- ------- --------
-
For each (Integer GuardIntCArray[GuardIntB]) from 1 to 4, do (Actions)
-
Loop - Actions
-
Game - Display to (All players) the text: (String(GuardIntCArray[GuardIntB]))
-
Wait 0.14 seconds
-
Custom script: set udg_GuardTempPoint = l
-
Custom script: set l = null
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 225.00 of GuardTempPoint.) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is A structure) Equal to False
-
((Picked unit) is Magic Immune) Equal to False
-
-
Then - Actions
-
Unit - Cause (Triggering unit) to damage (Picked unit), dealing (15.00 + (7.50 x (Real((Level of Frozen Maw (Guardian) for (Triggering unit)))))) damage of attack type Spells and damage type Normal
-
-
Else - Actions
-
-
-
-
Custom script: set udg_GuardIntB = i
-
Special Effect - Create a special effect at GuardTempPoint using war3mapImported\Ephemeral Slash Midnight.mdx
-
Set VariableSet GuardTempSE = (Last created special effect)
-
Special Effect - Destroy GuardTempSE
-
Custom script: set l = udg_GuardTempPoint
-
Custom script: call RemoveLocation(udg_GuardTempPoint)
-
-
-
-------- ------- --------
-
Custom script: set l = null
-
-------- ------- --------
-
-
From what I understand the trigger works, but the issue has to do with the point "GuardTempPoint" as when I print the numbers it goes 1,2,3,4 as intended but only the first special effect and damage instances appear.
Anyone know the issue?