TempPoint

JHouse3532

New Member
Reaction score
1
ok i have a simple question...

If i have the tempPoint1 set as the region Attack point in trigger 1
Then would it interfer to have temppoint1 in another trigger be stage end?
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Yes, it would.

Create a new variable instead: "TemppointEnd" and set that one to the end.

Or, depends on the usage of course, of this... Show us the triggers and where you want it :p

If used like this, it is ok:
Code:
ATACK
    Events
        Unit - A unit enters regionAttack <gen>
    Conditions
    Actions
        Set temppoint1 = (Center of regionAttack <gen>)
        Unit - Order (Triggering unit) to Attack-Move To temppoint1
        Custom script:   call RemoveLocation(udg_temppoint1)

Code:
eND
    Events
        Unit - A unit enters regionEnd <gen>
    Conditions
    Actions
        Set temppoint1 = (Center of regionEnd <gen>)
        Unit - Order (Triggering unit) to Attack-Move To temppoint1
        Custom script:   call RemoveLocation(udg_temppoint1)

You ask what I would have done? Oh, I would have done this:
Code:
Map Init
    Events
        Map initialization
    Conditions
    Actions
        Set temppoint1 = (Center of regionAttack <gen>)
        Set temppointEnd = (Center of regionEnd <gen>)

Code:
ATACK
    Events
        Unit - A unit enters regionAttack <gen>
    Conditions
    Actions
        Unit - Order (Triggering unit) to Attack-Move To temppoint1

Code:
eND
    Events
        Unit - A unit enters regionEnd <gen>
    Conditions
    Actions
        Unit - Order (Triggering unit) to Attack-Move To temppointEnd

I do hope you understood this, if not, ask... Also; do I have to say this is just an example? :)

An example that is NOT ok:
Code:
ATACK
    Events
        Unit - A unit enters regionAttack <gen>
    Conditions
    Actions
        Set temppoint1 = (Center of regionAttack <gen>)
        Wait 15.00 seconds
        Unit - Order (Triggering unit) to Attack-Move To temppoint1
        Custom script:   call RemoveLocation(udg_temppoint1)
Code:
eND
    Events
        Unit - A unit enters regionEnd <gen>
    Conditions
    Actions
        Set temppoint1 = (Center of regionEnd <gen>)
        Wait 15.00 seconds
        Unit - Order (Triggering unit) to Attack-Move To temppoint1
        Custom script:   call RemoveLocation(udg_temppoint1)

The wait ruins it, most likely.
 

JHouse3532

New Member
Reaction score
1
My Triggers that basically mess with each other are

Trigger:
  • Stage 1
    • Events
      • Unit - A unit enters End Stage 1 &lt;gen&gt;
    • Conditions
      • (Triggering unit) Equal to The Exiled 0054 &lt;gen&gt;
    • Actions
      • Set TempPoint = (Random point in End Stage 1 &lt;gen&gt;)
      • Destructible - Open Demonic Gate (Horizontal) 0000 &lt;gen&gt;
      • Trigger - Turn off Base Spawn S &lt;gen&gt;
      • Trigger - Turn off Base Spawn S2 &lt;gen&gt;
      • Trigger - Turn off Base Spawn T &lt;gen&gt;
      • Trigger - Turn off Base Spawn T2 &lt;gen&gt;
      • Custom script: call RemoveLocation(udg_TempPoint)


and

Trigger:
  • Base Spawn S2
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Set TempPoint = (Random point in Light Blue Spawn &lt;gen&gt;)
      • Set TempPoint2 = (Random point in Attack point 01 &lt;gen&gt;)
      • For each (Integer A) from 1 to 1, do (Actions)
        • Loop - Actions
          • Unit - Create 20 Rebel Gunner for Player 3 (Teal) at TempPoint facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack-Move To TempPoint2
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempPoint2)


also what if i have a variable equaling the same region in two different triggers, also can i use temppointend ??
 
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