Seems like tried everything.. Cant make Condition that would detect what Ability is executing, ordered for unit..
Trying to using search unit group for units that are using Ability Target or Ability Build but the last one is too needy to have every Command link to be checked and in the end it still fails...
using:
( Unit order at index 1) == ((Ability command for ( Unit order at index 1)) targeting Structure )
(Target unit for ( Unit order at index 1)) == Structure
Build Farm == (Ability command for ( Unit order at index 1))
( Unit ability command Build Farm is in state Executing) == True
i believe it starts from index 0, not 1 would be the Second command.
This probably needs some heavy debugging, make sure when you first make the trigger that you can even detect any order, then refine slowly with additional tests. your first line should work.
Heh, it works. Guess so much testing had made and was so sure it should be on index 1 that not really noticed the change or gave proper chance for it to take effect.
Now have condition with 20 build structures in the list..
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Seems like tried everything.. Cant make Condition that would detect what Ability is executing, ordered for unit..
Trying to using search unit group for units that are using Ability Target or Ability Build but the last one is too needy to have every Command link to be checked and in the end it still fails...
using:
( Unit order at index 1) == ((Ability command for ( Unit order at index 1)) targeting Structure )
(Target unit for ( Unit order at index 1)) == Structure
Build Farm == (Ability command for ( Unit order at index 1))
( Unit ability command Build Farm is in state Executing) == True
everything fails to get the ability...
i believe it starts from index 0, not 1 would be the Second command.
This probably needs some heavy debugging, make sure when you first make the trigger that you can even detect any order, then refine slowly with additional tests. your first line should work.
@SoulTaker916: Go
yeah first line tried with 0 - 1 - 2 index seemed the same results..
@TwoDie: Go
Index 0 is the currently executing order. The following trigger worked as expected:
Event
Timer - Every 0.1 seconds of Game Time
Condition
(Target unit for (Zergling [56.74, 64.52] order at index 0)) == Siege Tank (Siege Mode) [67.22, 64.47]
Action
UI - Display "Zergling attacking Siegetank" for (All players) to Subtitle area
Perhaps I am misunderstanding what your issue is.
@intanjir: Go
Heh, it works. Guess so much testing had made and was so sure it should be on index 1 that not really noticed the change or gave proper chance for it to take effect.
Now have condition with 20 build structures in the list..