• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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