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

Something to detect these?

Status
Not open for further replies.
Level 21
Joined
Aug 21, 2005
Messages
3,699
Turning an autocast spell on/off can be detected by using:

  • Events
    • Unit - a unit is issued a no-target order
  • Conditions
    • Order - issued order equal to order(bloodluston)
  • Actions
    • Game - display message: Bloodlust is turned on
bloodlustoff is the order string of turning bloodlust autocast off. It's similar for other autocast abilities, such as healon or healoff. You can check them in the object editor (order string - turn off, or something similar to that).

The smart order is given whenever a unit rightclicks something. Whenever that happens, a unit will do whatever is more smart: attacking an enemy unit (right click enemy), move to the rightclicked location, repair a structure, etc.
 
Level 6
Joined
Aug 15, 2007
Messages
209
The only way to detect chain lightning targets would be to make your own triggered chain lightning spell.

Or you could try using game cache to store healths, then compare those that are different after the spell was cast, but that probably won't work.
 
Status
Not open for further replies.
Top