Move order crashes game.

Danis[h]

New Member
Reaction score
19
Solved

I'm trying to make a trigger that will invert the movement order of a unit when it has a specific buff.. it works for the order type of patrol and smart, but whenever i specifically click the "move" ability and click anywhere the game crashes (no error message)

Trigger:
  • Invert Movement
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • ((Ordered unit) has buff Acid Bomb) Equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(smart))
          • (Issued order) Equal to (Order(patrol))
          • (Issued order) Equal to (Order(move))
    • Actions
      • Set TmpPoint[20] = (Position of (Ordered unit))
      • Set TmpPoint[22] = (Target point of issued order)
      • Set x = ((X of TmpPoint[22]) - (X of TmpPoint[20]))
      • Set x = (x x -1.00)
      • Set y = ((Y of TmpPoint[22]) - (Y of TmpPoint[20]))
      • Set y = (y x -1.00)
      • Unit - Order (Ordered unit) to Move To (TmpPoint[20] offset by (x, y))
      • Custom script: call RemoveLocation(udg_TmpPoint[20])
      • Custom script: call RemoveLocation(udg_TmpPoint[22])


the above here is my trigger

Related to this issue.. would this trigger lag the game?
Trigger:
  • Rotate Banshee
    • Events
      • Time - Every 1.50 seconds of game time
    • Conditions
    • Actions
      • For each (Integer B) from 1 to NumBanshee, do (Actions)
        • Loop - Actions
          • Unit - Make Banshee[(Integer B)] face (Random real number between 0.00 and 360.00) over 0.20 seconds
 

BlueMirage

Trust, but doubt.
Reaction score
39
Could it possibly be because the trigger triggers itself?
The trigger fires off the event when a unit is given an order. The trigger gives the unit an order. It will loop endlessly.

Try turning off the trigger at its start, then turn it on again at the end.
 

Danis[h]

New Member
Reaction score
19
Could it possibly be because the trigger triggers itself?
The trigger fires off the event when a unit is given an order. The trigger gives the unit an order. It will loop endlessly.

Try turning off the trigger at its start, then turn it on again at the end.

aaah right.. that completely passed me by. Thank you.
 

Ayanami

칼리
Reaction score
288
You could just add the action "Trigger - Turn off" at the start of the actions and then "Trigger - Turn on" at the end.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top