• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] How to AI

Status
Not open for further replies.
So, i was wondering how your my unis become uncontrolable. By adding ward classification i have managed to hide the command card but still i can command my units. I tried triggering, event is issued order then order unit to stop and accidentally create an infinite loop. How do i do this? Should i create a time that stores the units current order and ignore player command? Or there are better ways?
 
Awesome suggestion guys. I checked the link u gave killcide, that one is similar to what i did but it will crash the map due to an infinite loop in the event with no target as units are given the stop order by default. Removing no target event will make the unit controllable.

Edit: just a hunch, ever wonder why in maps with AI ally that u cant control the AI will walk around your unit in an annoying way? Maybe its because u can control it using right click but the constant movement of th unit cancels your command making you think that its ignoring you. Its just a hunch. Maybe the best way is to index the summoned unit then fire a trigger that gives order depending on the condition, yes?
 
GIF preview for you then! Like I said it's a little wonky xP especially when you use order(stop).

Preview.gif
 
On topic: you set an order to the ward unit and u keep on making the unit do the order on a timer event yes?

Noope

  • Init
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set tempLoc = (Position of Great Hall 0002 <gen>)
      • Unit - Order Knight 0000 <gen> to Attack-Move To tempLoc
  • Keep Order
    • 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
      • (Issued order) Equal to (Order(smart))
    • Actions
      • Unit - Order Knight 0000 <gen> to Attack-Move To tempLoc
 
Status
Not open for further replies.
Top