I wonder... does these kind of triggers leak?

Razed

New Member
Reaction score
44
Code:
Holy Bombers FAST 2 1
    Events
    Conditions
    Actions
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 353 <gen>)
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 345 <gen>)
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 346 <gen>)
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 347 <gen>)
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 348 <gen>)
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 349 <gen>)
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 350 <gen>)
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 351 <gen>)
        Wait 0.25 seconds
        Trigger - Run (This trigger) (ignoring conditions)

Leaking? Just a thought.
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
Yes, add those Centers of Region within Point Variables and remove them like this: Custom script: call RemoveLocation(udg_<Point's name here>).
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
"Center of" leaks a point.

Given you're running this rather often, I'd suggest to store those centers once at map init in some array,
and simply use that, without the need to destroy anything.

Can he really shoot that fast?
 

Razed

New Member
Reaction score
44
Yes, they can shoot that fast. I gave them 0.20 Attack Speed and 0.25 sec time to cast it, and it works atm. Just have to fix those leaks then.

EDIT: So two more questions, is it leakless like this?

Code:
Holy Bombers FAST 2 1
    Events
    Conditions
    Actions
        Set HolyBomberFAST1[1] = (Center of Region 353 <gen>)
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 353 <gen>)
        Wait 0.25 seconds
        Set HolyBomberFAST1[2] = (Center of Region 345 <gen>)
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 345 <gen>)
        Wait 0.25 seconds
        Set HolyBomberFAST1[3] = (Center of Region 346 <gen>)
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 346 <gen>)
        Wait 0.25 seconds
        Set HolyBomberFAST1[4] = (Center of Region 347 <gen>)
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 347 <gen>)
        Wait 0.25 seconds
        Set HolyBomberFAST1[5] = (Center of Region 348 <gen>)
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 348 <gen>)
        Wait 0.25 seconds
        Set HolyBomberFAST1[6] = (Center of Region 349 <gen>)
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 349 <gen>)
        Wait 0.25 seconds
        Set HolyBomberFAST1[7] = (Center of Region 350 <gen>)
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 350 <gen>)
        Wait 0.25 seconds
        Set HolyBomberFAST1[8] = (Center of Region 351 <gen>)
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground (Center of Region 351 <gen>)
        Wait 0.25 seconds
        Trigger - Run (This trigger) (ignoring conditions)

And how do I destroy the Var. Point with arrays?
 

Chocobo

White-Flower
Reaction score
409
Code:
holy bombers init
    Events
    Conditions
    Actions
        Set HolyBomberFAST1[1] = (Center of Region 353 <gen>)
        Set HolyBomberFAST1[2] = (Center of Region 345 <gen>)
        Set HolyBomberFAST1[3] = (Center of Region 346 <gen>)
        Set HolyBomberFAST1[4] = (Center of Region 347 <gen>)
        Set HolyBomberFAST1[5] = (Center of Region 348 <gen>)
        Set HolyBomberFAST1[6] = (Center of Region 349 <gen>)
        Set HolyBomberFAST1[7] = (Center of Region 350 <gen>)
        Set HolyBomberFAST1[8] = (Center of Region 351 <gen>)

Holy Bombers FAST 2 1
    Events
    Conditions
    Actions
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground HolyBomberFAST1[1]
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground HolyBomberFAST1[2]
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground HolyBomberFAST1[3]
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground HolyBomberFAST1[4]
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground HolyBomberFAST1[5]
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground HolyBomberFAST1[6]
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground HolyBomberFAST1[7]
        Wait 0.25 seconds
        Unit - Order Holy Bomber FAST 0108 <gen> to Attack Ground HolyBomberFAST1[8]
        Wait 0.25 seconds
        Trigger - Run (This trigger) (ignoring conditions)

you don't need to destroy the locations as it is completly useless here
 
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