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