States are not being applied to enemy despite set to 1000%! Please help!

I have a battle where the only way to win the battle is to perform a certain skill 15 times and perform another skill 5 times.

I have set one skill to "add state: counting" and the other skill to "add state: counting 2" and both these states are set to 1000% so it should be a guaranteed state upon hit. These two skills are also set at "certain hit".

I have a page in the troop to +1 to a variable when the enemy is inflicted with the states. One for the one state and one for the other state.

My skills are set like this:
1692893557082.png

Both skills have a counting add state 1000% but the other one is named "Counting" This is "Counting 2"

Both counting states are identical and both look like this:
1692893686941.png

My conditional branches in the troop look like this:
1692893761011.png


I tried making it trigger before and after the turn with no difference.

After many failed attempts, I created a debug page to display variables:
1692893854160.png


But regardless of the fact that I AM using the skills that the counting state is applied with (the battle disables all other skills except items), when the "display variable text" page triggers, it is always 0, 0 regardless of the fact that I am using these skills.

This tells me that the states are not being applied to the enemy! The enemy does not have any resistance or immunity to these states and the state apply is set at 1000% (because even 100% fails sometimes) but she is not getting the state applied as the variables set to count how many turns the state is applied to rests at 0.

The other pages in the troop are just dialogue and applying a state to the actor that only allows him to use the two skills necessary.


Does anybody know what the problem could be?
Looked at the censoring: 😅
Aside from that, I see that the state is set to expire after 1 turn, but you're also checking for its existence when the turn ends, which could possibly mean it has expired before you're doing the check. Try increasing its duration?

(edit: didn't read you removed that check, lemme think)
What traits does this enemy have anyway? I'd still try increasing its duration just in case, I've personally had trouble with 1-turn states before, regarding them expiring too early.
Please add messages to your state so you're informed if the state is applied or not - that is much easier than all that troop event checking.

you can remove the messages just before deployment, but during development you should have placeholders that are identificable and unique, exactly for these bughunting sessions.

That said, as mentioned above the percentage of the add effect is only one of three values that determine the total chance together - the second is the targets state resistance and the third is the relative difference between Luck.
so we need to see the enemy and actor data to check for those parts.

and as also said 1 turn means current turn only - the state is removed before the second turn even begins (which means if you have a state as a condition for an enemy action it needs to stay for two turns minimum)
Rather than trying to debug whether the enemy has the states with text boxes, why not give them an icon so you can see on the status display whether they're present?

Original thread: https://forums.rpgmakerweb.com/threads/states-are-not-being-applied-to-enemy-despite-set-to-1000-please-help.160586/