Script Equivalent for Getting Whether Actor is Afflicted by State?

Hey everyone.  

I'm trying to find a script equivalent for getting whether or not an actor is afflicted by a specific state.  I know this is possible using events, but I'm trying to avoid having to collect that data in an event every time I want to utilize the function I'm writing.  Any thoughts? 

Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/script-equivalent-for-getting-whether-actor-is-afflicted-by-state.16181/