So, when does the event UnitStateChangeDetected trigger? I had wanted to write a script that does things when a particular unit attacks, but by reading some posts around here I've come to understand that such a thing isn't possible without modifying the DLL. I guess there is no chance that you could check if an unit is attacking with it, but I still would like to know what a "state change" entails.