My states are lasting way too long...

As the title says, the states in the game I'm making are lasting way too long. I do not know why this is occurring. Here's an example:
1731548564128.png

As is shown in this image, the "Afraid" state is set to be removed after 1-2 turns. However, in practice, it seems to be lasting somewhere between 10 and infinite turns.

I don't know if this is caused by something obvious that I've missed, or some kind of plugin issue, or if it's a problem that's already been solved before, so I'm not quite sure how to proceed. In case it turns out this is a plugin issue, I will also attach a screenshot of the plugins that I am using for my game here:

1731549029706.png
There are a couple of possibilities, one which does not involve plugins and one that does.

1) Can the skill that adds the state be spammed? If so it will restart the state counter most times, so you get into a stun lock in that case.

2) Some plugins have that a reapply of the state stacks which is a worse case of the first. So that could also be going on

3) Some battle systems change what a turn is and when those get removed. I don't see any plugins in your list that I know of that do that, but it can't be overlooked.

Without more info I would suspect the 1st, that it is being applied over and over so it is starting over the counter each time.
1) Can the skill that adds the state be spammed? If so it will restart the state counter most times, so you get into a stun lock in that case.
I have seen this happen with a different state, one that only lasts 1 turn (and actually does last 1 turn as far as I've seen). I've also seen the skill that applies the "Afraid" state hit the same target multiple times in a row before, but I guess I should clarify that I'm pretty sure that that isn't what's happening here. I believe I saw the "Afraid" state last much longer than it should have without anyone using a skill to re-apply it to the targets in question.
One other thing. What state ID is afraid in the database?
There are a couple of things you need to do.

1 - you need to test with no plugins on. Even if you think nothing in there could be affecting it, you have to eliminate the possibility. Turn off all plugins, save your project, and start a new play test (or battle test)

2 - you have to know the specific scenario and conditions. Anything where you can answer "pretty sure" or "I believe" isn't actionable information 😉

In the default engine, the state will go away after the specified number of turns. Any skill that applies it will refresh that duration. If that's not what you're seeing with all plugins off, it has to be a skill or event or something that's re-applying the state.

If it does work as expected with no plugins on, then you start turning them back on a few at a time until you see the problem come back and narrow it down to which plugin (or combination) causes it.
you need to test with no plugins on. Even if you think nothing in there could be affecting it, you have to eliminate the possibility. Turn off all plugins, save your project, and start a new play test (or battle test)

If it does work as expected with no plugins on, then you start turning them back on a few at a time until you see the problem come back and narrow it down to which plugin (or combination) causes it.
I will make an attempt at testing this, and I will respond again once I do.

Anything where you can answer "pretty sure" or "I believe" isn't actionable information 😉
I do want to clarify that I know I have noticed this state in particular lasting too long (more than once, and more than others probably due to its effect being to freeze party members). I simply have a bad habit of using language that makes me sound less sure of things than I may be. I apologize for that miscommunication, and I apologize for any spite or the like that may have driven me to respond to this sentence in particular.

One other thing. What state ID is afraid in the database?
The ID is 12.
I don't see how anything there is spiteful, or why you felt the need to apologize for your words.

I'm pointing out that no one can know where to look at any applicable code unless you can give a specific sequence of events that leads to the bug.
If it does work as expected with no plugins on, then you start turning them back on a few at a time until you see the problem come back and narrow it down to which plugin (or combination) causes it.
It seemed to work fine in the new project. I did not encounter any issues with the functioning of the "Afraid" state in the new project, even once I'd put all of the plugins I was using into the new project.

I have also done a battle test within the not-new project, with an enemy that can inflict the "Afraid" state. And it actually worked as intended. Upon further testing with different troops (primarily boss battles that use the skill that inflicts "Afraid"), it seems like just this is only happening with one specific Troop, and somewhat inconsistently; I had a moment where one party member was "Afraid" for 4 turns while a different party member was only "Afraid" for 1 turn.
one specific Troop
Then the problem lies with something contained in that troop. It seems you have misconfigured something and/or forgot about something you had set up before.
Check the enemies and their skills. As mentioned, double check the skill isn't being used repeatedly by the enemies.
Check your troop events. If you have attached any common events to the troop check those as well.

It may help to share your enemy pages and troop pages related to this situation.

Original thread: https://forums.rpgmakerweb.com/threads/my-states-are-lasting-way-too-long.173209/