Event: Any unit uses any ability

Builder Bob

Live free or don't
Reaction score
249
Is there a reasonable way to achieve this kind of event?

I could add an event for every ability I use in the map, but I'd rather not.
 

Monsterous

In the Shadows, Lurking.
Reaction score
99
EDIT: This might work.
Code:
    Events
        Unit - Any Unit is issued an order to Any Ability Command
    Local Variables
    Conditions
        (Ability command for (Triggering order)) !=  Move
        (Ability command for (Triggering order)) !=  Stop
        (Ability command for (Triggering order)) !=  Hold Position
        (Ability command for (Triggering order)) !=  Patrol
        (Ability command for (Triggering order)) !=  Attack
        (Ability command for (Triggering order)) !=  Scan Move
        (Ability command for (Triggering order)) !=  Turn

You may need to add other stuff if i've missed any normal abilities. The problem is that the trigger runs when the unit is going to cast it, not when casting it, and its in effect during casting. I can't find a way to stop this by giving the conditions a stage of the ability, as its counting orders.

To be honest, don't be lazy - add all those abilities in the events, simple and less hassle :D
 

Rainther

I guess I should write something of value here...
Reaction score
61
I agree.

I you for some reason would want to add more abilities not bound to that trigger, it may end up with an even bigger job.
See this as events and conditions merged. :)
 

Builder Bob

Live free or don't
Reaction score
249
However nifty the order trick is, it won't suit my needs. Oh well, guess I have to add every ability then.

thanks
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top