[Solved] Issues with attack point orders

Status
Not open for further replies.
Level 4
Joined
Feb 5, 2020
Messages
51
I'm having issues with some units (not all of them) forgetting their attack order after casting spells. Does anyone have any suggestions on how to fix this? Because the units needs to move in a cycle I don't want to have to repeat the order with a repetitive timer. Can I fix this some other way?
 
Level 4
Joined
Feb 5, 2020
Messages
51
I made a temporary solution
  • untitled
    • Events
      • Unit - Casting Unit <gen> Finishes casting an ability
    • Conditions
    • Actions
      • If ((AttackMove Red <gen> contains (Triggering unit)) Equal to True) then do (Unit - Order (Triggering unit) to Attack-Move To (Center of Attack Move Purple <gen>)) else do (Do nothing)
      • If ((AttackMove Blue <gen> contains (Triggering unit)) Equal to True) then do (Unit - Order (Triggering unit) to Attack-Move To (Center of AttackMove Red <gen>)) else do (Do nothing)
      • If ((AttackMove Teal <gen> contains (Triggering unit)) Equal to True) then do (Unit - Order (Triggering unit) to Attack-Move To (Center of AttackMove Blue <gen>)) else do (Do nothing)
      • If ((Attack Move Purple <gen> contains (Triggering unit)) Equal to True) then do (Unit - Order (Triggering unit) to Attack-Move To (Center of AttackMove Teal <gen>)) else do (Do nothing)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (AttackMove Red <gen> contains (Triggering unit)) Equal to False
          • (Attack Move Purple <gen> contains (Triggering unit)) Equal to False
          • (AttackMove Teal <gen> contains (Triggering unit)) Equal to False
          • (AttackMove Blue <gen> contains (Triggering unit)) Equal to False
        • Then - Actions
          • Unit - Order (Triggering unit) to Attack-Move To (Center of AttackMove Red <gen>)
        • Else - Actions
This is however a terrible solution because this makes the unit go back and forth every time it casts a spell. I believe the cause of this issue has to do with cast range. If there's no enemies left to target within the area after finishing the spell the unit will simply stand down rather than continue its attack order. Units with a shorter attack range however will continue to enter the region which issues their next order which keeps them on track of the movement cycle.
 
Last edited:
Level 4
Joined
Feb 5, 2020
Messages
51
can you explain the full effect you are trying to achieve?
It's quite simple, I want my units to stay on track and follow through with their attack order. Whenever a unit with a long range spell casts it seems to interrupt the previous move order. So I have to reissue its previous order without using a repetitive timer.
 
Level 25
Joined
Mar 29, 2020
Messages
1,466
a unit can only ever have one current order, so ordering something new will always overwrite the previous order.

what I meant by my previous question is - what is the attack/move order the units are all supposed to have? is this always happening or only in certain situations? are all units supposed to always be attack-moving to a certain point or do some units just act naturally? understanding the full situation will make it easier to offer an appropriate solution.
 
Status
Not open for further replies.
Top