How do i make this trigger work faster/ leakless?

CixxyZ

Active Member
Reaction score
7
Trigger:
  • Lylyanas Aegis Perioidic
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
      • BossLylyana Equal to True
    • Actions
      • Set TempDegrees = (Angle from (Position of TempBossUnit[1]) to (Position of LylyanaAegis[11]))
      • Unit - Move LylyanaAegis[11] instantly to ((Position of TempBossUnit[1]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[1]) to (Position of LylyanaAegis[12]))
      • Unit - Move LylyanaAegis[12] instantly to ((Position of TempBossUnit[1]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[1]) to (Position of LylyanaAegis[13]))
      • Unit - Move LylyanaAegis[13] instantly to ((Position of TempBossUnit[1]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[1]) to (Position of LylyanaAegis[14]))
      • Unit - Move LylyanaAegis[14] instantly to ((Position of TempBossUnit[1]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[2]) to (Position of LylyanaAegis[21]))
      • Unit - Move LylyanaAegis[21] instantly to ((Position of TempBossUnit[2]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[2]) to (Position of LylyanaAegis[22]))
      • Unit - Move LylyanaAegis[22] instantly to ((Position of TempBossUnit[2]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[2]) to (Position of LylyanaAegis[23]))
      • Unit - Move LylyanaAegis[23] instantly to ((Position of TempBossUnit[2]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[2]) to (Position of LylyanaAegis[24]))
      • Unit - Move LylyanaAegis[24] instantly to ((Position of TempBossUnit[2]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[3]) to (Position of LylyanaAegis[31]))
      • Unit - Move LylyanaAegis[31] instantly to ((Position of TempBossUnit[3]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[3]) to (Position of LylyanaAegis[32]))
      • Unit - Move LylyanaAegis[32] instantly to ((Position of TempBossUnit[3]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[3]) to (Position of LylyanaAegis[33]))
      • Unit - Move LylyanaAegis[33] instantly to ((Position of TempBossUnit[3]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[3]) to (Position of LylyanaAegis[34]))
      • Unit - Move LylyanaAegis[34] instantly to ((Position of TempBossUnit[3]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[4]) to (Position of LylyanaAegis[41]))
      • Unit - Move LylyanaAegis[41] instantly to ((Position of TempBossUnit[4]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[4]) to (Position of LylyanaAegis[42]))
      • Unit - Move LylyanaAegis[42] instantly to ((Position of TempBossUnit[4]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[4]) to (Position of LylyanaAegis[43]))
      • Unit - Move LylyanaAegis[43] instantly to ((Position of TempBossUnit[4]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[4]) to (Position of LylyanaAegis[44]))
      • Unit - Move LylyanaAegis[44] instantly to ((Position of TempBossUnit[4]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[5]) to (Position of LylyanaAegis[51]))
      • Unit - Move LylyanaAegis[51] instantly to ((Position of TempBossUnit[5]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[5]) to (Position of LylyanaAegis[52]))
      • Unit - Move LylyanaAegis[52] instantly to ((Position of TempBossUnit[5]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[5]) to (Position of LylyanaAegis[53]))
      • Unit - Move LylyanaAegis[53] instantly to ((Position of TempBossUnit[5]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[5]) to (Position of LylyanaAegis[54]))
      • Unit - Move LylyanaAegis[54] instantly to ((Position of TempBossUnit[5]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[6]) to (Position of LylyanaAegis[61]))
      • Unit - Move LylyanaAegis[61] instantly to ((Position of TempBossUnit[6]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[6]) to (Position of LylyanaAegis[62]))
      • Unit - Move LylyanaAegis[62] instantly to ((Position of TempBossUnit[6]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[6]) to (Position of LylyanaAegis[63]))
      • Unit - Move LylyanaAegis[63] instantly to ((Position of TempBossUnit[6]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
      • Set TempDegrees = (Angle from (Position of TempBossUnit[6]) to (Position of LylyanaAegis[64]))
      • Unit - Move LylyanaAegis[64] instantly to ((Position of TempBossUnit[6]) offset by 100.00 towards (TempDegrees + 2.00) degrees)


basically its to simulate a rotating shield around the boss level unit. How can i do this more efficiently or remove leaks? I have tried 0.03 sec periodic but it can only work properly with 0.01. Some people who played my map have complained about lag when using this current trigger.
Rep if you can help!
 

Zaraf

New Member
Reaction score
22
Can you provide a screenshot of what this looks like? How many different "shield" pieces do you have rotating at the same time? And you could probably do this better with a loop and such.
 

CixxyZ

Active Member
Reaction score
7
ok, the trigger just assumes that there are 6 bosses, without no alive checks { maybe i should add them. Then it creates 4 shield flying units around the boss, and it rotates around her perfectly.

Here's the creation trigger

Trigger:
  • Lylyanas Aegis
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Entering unit) Equal to TempBossUnit[1]
          • (Entering unit) Equal to TempBossUnit[2]
          • (Entering unit) Equal to TempBossUnit[3]
          • (Entering unit) Equal to TempBossUnit[4]
          • (Entering unit) Equal to TempBossUnit[5]
          • (Entering unit) Equal to TempBossUnit[6]
    • Actions
      • Set BossLylyana = True
      • Trigger - Turn on Lylyanas Aegis Perioidic <gen>
      • Trigger - Run Lylyanas Aegis Perioidic <gen> (ignoring conditions)
      • Set TempPoint = (Position of (Entering unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entering unit) Equal to TempBossUnit[1]
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Unit - Create 1 |c00999999[|r|c003399ffImp|r|c00999999]|r Lylyana's Aegis (10) for Player 11 (Dark Green) at (TempPoint offset by 100.00 towards ((Real((Integer A))) x 90.00) degrees) facing Default building facing degrees
              • Set LylyanaAegis[((Integer A) + 10)] = (Last created unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entering unit) Equal to TempBossUnit[2]
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Unit - Create 1 |c00999999[|r|c003399ffImp|r|c00999999]|r Lylyana's Aegis (10) for Player 11 (Dark Green) at (TempPoint offset by 100.00 towards ((Real((Integer A))) x 90.00) degrees) facing Default building facing degrees
              • Set LylyanaAegis[((Integer A) + 20)] = (Last created unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entering unit) Equal to TempBossUnit[3]
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Unit - Create 1 |c00999999[|r|c003399ffImp|r|c00999999]|r Lylyana's Aegis (10) for Player 11 (Dark Green) at (TempPoint offset by 100.00 towards ((Real((Integer A))) x 90.00) degrees) facing Default building facing degrees
              • Set LylyanaAegis[((Integer A) + 30)] = (Last created unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entering unit) Equal to TempBossUnit[4]
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Unit - Create 1 |c00999999[|r|c003399ffImp|r|c00999999]|r Lylyana's Aegis (10) for Player 11 (Dark Green) at (TempPoint offset by 100.00 towards ((Real((Integer A))) x 90.00) degrees) facing Default building facing degrees
              • Set LylyanaAegis[((Integer A) + 40)] = (Last created unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entering unit) Equal to TempBossUnit[5]
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Unit - Create 1 |c00999999[|r|c003399ffImp|r|c00999999]|r Lylyana's Aegis (10) for Player 11 (Dark Green) at (TempPoint offset by 100.00 towards ((Real((Integer A))) x 90.00) degrees) facing Default building facing degrees
              • Set LylyanaAegis[((Integer A) + 50)] = (Last created unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entering unit) Equal to TempBossUnit[6]
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Unit - Create 1 |c00999999[|r|c003399ffImp|r|c00999999]|r Lylyana's Aegis (10) for Player 11 (Dark Green) at (TempPoint offset by 100.00 towards ((Real((Integer A))) x 90.00) degrees) facing Default building facing degrees
              • Set LylyanaAegis[((Integer A) + 60)] = (Last created unit)
        • Else - Actions
      • Custom script: call RemoveLocation (udg_TempPoint)
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
How do i make this trigger work faster?

:nuts:

0.01 might and will cause lag

you have a lot of point leaks there....

put them in a point variable and remove them

also use loops...
 

CixxyZ

Active Member
Reaction score
7
oH CRAP . When I made the trigger is already past midnight thansk for reminding me. I'll add temp point and for loops
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
instead of moving each unit individually why don't you add all of them to a unit group and just use "Pick every unit in TempGroup" and move the picked unit

either use that or loops

a lot less work
 

CixxyZ

Active Member
Reaction score
7
Can't put into group cuase i want the shields to separate.
ok, How's this now?

Trigger:
  • Lylyanas Aegis Perioidic
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
      • BossLylyana Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[1] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempDegrees = (Angle from (Position of TempBossUnit[1]) to (Position of LylyanaAegis[((Integer A) + 10)]))
              • Set TempPoint4 = ((Position of TempBossUnit[1]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 10)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[2] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempDegrees = (Angle from (Position of TempBossUnit[2]) to (Position of LylyanaAegis[((Integer A) + 20)]))
              • Set TempPoint4 = ((Position of TempBossUnit[2]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 20)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[3] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempDegrees = (Angle from (Position of TempBossUnit[3]) to (Position of LylyanaAegis[((Integer A) + 30)]))
              • Set TempPoint4 = ((Position of TempBossUnit[3]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 30)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[4] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempDegrees = (Angle from (Position of TempBossUnit[4]) to (Position of LylyanaAegis[((Integer A) + 40)]))
              • Set TempPoint4 = ((Position of TempBossUnit[4]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 40)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[5] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempDegrees = (Angle from (Position of TempBossUnit[5]) to (Position of LylyanaAegis[((Integer A) + 50)]))
              • Set TempPoint4 = ((Position of TempBossUnit[5]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 50)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[6] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempDegrees = (Angle from (Position of TempBossUnit[6]) to (Position of LylyanaAegis[((Integer A) + 60)]))
              • Set TempPoint4 = ((Position of TempBossUnit[6]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 60)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
        • Else - Actions


can make even better?
 

Gwypaas

hook DoNothing MakeGUIUsersCrash
Reaction score
50
Trigger:
  • Set TempDegrees = (Angle from (Position of TempBossUnit[1]) to (Position of LylyanaAegis[((Integer A) + 10)]))
    • Set TempPoint4 = ((Position of TempBossUnit[1]) offset by 100.00 towards (TempDegrees + 2.00) degrees)


All the position stuff in there leaks, use variables and remove them to prevent this script from casuing massive leaks.
 

CixxyZ

Active Member
Reaction score
7
Not leaking anymore :D

Trigger:
  • Lylyanas Aegis Perioidic
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
      • BossLylyana Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[1] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempPoint = (Position of TempBossUnit[1])
              • Set TempPoint2 = (Position of LylyanaAegis[((Integer A) + 10)])
              • Set TempDegrees = (Angle from TempPoint to TempPoint2)
              • Set TempPoint4 = ((Position of TempBossUnit[1]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 10)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
              • Custom script: call RemoveLocation (udg_TempPoint2)
              • Custom script: call RemoveLocation (udg_TempPoint4)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[2] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempPoint = (Position of TempBossUnit[2])
              • Set TempPoint2 = (Position of LylyanaAegis[((Integer A) + 20)])
              • Set TempDegrees = (Angle from TempPoint to TempPoint2)
              • Set TempPoint4 = ((Position of TempBossUnit[2]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 20)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
              • Custom script: call RemoveLocation (udg_TempPoint2)
              • Custom script: call RemoveLocation (udg_TempPoint4)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[3] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempPoint = (Position of TempBossUnit[3])
              • Set TempPoint2 = (Position of LylyanaAegis[((Integer A) + 30)])
              • Set TempDegrees = (Angle from TempPoint to TempPoint2)
              • Set TempPoint4 = ((Position of TempBossUnit[3]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 30)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
              • Custom script: call RemoveLocation (udg_TempPoint4)
              • Custom script: call RemoveLocation (udg_TempPoint2)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[4] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempPoint = (Position of TempBossUnit[4])
              • Set TempPoint2 = (Position of LylyanaAegis[((Integer A) + 40)])
              • Set TempDegrees = (Angle from TempPoint to TempPoint2)
              • Set TempPoint4 = ((Position of TempBossUnit[4]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 40)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
              • Custom script: call RemoveLocation (udg_TempPoint2)
              • Custom script: call RemoveLocation (udg_TempPoint4)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[5] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempPoint = (Position of TempBossUnit[5])
              • Set TempPoint2 = (Position of LylyanaAegis[((Integer A) + 50)])
              • Set TempDegrees = (Angle from TempPoint to TempPoint2)
              • Set TempPoint4 = ((Position of TempBossUnit[5]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 50)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
              • Custom script: call RemoveLocation (udg_TempPoint4)
              • Custom script: call RemoveLocation (udg_TempPoint2)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempBossUnit[6] is alive) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • Set TempPoint = (Position of TempBossUnit[6])
              • Set TempPoint2 = (Position of LylyanaAegis[((Integer A) + 60)])
              • Set TempDegrees = (Angle from TempPoint to TempPoint2)
              • Set TempPoint4 = ((Position of TempBossUnit[6]) offset by 100.00 towards (TempDegrees + 2.00) degrees)
              • Unit - Move LylyanaAegis[((Integer A) + 60)] instantly to TempPoint4
              • Custom script: call RemoveLocation (udg_TempPoint)
              • Custom script: call RemoveLocation (udg_TempPoint4)
              • Custom script: call RemoveLocation (udg_TempPoint2)
        • Else - Actions
 

vypur85

Hibernate
Reaction score
803
> Not leaking anymore

Still leaks.
Code:
Set TempPoint = (Position of TempBossUnit[1])
Set TempPoint2 = (Position of LylyanaAegis[((Integer A) + 10)])
Set TempDegrees = (Angle from TempPoint to TempPoint2)
Set TempPoint4 = ([B](Position of TempBossUnit[1])[/B] offset by 100.00 towards (TempDegrees + 2.00) degrees)

Use this:
Code:
Set TempPoint = (Position of TempBossUnit[1])
Set TempPoint2 = (Position of LylyanaAegis[((Integer A) + 10)])
Set TempDegrees = (Angle from TempPoint to TempPoint2)
Set TempPoint4 = ([B]TempPoint[/B] offset by 100.00 towards (TempDegrees + 2.00) degrees)

Same goes for the others.


Condensed version:
Code:
Actions
  For each ([B]Integer B[/B]) from [B]1 to 6[/B], do (Actions)
     Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (TempBossUnit[[B]Integer B[/B]] is alive) Equal to True
            Then - Actions
                For each (Integer A) from 1 to 4, do (Actions)
                    Loop - Actions
                        Set TempPoint = (Position of TempBossUnit[[B]Integer B[/B]])
                        Set TempPoint2 = (Position of LylyanaAegis[((Integer A) + [B](10 x Integer B)[/B])])
                        Set TempDegrees = (Angle from TempPoint to TempPoint2)
                        Set TempPoint4 = [B]TempPoint[/B] offset by 100.00 towards (TempDegrees + 2.00) degrees)
                        Unit - Move LylyanaAegis[((Integer A) + [B](10 x Integer B)[/B])] instantly to TempPoint4
                        Custom script:   call RemoveLocation (udg_TempPoint)
                        Custom script:   call RemoveLocation (udg_TempPoint2)
                        Custom script:   call RemoveLocation (udg_TempPoint4)
            Else - Actions

Hope I don't miss out anything. It looks confusing in a block of text... =.= The bolded stuff are important changes.
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
>>Every 0.01 seconds of game time

Use 0.03/0.04 seconds. 0.01 eats up your processor....
 

CixxyZ

Active Member
Reaction score
7
Thanks a lot vypur. King, the trigger doesnt work properly on 0.03 i already stated.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top