So, I didn't have internet and I was bored at some point so I started messing with my scripts. Because I didn't have internet, I couldn't check to see if there was a function to tell if a specific trigger was already active. isActive only gives a total of triggers with that specific name, which is sufficient for most cases, but I wanted it to be more specific or something. I'm not really sure what I was trying to accomplish at the time, but when I made it, I felt like a genius, so I want to share. This returns true or false depending on whether the number of active triggers changes when it enables a trigger, alias, or timer.
Could probably be more elegant or something, but I'm not really in the business of elegance. I just want to share.
http://pastebin.com/i3DhCQ8x because I didn't want to export it. Just c/p into a script and if you can manage to find a use for it like I did, hooray.
Comments