MZ Help me with a script please

I have an Idea with a certain mechanic. One of enemy's skill has a common event in it. This event checks if certain party member has two certain states and if he has, enemy is casting a certain skill. I cannot do this with eventing, because game has too much characters and too much combinations of these "reactions" on certain states. If someone can help me with a script or plugin I'll be very glad

I've moved this thread to Plugin Requests. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-me-with-a-script-please.166527/