An interesting question

yes you could create a tag change script that looks at your tags .alertactive sub property and then have a script perform some function based on when the .alertactive goes true or false.