MV About the plug-in that remembers the enemy's battle record

Thank you for your help.
Is there a plugin that remembers the enemy's battle record?

Thank you.
For which maker?
rpg maker mv.
I want to get the following information.

Number of times the skill used by the enemy in battle
The number of times the enemy has disabled an actor
The number of times the skill used when the actor disabled the enemy
The number of times the skill used when the enemy disabled the actor

Thank you.
Moved to: Plugin Requests
rpg maker mv.
I want to get the following information.

Number of times the skill used by the enemy in battle
The number of times the enemy has disabled an actor
The number of times the skill used when the actor disabled the enemy
The number of times the skill used when the enemy disabled the actor

Thank you.
If it's for a single enemy, you can use variables and Yanfly's Skill Core plugin to record and retrieve that information. If you want it for all enemies, you'll definitely need a plugin for that. Sounds potentially simple in theory, at least without perusing the base code. I use MZ though, so I don't know if anything I could do would work in MV. But how are you wanting to do it? Record total information for the enemy type to use elsewhere in the game? Or limit it to what that specific enemy is doing in that specific battle?
Thank you for contacting us.

> how are you wanting to do it?
I want to get the battle record for each enemy regardless of whether there are single or multiple enemies appearing in the battle.

Thank you.
So, are you wanting the record independent for each enemy, like goblin A's record is different from goblin B's, or a shared record, where what both do are recorded together? Sorry if I'm basically repeating the question, just want make sure I understand what you're trying to do.
If it's for independent records, does the record matter once the battle's over?
Thank you for contacting us.

>are you wanting the record independent for each enemy, like goblin A's record is different from goblin >B's, or a shared record, where what both do are recorded together?
Yes.
Thank you for contacting us.

>are you wanting the record independent for each enemy, like goblin A's record is different from goblin >B's, or a shared record, where what both do are recorded together?
Yes.
Which one? In an independent record, with both goblins having their own record, when goblin A uses a skill for the first time, the record tracks that goblin A used that skill, but goblin B's record says it didn't use the skill, since goblin A was the one that used it.

In a shared record, if goblin A uses a skill, goblin B has the same skill use count, because they're both goblins.

My approach would be different for each type, so I would need to know which one you wanted before I started.
Thank you for your help.

>In an independent record, with both goblins having their own record, when goblin A uses a skill for >the first time, the record tracks that goblin A used that skill, but goblin B's record says it didn't use >the skill, since goblin A was the one that used it.
I would like the former plug-in.
Thank you for your help.

>In an independent record, with both goblins having their own record, when goblin A uses a skill for >the first time, the record tracks that goblin A used that skill, but goblin B's record says it didn't use >the skill, since goblin A was the one that used it.
I would like the former plug-in.
Awesome. Will the record be needed after the battle is over? It will be MUCH simpler to make if you only need the record during battle and have it reset every battle. It could get complicated otherwise, and might be beyond my current skill level for quite awhile. I'm still learning how to write plugins and will probably be a bit messy code-wise as a result, especially as what I try to do becomes more complex.
Thank you for contacting us.

> Will the record be needed after the battle is over?
Yes.
Is it possible to create a plug-in?

Thank you.
It should be possible. I need to learn how to keep plugin data in the save file anyway. I'll need quite a bit of info on what you want and how you want to use it, so I'm probably gonna ask a LOT of questions before it's done, to make sure what I'm making is ACTUALLY what you want. So if any of my assumptions are wrong, please correct me as soon as possible.

You want a record that:
Shows the number of times an enemy uses a given skill (Do you want this data for all skills the enemy can use, or only for a specific skill?)
Shows how many times an enemy disables an actor (Do you mean a disabled state like paralyze, or knockout/death?)
Shows how many times a skill an actor used disables the enemy (Assuming disable here is the same as above. Do you want it recorded which actor used the skill or not matter WHICH actor did it, so long as an actor is the one that did it?)
Shows how many times a skill an enemy used disabled an actor (Assuming disable here is the same as above. Do you want it recorded which actor the skill disabled, or just that it disabled an actor?)

You want the record to persist after battle. So I assume you want something like this (example):
Party fights troop #1, with Goblin A and Goblin B.
Goblin A uses Bodyslam 3 times, Goblin B uses it 2 times.
Fight ends, record shows Goblin A used Bodyslam 3 times and B used it 2 times.
Party fights troop #2, with Goblin A, B, and C.
Goblin A uses Bodyslam 4 times, B and C don't use it at all.
Fight ends, record shows Goblin A used Bodyslam 4 times, since it was a different troop and therefore different goblins.
Party fights troop #1 again.
Goblin A uses Bodyslam 2 times, Goblin B doesn't use it.
Fight ends, record shows Goblin A used Bodyslam 5 times, since it's the same troop and goblin as the first fight, and Goblin B used Bodyslam 2 times, even though it didn't use it in the last fight, only the first fight.

Do I have that last bit right?
Thank you for contacting us.

Toriakontan is making a plug-in that remembers the actor's battle record.
Here's the link:

You can modify the plug-in.

Is it possible to create a plug-in that can memorize the battle record of the actor and the battle record of the enemy?
I will tell you about the desired plug-in.

