• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Autocast Events?

Status
Not open for further replies.
Go to your ability and scroll to Text - Order String - Activate/Deactivate. These are the order id's you need to memorize.
  • Trigger
  • Events
    • Unit - A unit is issued an order with no target
  • Conditions
  • Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Issued order) Equal to (order(flamingarrows))
      • Then - Actions
        • Unit Group - Add (Triggering unit) to AutocastGroup
      • Else - Actions
        • If (All conditions are true) then do (Actions) else do (Actions)
          • If - Conditions
            • (Issued order) Equal to (order(unflamingarrows))
          • Then - Actions
            • Unit Group - Remove (Triggering unit) from AutocastGroup
          • Else - Actions
Now, everytime you want to check if your unit has autocast make the Boolean comparison (Unit - Unit is in Unit group)
  • ((Triggering unit) is in AutocastGroup) Equal to True
 
Level 7
Joined
Jun 14, 2009
Messages
235
Go to your ability and scroll to Text - Order String - Activate/Deactivate. These are the order id's you need to memorize.
  • Trigger
  • Events
    • Unit - A unit is issued an order with no target
  • Conditions
  • Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Issued order) Equal to (order(flamingarrows))
      • Then - Actions
        • Unit Group - Add (Triggering unit) to AutocastGroup
      • Else - Actions
        • If (All conditions are true) then do (Actions) else do (Actions)
          • If - Conditions
            • (Issued order) Equal to (order(unflamingarrows))
          • Then - Actions
            • Unit Group - Remove (Triggering unit) from AutocastGroup
          • Else - Actions
Now, everytime you want to check if your unit has autocast make the Boolean comparison (Unit - Unit is in Unit group)
  • ((Triggering unit) is in AutocastGroup) Equal to True

Is that also how you would make defend work?
 
Status
Not open for further replies.
Top