MV Use variables of (YEP) Battle Statistics for event

Hello everyone

(YEP) Battle Statistics can display combat statistics in a dedicated menu.

for example:

Kills/Deaths/Assists, Damage Dealt, Damage Taken, Healing Dealt, Healing Taken per actor

I'm not interested in the menu, but rather in the statistics recorded.

Is it possible to retrieve battle statistics from Battle Statistic for use in events?

For example :
- retrieve the total healing variable for an actor
- store it in a $game.variable(x)
- and use it in an event like : if game.variable(x) > y, then unlock skill z

If anyone has this addon in their possession and can take a look, that would be great because I can't find the name of the variable.

Thanks a lot 🙂
If anyone has this addon in their possession and can take a look, that would be great because I can't find the name of the variable.
theyre actually just properties on the actors and theres a simple getter function for each of them

Kills/Deaths/Assists, Damage Dealt, Damage Taken, Healing Dealt, Healing Taken per actor
killCount(), deathCount(), assistCount(), totalDamageDealt(), totalDamageTaken(), totalHealingDealt(), totalHealingTaken()

retrieve the total healing variable for an actor
youd get your actor reference and use totalHealingDealt() to get their total healing done. then youd do with it as you would
They're all properties on the actor.

1731601866496.png


To put them into a game variable, you need a reference to the actor - e.g. $gameActors.actor(ID) or their position in the $gameParty - and you put it in the Script field of Control Variables.

So to get actor ID 3's total healing done you'd do:
Control Variable -> Script -> $gameActors.actor(3)._totalHealingDealt

Good call, @Robro33 - I didn't scroll down far enough to see there were getter functions.
theyre actually just properties on the actors and theres a simple getter function for each of them


killCount(), deathCount(), assistCount(), totalDamageDealt(), totalDamageTaken(), totalHealingDealt(), totalHealingTaken()


youd get your actor reference and use totalHealingDealt() to get their total healing done. then youd do with it as you would

They're all properties on the actor.

View attachment 323001

To put them into a game variable, you need a reference to the actor - e.g. $gameActors.actor(ID) or their position in the $gameParty - and you put it in the Script field of Control Variables.

So to get actor ID 3's total healing done you'd do:
Control Variable -> Script -> $gameActors.actor(3)._totalHealingDealt

Good call, @Robro33 - I didn't scroll down far enough to see there were getter functions.

thank you very much, I had a feeling it was going well from this list, but I didn't have the right synthaxe !

Original thread: https://forums.rpgmakerweb.com/threads/use-variables-of-yep-battle-statistics-for-event.173216/