Endless Victory Loop [Help]

So I have been working on a game for some time now and I finally decided it was time to add some scripts. I added WordWrap, Yanfly Battle Engine, and Aftermath. These 3 scripts were working perfectly for a good amount of time. I then saw a cool script to add an AP system and was intrigued. This script was harder than the others as I had to edit it slightly to work with the aftermath script. I found some help online for that and after a bit, got it working. After a little while though I decided the scrap the AP system as I didnt see it fitting into my game. Some time after that something went wrong.

Whenever I attempt to finish a fight two things happened. (1) The victory message would play twice and (2) the game would crash when you attempted to leave the battle with the message "Script 'Window_Selectable' line 61: ZeroDivisionError occurred divided by 0"  http://puu.sh/hAq4i/06c67782f0.jpg

Now I have very little to no knowledge of how scripts work so this is very puzzling to me. My solution was to start a new project and just see if it was part of my scripts. So after starting my new project and getting into a fight, I ran into a new error with the victory screen. I now would have the "Your party won" message repeating over and over. This is from a brand new game where I didnt touch the script at all.

Now I have no idea what could be causing this and currently am pretty upset about this. I really want to figure this out as my game was coming along very well and I was having a great time working on it.

Anything helps 

Thank you

This is my first post on here by the way so I apologize if I did anything wrong!
Are you talking about random battles or about evented battles?


In the case of evented battles, please post screenshots of the event with all pages.


Also please add links to the scripts you're using - I don't know if the problem is caused by the script or not, it could also be a wrong looping parallel process
http://puu.sh/hAtvj/90289e7e94.png

This is to the event. I got rid of every script so I am currently without any.
If that is your entire event and the effects described above still happen, then either you have forgotten to remove one (defective) script, or you have changed and damaged your default scripts.


Check if all unnamed script slots are really empty, or if you forgot one script in such a slot.


If not, you probably have to replace the default scripts with the scripts from a new project to repair them.

Original thread: https://forums.rpgmakerweb.com/threads/endless-victory-loop-help.39617/