• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Order

Status
Not open for further replies.
Level 5
Joined
Jul 15, 2012
Messages
101
When i do this:

  • No abilities
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Arena <gen> contains (Casting unit)) Equal to False
    • Actions
      • Unit - Order (Casting unit) to Stop
unit still casts an ability
 
Level 5
Joined
Jul 15, 2012
Messages
101
Invisibility is cast with
  • Unit - A unit Starts the effect of an ability
or
  • Unit - A unit Begins channeling an ability
or
  • Unit - A unit Begins casting an ability
and with
  • No abilities
    • Events
      • Unit - A unit Starts the effect of an ability
      • Unit - A unit Begins channeling an ability
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Arena <gen> contains (Casting unit)) Equal to False
    • Actions
      • Unit - Order (Triggering unit) to Stop
but other abilities is not cast with 3 events at the same time but uses mana (and no cooldown)




Licheus said:
Does the Arena contain the Casting unit? :ogre_hurrhurr:

Nope, unit is not in arena.
 

yip

yip

Level 3
Joined
Jan 15, 2014
Messages
69
Invisibility is cast with
  • Unit - A unit Starts the effect of an ability
or
  • Unit - A unit Begins channeling an ability
or
  • Unit - A unit Begins casting an ability
and with
  • No abilities
    • Events
      • Unit - A unit Starts the effect of an ability
      • Unit - A unit Begins channeling an ability
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Arena <gen> contains (Casting unit)) Equal to False
    • Actions
      • Unit - Order (Triggering unit) to Stop
but other abilities is not cast with 3 events at the same time but uses mana (and no cooldown)






Nope, unit is not in arena.

As far as I know, 'Unit Begins channeling an ability' should work.

If I recall correctly, even though the ability isn't channeled, that refers to as soon as the hero meets the conditions to begin casting the spell he was ordered to.

Maybe try using 'Triggering Unit' for the conditions too? I doubt that's the problem though.

Also, what is (or are) the ability(ies) you're trying to stop?
 
Last edited:
Level 5
Joined
Jan 27, 2014
Messages
164
Define casting ability. What ability? Is your Invisibility in fact Windwalk?
This trigger will work for most usual abilities.
Instant abilities will not be affected. Eg Berserk, Avatar, Windwalk.

Alternatively, you can try this:
Code:
    Events
        Unit - A unit Is issued an order with no target
    Conditions
        (Issued order) Equal to (Order(berserk))
        Arena <gen> contains (Triggering unit)) Equal to False
    Actions
        Unit - Pause (Triggering unit)
        Unit - Order (Triggering unit) to Stop
        Unit - Unpause (Triggering unit)

And of course, the Casting unit can be an issue sometimes as mentioned in post above. Use Triggering unit and see if it changes anything.
 
Level 5
Joined
Jul 15, 2012
Messages
101
  • Untitled Trigger 006
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(windwalk))
      • (Arena <gen> contains (Triggering unit)) Equal to False
    • Actions
      • Unit - Pause (Triggering unit)
      • Unit - Order (Triggering unit) to Stop
      • Unit - Unpause (Triggering unit)
Works, thanks vypur85.
 
Status
Not open for further replies.
Top