Example
Battle start
Enemy group # 1 Enemy a and b have appeared.
Actor a attacks enemy a with his sword skill.
Actor b attacks enemy a with a bow.
Enemy a uses healing magic.
Enemy b attacks with magic.
Actor a defeats enemy a with his sword skill.
Actor b defeats enemy b with his bow skill.

Open the record check screen from the menu screen
Open the record of enemy a
Number of battles: 1
Number of times enemy a beats actor a: 0
Number of times enemy a beats actor b: 0
Number of times actor a struck: 1
Number of hits by actor b: 0
Number of times actor a used item a: 0
Number of times actor b used item a: 0
Number of times enemy a used healing magic: 1
Number of times actor a used the sword skill: 1
Number of times actor b used the bow skill: 0

Open the record of enemy b
Number of battles: 1
Number of times enemy b beats actor a: 0
Number of times enemy b has defeated actor b: 0
Number of times actor a struck: 0
Number of times actor b struck: 1
Number of times actor a used item a: 0
Number of times actor b used item a: 0
Number of times enemy b used magic: 1
Number of times actor a used the sword skill: 0
Number of times actor b used the bow skill: 1

Battle start
Enemy group # 2 Enemy a and b have appeared.
Actor a attacks enemy a with his sword skill.
Actor b attacks enemy a with a bow.
Enemy a uses healing magic.
Enemy b attacks with magic.
Actor a defeats enemy b with his sword skill.
Actor b defeats enemy a with his bow skill.

Open the record of enemy a
Number of battles: 2
Number of times enemy a beats actor a: 0
Number of times enemy a beats actor b: 0
Number of times actor a struck: 1
Number of times actor b struck: 1
Number of times actor a used item a: 0
Number of times actor b used item a: 0
Number of times enemy a used healing magic: 2
Number of times actor a used the sword skill: 1
Number of times actor b used the bow skill: 1

Open the record of enemy b
Number of battles: 2
Number of times enemy b beats actor a: 0
Number of times enemy b has defeated actor b: 0
Number of times actor a struck: 1
Number of times actor b struck: 1
Number of times actor a used item a: 0
Number of times actor b used item a: 0
Number of times enemy b used magic: 2
Number of times actor a used the sword skill: 1
Number of times actor b used the bow skill: 1

Thank you.
It almost looks like you want the records set for enemy slots, regardless of what enemy is actually in those slots, if I'm reading that right. Two different groups fought once each, but enemy a and b both have two battles recorded.
>Two different groups fought once each, but enemy a and b both have two battles recorded.
Yes.
Can you make a plug-in?

Thank you.
Thank you for your help.

>In an independent record, with both goblins having their own record, when goblin A uses a skill for >the first time, the record tracks that goblin A used that skill, but goblin B's record says it didn't use >the skill, since goblin A was the one that used it.
I would like the former plug-in.

Battle start
Enemy group # 1 Enemy a and b have appeared.

Open the record check screen from the menu screen
Open the record of enemy a
Number of battles: 1

Open the record of enemy b
Number of battles: 1

Battle start
Enemy group # 2 Enemy a and b have appeared.

Open the record of enemy a
Number of battles: 2

Open the record of enemy b
Number of battles: 2
It's a good thing you made that detailed example, because that is the opposite of what you said before. What Drakkonis asked was whether you wanted every instance of an enemy type to have its actions tracked separately - I can't imagine the point of that, and your record screen would become unmanageably huge as you play the game, but it's what you said you wanted.

So in Drakkonis' example, if you fought against two goblins, at the end of the battle you'd end up with one Goblin record that contains everything both of those enemies did (which makes much more sense).
It's a good thing you made that detailed example, because that is the opposite of what you said before. What Drakkonis asked was whether you wanted every instance of an enemy type to have its actions tracked separately - I can't imagine the point of that, and your record screen would become unmanageably huge as you play the game, but it's what you said you wanted.

So in Drakkonis' example, if you fought against two goblins, at the end of the battle you'd end up with one Goblin record that contains everything both of those enemies did (which makes much more sense).
That's kinda why I keep trying to verify what he's wanting. One for each enemy ID is easy. One for each enemy in each troop, not too bad (got the barebones of that in the works), but has the potential to get a bloated save file VERY quickly if there are a lot of skills or actors. Then it seems like it's per enemy slot... which while harder than the first and easier than the second, makes very little sense no matter which way I look at it, unless it's a very specific set of circumstances in the game where the slot matters more than the enemy in it. I was attempting to lock down what he wanted before I started, so I wouldn't have to undo a bunch of stuff later. At this rate I'd practically need to know every detail about the game to make sure I made what he's actually wanting, especially since if it's enemy ID or slot, I don't need even half the stuff I've set up for the each enemy per troop version.

Though it is giving me some practice, and the idea to set up my own bestiary plugin, so there's that.
I foresee one potentially major bug with this. If a battler dies to slip damage, like poison... it will record the wrong skill, both due to how I'm setting up the record, as well as how poison works (so far as I can tell, anyway. Kinda hard to track down the exact mechanic script). Only thing I can think of is to dump it into a generic Poison record, since I won't be able to record WHICH skill caused it. Obviously, if poison isn't used, this isn't an issue.

Original thread: https://forums.rpgmakerweb.com/threads/about-the-plug-in-that-remembers-the-enemys-battle-record.134397/