• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] This somehow crashes the game.

Status
Not open for further replies.
If you say so.

  • Uncontrollable Footman
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to (==) Man of Foot
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Order (Triggering unit) to Stop
      • Trigger - Turn on (This trigger)
 
At first it looked like it works. But then i tested the footman while he's in combat. All it takes is one player command and he's paused for eternity.

  • Uncontrollable Footman
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to (==) Man of Foot
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Pause (Triggering unit)
      • Unit - Order (Triggering unit) to Stop
      • Unit - Unpause (Triggering unit)
      • Trigger - Turn on (This trigger)
 
What does it mean with player command?

But hm, maybe.. what's the exact goal? It looks like you want prevent all units of type "Man of Foot" from making any orders, and just always stop. So they will never be able to move.

Player command = any orders such as move,patrol,attack,stop and cast spells made by the unit's player

I'm actually trying to make a unit that is selectable, owned by their player but cannot be directly controlled.

Maybe add a condition Order is not "Stop". If you add that condition then you do not even have to turn off the trigger.

That works :p
 
So, the reason why the footman's not stopping is because it's classified as a Ward?

EDIT: OK, Nevermind guys. I got it working now. Thanks for trying to help anyway :)
  • Uncontrollable Footman
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • Multiple ConditionsAnd - All (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to (==) Man of Foot
          • ((Triggering unit) is paused) Equal to (==) False
    • Actions
      • Unit - Pause (Triggering unit)
      • Unit - Order (Triggering unit) to Stop
      • Unit - Unpause (Triggering unit)
 
Last edited:

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,197
The order events fire before the order is actually issued. Hence the event response order overwrites the order issued in response to it after the trigger thread finishes. I think the pause/unpause work because pausing flushes the event response order so it is no longer scheduled to be issued.
 
Status
Not open for further replies.
Top