Still need help resolving this.
This error only seems to show up whenever the party is defeated, but the enemy has another move to make - like, if the enemy can do 2 attacks during its turn, but kills the party on the first attack. The error shows up while the damage pop-up from the first attack is still showing, so before the next attack is even initiated. This error prevents the Game Over message and screen to appear.
TypeError
Cannot read property of 'scope' of null
This error occurs with only the Yanfly BattleEngineCore enabled.
Does it also happen in a new project without external plugins?
So the problem is probably one of your plugins.
It could be something the author themselves didn't notice, or it could be caused by an update on the maker after the release of the plugin.
What makes an enemy attack twice in the same turn?
You could do something that remove all enemies actions whenever the whole party is defeated or make the actors immortal until the next turn but visually it might not be what you want.
It is probably doable to avoid this error by changing your common events by putting variables that if all party members are dead do nothing else force action.
I'm guessing it's Yanfly Target Core that causes the error, getting an edit will be next to impossible and Yanfly will not consider that a bug(let's not get into that...).
Of course, you can always spend money but it could leads to other bugs.
Try some things and if you want me to take a look you can screenshot me your CE and I'll try to make something for you.
The force actions still happen even with the gameover inside the Game Over check CE?
If so, l would try to put inside the gameover check CE a switch on if the game over should occur, conditional branch:
At the beginning on your main CE with all the force actions inside, If switch ON: jump to label abc
At the very end, on that same CE, put the label abc. gameover should occur automatically without you needing to put it there.
If the error still occur, it must be because of some other force action somewhere.
Never mind, it worked because he ran out of attacks. It's still happening. I checked, and the error screen occurs while the damage pop-up is still visible, so before the next attack is even initiated.
I've moved this thread to Plug-In Support. Please be sure to post your threads in the correct forum next time. Thank you.
Still need help resolving this.
I've gotten an error message similar to that before. It means that the variable 'scope' is supposed to find an array that either doesn't exist or isn't an array. I think the problem is that you're attempting to do something in the common event that can't be done during the attack. The attack may work better if you did something with Yanfly's Skill Core. An attack like this can probably be done with Lunatic Mode, maybe in combination with action sequences and a well-built loop...maybe? I'm thinking for the loop, create a var right before it that increases after each attack in the loop, then when the check fails, break out. This can replace the common event so that the error won't occur.