I've been skimming the threads from various topics and couldn't find a plugin for RPGMaker MZ that displays hit chance when hovering over an enemy battler.
Description:
When a battle is happening, I would like the player to be able to see their hit chance (as a percentage) after a skill is selected and they're hovering over an enemy battler. This would (ideally) be functional for both SV and regular battle views.
For single target skills, this would display the hit chance next to the targeted enemy battler, ideally to the side of the battler rather than above or below.
For AoE skills, this would display the hit chance next to every targeted battler, using the same placement as described above.
For AoE skills that hit everyone (including allies), the hit chance would only be displayed on enemies and not allies.
If targeting an ally, there would be no hit chance displayed (for things like buffs and such, as I don't intend to have any attack be targeted against allies).
For all of the above, if a skill is a "Certain Hit" it would state "Guaranteed Hit" next to the enemy instead of any numerical value.
For all of the above, it would only display this hit chance after a skill has been chosen but before the skill is finalized on a given target.
Ideally the formula would be customizable, giving a setting where a javascript line could be written for the formula. However, the default formula would be something like this:
[(User Hit Rate - Target Evasion Rate) * User Skill Chance] = display as percentage (e.g: 75%)
If (User Skill = Certain Hit) = display as "Guaranteed Hit"
Extra:
A minor question as well, how do the more experienced javascript users find script references? I know there's the links to the google sheets that have lists of different script references and such, however sometimes I'll see people use things that aren't listed in those documents and I wonder where they figure this stuff out.
An example, someone in another thread was giving suggestions on how I could make a script for this request here, and the script he wrote used something called "Window_BattleEnemy.prototype.select" which I couldn't find any info on what it is and where I can find the use case for. I'm obviously a novice to scripting and coding, so I'm a little lost on where this stuff can be found.
Thanks in advance.
Description:
When a battle is happening, I would like the player to be able to see their hit chance (as a percentage) after a skill is selected and they're hovering over an enemy battler. This would (ideally) be functional for both SV and regular battle views.
For single target skills, this would display the hit chance next to the targeted enemy battler, ideally to the side of the battler rather than above or below.
For AoE skills, this would display the hit chance next to every targeted battler, using the same placement as described above.
For AoE skills that hit everyone (including allies), the hit chance would only be displayed on enemies and not allies.
If targeting an ally, there would be no hit chance displayed (for things like buffs and such, as I don't intend to have any attack be targeted against allies).
For all of the above, if a skill is a "Certain Hit" it would state "Guaranteed Hit" next to the enemy instead of any numerical value.
For all of the above, it would only display this hit chance after a skill has been chosen but before the skill is finalized on a given target.
Ideally the formula would be customizable, giving a setting where a javascript line could be written for the formula. However, the default formula would be something like this:
[(User Hit Rate - Target Evasion Rate) * User Skill Chance] = display as percentage (e.g: 75%)
If (User Skill = Certain Hit) = display as "Guaranteed Hit"
Extra:
A minor question as well, how do the more experienced javascript users find script references? I know there's the links to the google sheets that have lists of different script references and such, however sometimes I'll see people use things that aren't listed in those documents and I wonder where they figure this stuff out.
An example, someone in another thread was giving suggestions on how I could make a script for this request here, and the script he wrote used something called "Window_BattleEnemy.prototype.select" which I couldn't find any info on what it is and where I can find the use case for. I'm obviously a novice to scripting and coding, so I'm a little lost on where this stuff can be found.
Thanks in advance.