MV Enemybook (halfway enemies)

Hello,

Issue:
When a player engages with a troop that includes an enemy appearing halfway through, the enemy is automatically added to the enemybook, even if the player has not encountered it yet. Are there any solutions? I'd prefer the halfway enemy to be added only when the player encounters it.
UP ^

when a player fights against a troop that also has an enemy that appears halfway through, after the battle, it gets added to the enemybook, even though the player has never seen it appear. Any solutions...?
UP ^ Please... :3
problem is, any enemy that can show up are there, I think there is an option
on defeating it in order to be added.

problem on this part, escaping the battle will still count.

the only solution is to make sure, the entire battle is finished so its added.
if the enemy is not added midway when the battle is over, than you require a plugin
to check if the battle is over or not, but I didn't found any solution to bother problems
effectively though or how to solve it.
problem is, any enemy that can show up are there, I think there is an option
on defeating it in order to be added.

problem on this part, escaping the battle will still count.

the only solution is to make sure, the entire battle is finished so its added.
if the enemy is not added midway when the battle is over, than you require a plugin
to check if the battle is over or not, but I didn't found any solution to bother problems
effectively though or how to solve it.
I understand, thank you so much.
Maybe I can do something using the troop events...
there might be a way, but I also looking for a way on my own bestiary,
so whenever you escape or not cleared the battle, it isn't added.
so you need to make something like a kill counter on 0 from the enemies
in the battle start, if escaped, than those enemies kill count = -1.

if you can die, and return to town, you need to make this addition to it as well.
but I'm not entirely sure how too as I didn't experiment with it yet.

if any has a solution, tell them as some or most will be interested in the code
or evented work around.

best to look around or how to accomplish it, as there should be insights or close
solutions to be tweaked to make it work.

Original thread: https://forums.rpgmakerweb.com/threads/enemybook-halfway-enemies.166471/