Autosave during combat.

Im looking at the various autosave plugins that exist and while i did find one that does most of it the issue i keep having is that i cant seem to figure out how to make saveing during combat works(or if its even possible)

I can interrupt events and such by making use of variables and switches paired with the autosave command that was provided but when i tries such during combat it fails.

The idea here was to use a variable at the start of combat to determine witch troop i would need to summon in the case of having said fight be interrupted and store monster/player stats in other variables followed by saving.
And have a paralel event keep track of witch troop it should initiate combat with if the fight were to be interrupted.

Issue i run into is when i shut of my testfile and start again i still have the battlemusic running and i cant enter another scene(atleast shop and menu)
Entering the menu gives me the following errormessage

spriteset.battleback1Name is not a function.

Any know how to solves this problem of mine?
Run the autosave once the event starts but before battle starts. That should make it work. However, be advised that you could get a player stuck with this, as they will always have to pass the fight to proceed no matter what state they are in when the battle hits.
Run the autosave once the event starts but before battle starts. That should make it work. However, be advised that you could get a player stuck with this, as they will always have to pass the fight to proceed no matter what state they are in when the battle hits.

maybe but my intent was to use it every turn during combat aswell. Party wipe doesnt have to mean game over.

Original thread: https://forums.rpgmakerweb.com/threads/autosave-during-combat.102817/