Icyculyr
I'm a Mac
- Reaction score
- 68
I have code for resuming movement after casting an ability that normally stops you... how can I detect if the issued order is to cast an ability in which case I don't want to store it as the last order.
EDIT: Nevermind I just added the only other possible order which was "HoldPosition" to the conditions that it updates sOrder and oLastOrder.
EDIT: Nevermind I just added the only other possible order which was "HoldPosition" to the conditions that it updates sOrder and oLastOrder.
Trigger:
- Map Orders Copy Copy
- Events
- Unit - A unit Is issued an order with no target
- Conditions
- ((Triggering unit) is an illusion) Equal to False
- ((Unit-type of (Triggering unit)) is A Hero) Equal to True
- Actions
- Set PN = ((Player number of (Owner of (Triggering unit))) - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Issued order) Not equal to (Order(stop))
- Then - Actions
- Else - Actions
- Set oLastOrder[PN] = (Issued order)
- Set sOrder[PN] = obj
- If - Conditions
- Game - Display to (All players) the text: Test
- Events