Counting battle wins and defeats

I have played XP games where you were told how many victories/kills a party member has had and how many defeats.

I have searched the Mast Script List for something equivalent for Ace and can't find anything. 

Does anyone know of a script which will do this?  The ideal script would show this in the status page of a character as the game progressed, but if not, then a global total at the end would be fine.

If such a script does not exist, would it be difficult to write one? Or a snippet which tweaked a default script?

Thanks
if you're using random encounters without scripts, then the regular battlecount (control variable:game data) would be the number of won battles, because every lost battle is a game-over.

If you're using evented battles with the option "continue when loosing", you don't need a script because you can simply place a different control variable command in the battle result branches after battle processing, counting two variables for win/loose up.

If you have your own battle script that modifies those two options, then you need to give us a link to that battlescript before anyone can modify it for you.
I don't have a battle script which modifies this (using Yanfly's scripts) but what I do have is that I am giving the player the choice between visible and invisible enemies.

Presumably it would be a question of implementing both the possibilities that you suggest? 

I am assuming, though, that these options would give the simple total for the whole game, rather than wins/loses for individual actors.  For that I think I I would need to have some method of identifying who is in the active party for any particular battle, and then have a separate variable counting up for each actor.  But I can't see how to do that.  I know that this individual count can be done in XP, but I think it might have been done by a script, rather than just a simple use of variables.
Ah - OK, count by actor is more difficult, the default implementation is total battle count.

A count by party member could still be done by events, but it would require a parallel process with a lot of conditional branches, so this is probably easier by script indeed.

Original thread: https://forums.rpgmakerweb.com/threads/counting-battle-wins-and-defeats.20543/