• 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.

Detect autocast?

Status
Not open for further replies.
Try checking out the order issued by a unit and see if it matches with the order string of the autocast ability.

To get the order string, you'll need some debug functions.

This only detects the issued order:
  • Trigger
    • Debug Order
  • Event
    • Unit - A unit is issued an order
    • Unit - A unit is issued a point order
    • Unit - A unit is issued a target order
    • Unit - A unit is issued a unit order
  • Conditions
  • Actions
    • Custom Script - call BJDebugMsg("Issued order is " + OrderId(GetIssuedOrderId()))
    • Custom Script - call BJDebugMsg("Numerical value of issued order is " + I2S(GetIsssuedOrderId()))
 
Level 25
Joined
May 11, 2007
Messages
4,650
Just use the berserk spell, it's instant.
Create two versions of it, "Run" and "Walk", when one of them is used, remove it and add the other version. Set both to same hotkey.

Easier for the player to use too, as they don't have to right click the spell in order to toggle movement.
 
Status
Not open for further replies.
Top