'State Resist' not preventing state infliction

I can take a look and do some debugging if you like?  I've only got a couple of days left though.  You could duplicate your project, delete all the maps and just leave a single test map with an event that will show the issue.


My script did initially leave out enemies, but that was purely accidental, and I think someone provided a fix and I might have even made an update, so if you want enemy features to be dynamic at any point in your game, you should probably grab the updated version.
@Kes I think you'll have no choice but to bite into the bitter apple and go checking all your scripts, no matter what you assume they would affect or not.


Because from what has been tested here the only thing remains is that some scriptline does change the behaviour of the states. And if you have no idea which script it could be you'll have no choice but to check everyone.


yes, that will require a lot of newgame after each disabling of a script - I suggest you make a new map for specifically testing that and redirect your regular start point there to prevent the need to player through introductions, cutscenes and more.


But I don't think you'll abe to solve this without some systematic search for the cause.
@Shaz That's a great offer.  I'll send you a pm with a link shortly.


@Andar I fear you're right, and this will have to be done the slow and painful way.
I will be shutting down for the night soon, but can take a look tomorrow.  PM me any info I need to be able to reproduce it.
No need Shaz, I investigated the bug.


Poor ksjp17 somehow managed to create two different Stun states (same name) and was mixing them up.


@Kes I also feel so stupid when doing something like that. Try not to worry about it too much ^^


*hugs*
Thank you to both of you for all your help and patience.  I am just relieved that the cause has been found and I can now carry on with something else.


This thread is being closed, due to being solved.

Original thread: https://forums.rpgmakerweb.com/threads/state-resist-not-preventing-state-infliction.73147/