Looking for feature to see the possible damage range before attacking in combat RMMV

Hello,

I would like to add an feature to my game where the players in combat would see the range of possible damage after recalculating actor damage and enemy resistances/defenses (such as For the King game, see screenshot, or Heroes of Might and Magic where you were able see number of killed troops per attack/spell). So for example my actor can inflict 5-10 damage to Bat, but only 2-5 to Minotaur and I would like to player see this when picking which enemy is he going to attack.

Is there a plugin or some kind of option to add this?

Spoiler: Screenshot from FTK
FTK damage example.png
It's been asked a few times, but I've never seen anyone make a plugin for it.

The calculation part of it is pretty straightforward, you can use all the same functions that actual damage calculation does, making and placing it into the UI is the more complicated/tedious part.
@ATT_Turan Thank you for answering.

I found some HUD creating tool like SRD HudMaker or MOGhunter Battle HUD (if I manage to find and download it first), but from what I was reading, it's not that easy implement anyways and it can be buggy sometimes.

I hope some day we will find a solution, it would be really cool and useful 😀 🙂 Once again thanks and have a good day.
I don't see why you can't just have SRD HUDMaker display the data
I'm not sure how to dynamically display the data of all different spells/skills (I have about 60 of them). If you have som spare time and knowledge about the subject, can you, please, show us some guidance? Since ATT_Turan also mentioned that it's been asked few times, it would be nice to have a "tutorial" in one place so in the future more developers can find this post with a solution. 🙂 Thanks.
If you can get the variable references for the data you want to show I can show you how to put it in HUDMaker
I don't know how you go about displaying text in a HUDMaker UI element.

The actor choosing the skill is BattleManager.actor()

The target being highlighted is SceneManager._scene._enemyWindow._enemies[SceneManager._scene._enemyWindow.index()]

The skill being chosen from the skill list is
[icode]SceneManager._scene._skillWindow._data[SceneManager._scene._skillWindow.index()]

That skill object, in turn, has a damage property that has properties for formula, critical, elementId, type, and variance.

You would have to either create a temporary Game_Action object to reference all of that and run the evalDamageFormula() method, or you'd have to make a copy of evalDamageFormula() and the things after it (calcElementRate() ) belonging to a different data type.

It can be done, but it's not trivial.
Perhaps Galv's script has what you need. Min and Max damage, with Critical Chance.
You would have to either create a temporary Game_Action object to reference all of that and run the evalDamageFormula() method
Hmm, I looked at Galv's plugin and it looks like he's doing something like that by aliasing Game_Action.prototype.subject and grabbing json data from $gameActors and $gameTroop
Perhaps Galv's script has what you need. Min and Max damage, with Critical Chance.
Perfect! I wasn't familiar with that one, but it appears to be exactly what the OP is asking for.
@Erif it's perfect, exactly what I was looking for! I believe that you have not only helped me, but also others searching for this functionality. Thank you!

Also, thanks for the participation in discussion @ATT_Turan @AquaEcho . Have a nice day 🙂

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-feature-to-see-the-possible-damage-range-before-attacking-in-combat-rmmv.166732/