State Counter Activates Skill

Hello, I'm looking for a script that has the ability to give an actor or enemy a state which acts like a counter, which uses a skill from the database to attack back at the attacker or use a skill on an actor or his/her entire party.

Example:

Hero's Turn: Eric uses Thunder Cube. It gives him a special state that only activates when an enemy attacks him (both physical/magic attacks activate the state) and activates a skill from the database that attacks the enemy that attacked him. This skill can be defined on that states note tags.

Enemy's turn: Ogre attacks Eric. Since Thunder Cube state was active on Eric, a skill invoked from that state now activates and hit's the Ogre with the designated skill that is on the Thunder Cube's state note tag.

This state of course, works as long as the state is active on Eric.

I haven't had luck finding a script that does this either due to compatibility issues or just otherwise doesn't exactly work how I'd like it to work. 

I'm willing to pay for this script to be made if it proves difficult.
This script should do the trick?
Not quite. That's more turn/timed based, not reactive based, like what I've described on my first post. 

Thanks for the suggestion, though.
I think Fomar has a script that counter attack with a skill you get to choose when certain states is on..

Not sure if this is what you want. But should be close

http://forums.rpgmakerweb.com/index.php?/topic/2021-counter-attack-skills/

Simply set counter on 100% and have the tag in the state should do the trick.

The problem about the original VXACE counter is, the user takes no damage. There are scripts out there that fix that so you might need to dig those up. 🙂
I've tried that one earlier. Didn't work, most likely one of the incompatible scripts I've tried today. I'm having more luck with Tsukihime's battle reactions, though. 

Thanks for trying again.
Seems like you have a script or scripts that interferes with how states work.

If that's the case, you should list down the list of custom scripts you are using in your top post. Remember to post the link to the tread the script is posted and not directly to the code. Anyone working on this will need those informations to avoid script conflicts.

Original thread: https://forums.rpgmakerweb.com/threads/state-counter-activates-skill.44892/