Skill isn't working

I have this skill that should add the counter state.

1658641912795.png


For both physical attacks and magic attacks, but every time it is used it removes the counter attack and counter spell states instead of adding it.

1658641965675.png


Can someone tell me what I'm doing wrong?

1658642015019.png

Just to test it out I added the death state and it doesn't kill the character, it's literally removing the state instead of adding it.
So, I did a bit of Googling on a hunch, and it seems like checking 'Remove by Restriction' may be causing your issues. Try unchecking that in each of your states and tell me if they work properly afterward.
So, I did a bit of Googling on a hunch, and it seems like checking 'Remove by Restriction' may be causing your issues. Try unchecking that in each of your states and tell me if they work properly afterward.
I'm still taking damage... I want to be told there's something obvious I'm missing, but I'm staring at this page and it looks like I did everything how I'm supposed to.


Here's video of it not working, If someone could tell me what to do I'll change it to get it working.
What kind of scripts are you using? Lets see the whole State and Skill, please...
I messed around with it out of frustration, but I think this is how it was and it's still not working anyway

1658644620321.png
1658644658596.png

What kind of scripts are you using? Lets see the whole State and Skill, please...

1658644642273.png
Ok, I'm not 100% certain of this, but I think the fact that you're making the Auto-Removal Timing set to Action End and the turns set to 2-2 could be the problem. Try turning it to Turn End or something else. You might even try removing the Auto-Removal altogether and turn on "Remove by Damage" and see if that helps.

Also, what scripts are you using? Maybe one of them is getting in the way.
to test it out I added the death state and it doesn't kill the character, it's literally removing the state instead of adding it.
Attack state death doesn't kill the character, it allows the character's attacks to inflict death.

If I'm not mistaken, "cannot move" would also prevent the character from counterattacking. Maybe try removing that?
1658645438812.png

It didn't work
Attack state death doesn't kill the character, it allows the character's attacks to inflict death.

If I'm not mistaken, "cannot move" would also prevent the character from counterattacking. Maybe try removing that?
Ok, I'm not 100% certain of this, but I think the fact that you're making the Auto-Removal Timing set to Action End and the turns set to 2-2 could be the problem. Try turning it to Turn End or something else. You might even try removing the Auto-Removal altogether and turn on "Remove by Damage" and see if that helps.

Also, what scripts are you using? Maybe one of them is getting in the way.
You mean what plugins?
You mean what plugins?
yeah! Those... I'm stuck in RMXP mode, even though I've moved on from there years ago...
Did you try what firestalker said and switched from Action End to Turn End?
@Mustardcap please show the FULL screenshot of your state, INCLUDING the ID.

Several IDs have special functions, and if you ignore the notes given in the default database and replace the original states of that ID, then you can cause a lot of problems.

specifically what you describe can easily happen if that state is state #1, because gaining state #1 will automatically remove all other states...
Okay so I figured something out. For some reason when both Counter, and Counter spell are active states on the actor, neither work. But when It's one or the other, they work
Nevermind, Counter just isn't working. What am I doing wrong here?
@Mustardcap please show the FULL screenshot of your state, INCLUDING the ID.

Several IDs have special functions, and if you ignore the notes given in the default database and replace the original states of that ID, then you can cause a lot of problems.

specifically what you describe can easily happen if that state is state #1, because gaining state #1 will automatically remove all other states...
1658655022933.png

Here is the full state, the actor uses the move, gets the state, and doesn't counter. I don't understand what I'm doing wrong. The Magic reflect works fine.
BTW to test it, I gave the actor max chance to counter in its traits, and it always counters, when I do the ''exact same thing'' as the state, nothing happens.
please fill out the state messages so that you can see when the state is applied and when it leaves.
because at the moment we don't even know if the skill fails or if the state fails.

additionally, how exactly do you start the battle when you test that? With a new game, with random or evented battles or how?

Original thread: https://forums.rpgmakerweb.com/threads/skill-isnt-working.149769/