Problems with battles aborting on their own.

Good day. I am having an issue with battles just randomly aborting. It looks like the party flees the battle, but it's a forced action, and it can't be controlled. I was told timers on events could cause this, so I removed all timers, and it's still an issue. It is also happening on maps with just treasure chests, no actual events or NPCs. I am confused and would love any advice. Thank you.
- Check the Troop events to see if there is any call of "Abort Battle".
- See if any of the skills used in this battle have the trait "Escape" on them.

Those are the two things I can think of off the top of my head that could cause a battle to end in a default project.
- Check the Troop events to see if there is any call of "Abort Battle".
- See if any of the skills used in this battle have the trait "Escape" on them.

Those are the two things I can think of off the top of my head that could cause a battle to end in a default project.
So I have escape sealed on the enemies, and disabled on the boss fight, it should be impossible to escape. I think the problem has to do with an event I am trying to do in autorun. It is a boss fight, and it always aborts, and it seems other random encounters abort when it is set up, even on other maps. When I disable the autorun, the random encounters stop aborting, but the boss fight still keeps aborting. If it is on auto run, it aborts and freezes the game.
Screenshot the event and post it here, we can't do much to help solve it otherwise. Are you using plugins?
Screenshot the event and post it here, we can't do much to help solve it otherwise. Are you using plugins?
No I'm on the PS4 version of RPG maker MV. I don't think I can use plug ins.
18edd583aca98-a1255BB25D67A675FB4.7A02DEB4937D736B_message_438556273904511_1713110444939.jpg
18edd58606a3-a1255BB25D67A675FB4.7A02DEB4937D736B_message_438556271261216_1713110434614.jpg
18edd58a89479-a1255BB25D67A675FB4.7A02DEB4937D736B_message_438556267559598_1713110420154.jpg
18edd58d7cc85-a1255BB25D67A675FB4.7A02DEB4937D736B_message_438556263697840_1713110405069.jpg
18edd59090892-a1255BB25D67A675FB4.7A02DEB4937D736B_message_438556260457560_1713110392412.jpg


Here is the full script of the event.
Sorry it's from bottom to top
That does not look like the PC-based RMMV, but rather like a console variant of the RPG-Makers.
This forum is for the PC-based makers, which work slightly different than the console makers.

That said, I would test by making a new troop with a new enemy, with the new enemy not having access to any escape skill and the new troop not containing any troop event.
Then test is the abort still happens - if not it is somewhere in your older troops or enemies.
That does not look like the PC-based RMMV, but rather like a console variant of the RPG-Makers.
This forum is for the PC-based makers, which work slightly different than the console makers.
He did say it was the PS4 version.

OP, what's the purpose of the erase event commands?

Also, yeah, this forum doesn't support the console versions and the thread will probably get closed. You should get the PC version of MV anyway because MV's strength lies in its huge plugin library and it's only $12 when it goes on sale once a month.
He did say it was the PS4 version.

OP, what's the purpose of the erase event commands?
The event is an NPC. When you enter the scene, he steps 2 steps up towards you and then talks with you back and forth a bit. Then a battle activates. If you win there is a quick animation, then you get an item, then he disappears. The self switch to page two is to make him automatically erase and exit event processing if his self switch has been flicked before. I had a previous version of him that would self terminate if you had the item he gives you, but that also kept aborting. It seems to effect random encounters too, even on other maps. Are there too many erase commands in place?
Also I should clarify that it is not fleeing that takes place. There is no prompt that says "so and so flees the battle" it's just a sudden ejection, even mind turn, or mid spell. I have escape sealed on all these enemy groups and on the boss NPC, and he is set to cannot run
Are there too many erase commands in place?
Well, it's more that the erase event commands aren't being used in the right way to begin with. You have further instructions after you tell the event to erase itself so it's unknown if those commands are running and I don't think you should be using it in this situation in the first place.

Erase event just temporarily erases the event from the map, it comes back if you leave the map scene and come back, either from battle or another map.
Well, it's more that the erase event commands aren't being used in the right way to begin with. You have further instructions after you tell the event to erase itself so it's unknown if those commands are running and I don't think you should be using it in this situation in the first place.

Erase event just temporarily erases the event from the map, it comes back if you leave the map scene and come back, either from battle or another map.
So if I use erase event, say after the battle, the boss disappears. Then a box pops up, it says "you received security clearance". Then it exists event processing. From what I've seen, exit event processing without erase event, makes the NPC still present. I use erase event, then use a self switch to make the event erase and stop processing right away, if the self switch has been activated. It works, on the times I don't get kicked out of the battle, everything seems to go smooth, and the NPC does not come back. Is there a better command? I appreciate the advice, I understand this isn't the correct place for this version, but I appreciate and help.
Is there a better command?
Just self switching to a new blank event page. The event will still be on the map, but it will be invisible and non-interactable.

Erase event is for things you want to come back when you exit the map and come back, like regenerating map clutter (e.g. the pots and bushes from Zelda).
Just self switching to a new blank event page. The event will still be on the map, but it will be invisible and non-interactable.

Erase event is for things you want to come back when you exit the map and come back, like regenerating map clutter (e.g. the pots and bushes from Zelda).
Thank you
I will try it like that.
Just self switching to a new blank event page. The event will still be on the map, but it will be invisible and non-interactable.

Erase event is for things you want to come back when you exit the map and come back, like regenerating map clutter (e.g. the pots and bushes from Zelda).
Thanks for this explanation of the erase function. I cleaned up my scripts this way and things seem much smoother. I appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/problems-with-battles-aborting-on-their-own.167735/