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

[JASS] Buff Activation

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
It's easy but really heavy to the system.

1. Create a Group to hold the units you want to affect by the script.
2. Every 1 second, pick every unit in that group and loop through the list of buffs you want to know the unit have.
3. If the unit has the buff, call a custom function (you have to create) for that unit.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
The thing about "move" is that the order with the Right Click is "smart" and not "move" tough the unit moves. As far as I know, there's no way to detect the "smart" order given by the right click is actually a "move order", it can be "attack-ground" or anything else; there are several orders wich would make the unit move.

There are some systems in Spell Section used to detect when the unit is moving.

What exactly do you want to achieve by detecting the unit wich acquires a buff? What do you want to do after that?
 
Status
Not open for further replies.
Top