Winning/Running from battles variable question

Hello.

I'd like to know if it's possible that at any battle ending with victory or running away, I could add a constant value to a variable.

 

 

 

Ex:

The Player fights and beats the enemy group. At the end of the battle, a variable "A" would get a value of 1.

 

Ex2:

The Player runs away from a battle, adding 1 to variable "B".

 

 

While we're at it, is it possible to also add 1 to a variable "C" by beating individual monsters in a group?
If the battles are on map events 1 and 2 are done with options that show up with battle processing, for 3 you would need to add a control variable to every troop that has the specific enemy you want the variable to count.
Thanks for your help!

Original thread: https://forums.rpgmakerweb.com/threads/winning-running-from-battles-variable-question.41053/