Encyclopedia issues

So I am having some weird issues with this script. When I face an enemy and kill them it counts it as two defeated even when there was only one in the battle. How do I fix this?
1635368662952.png

Edit: Just noticed that this was put in the wrong spot. My bad.
Which enemy was it? I may not have your latest game files, but in my test on your scripts, it worked fine.
Which enemy was it? I may not have your latest game files, but in my test on your scripts, it worked fine.
I was a group if different slimes.

One thunder slime.
1635380655568.png

After one battle:
1635380733055.png

It says number defeated: 2
There was only one thunder slime.
Game file:
It looks like just an error with the troop. I cleared the enemies and re-added them.
then it worked.
It looks like just an error with the troop. I cleared the enemies and re-added them.
then it worked.
Does that mean I have to redo all the troops?
Edit: Re-added the troop, but it still gave the same problem.
so far just the one. It may have been caused by an extra troop getting placed in there from a blank enemy.
so far just the one. It may have been caused by an extra troop getting placed in there from a blank enemy.
So what do I do now?
Just be careful of what enemies you place in the troop and test the ones you have done to see if they are working.
Just be careful of what enemies you place in the troop and test the ones you have done to see if they are working.
With the thunder and healer slimes, I just copy and pasted the slimes and changed some info on them and changed their color. I don't know what could be causing the problem.
Ok, so the problem is even going through the regular enemies that were default in the database. It is acting as though one kill counts as two kills. It even happens in a new project.
@Roninator2 So I looked into it and it must be an incompatible script in my list of scripts. I will do some digging and see what I can find out.
@Roninator2 Found the problem. It is an incompatibility with Yanfly ace Battle script:
I tried it without the battle engine and everything worked just fine.
I think it's the battle log in yanfly battle engine.
Comment out line 2505.
Test and see if it works correctly,
I think it's the battle log in yanfly battle engine.
Comment out line 2505.
Test and see if it works correctly,
IT WORKED! THANK YOU SO MUCH! YOU ARE A LIFE SAVER!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/encyclopedia-issues.141589/