Damage Formula in Skill Description RPGMMZ

Hey everyone,

Goal:

I'm currently using RPGMZ and I'm looking to display the min and max damage of a formula in my skill descriptions.

Example Formula:

Code:
Math.randromInt(4) + a.atk

So if the player/actor's a.atk = 2 you may deal 2-6 damage.

Skill Description Format

Slashes foe. Deals 2-6 physical damage!

Important Notes and Screenshots

- My formulas only make use of ATK / MAT. I do not use variance or subtractive variables from the target's stats.
- I've had a look on this forum and found a plugin for MV but its a substantially old thread and I don't know if it will work for MZ.
- I'm using Visustella plugins such as BattleCore, CoreEngine, BattleSystemFTB, - nothing that I think would interfere with another plugin outside of theirs... but who knows?
- I've not yet learned JavaScript

1662073000221.png


If anyone can point me in the direction of a plugin - or make a suggestion on how to achieve this in RPGMZ I would be very much appreciate it.

Best wishes. 🙂
Eli (Hakuen Studios) has a combination of plugins for this for both MV and MZ. His Escape Codes plugin adds an Eval escape code, and then his Global Codes (or something like that) will let you use escape codes in the skill description field.
Eli (Hakuen Studios) has a combination of plugins for this for both MV and MZ. His Escape Codes plugin adds an Eval escape code, and then his Global Codes (or something like that) will let you use escape codes in the skill description field.
My deepest thanks @ATT_Turan - really. This was spot on.

For anyone else who is looking to display damage range in skill description heed this:

You'll need these three free* plugins

1. Eli's Book
2. Eli's Escape Codes
3. Global Text

Once you have these installed and active in your project.

Refer to Escape Code Documentation.
Cross reference MV/MZ Script Calls
With the aforementioned plugins in mind my skill description looks like this:

Code:
Deals =| BattleManager.actor() |= to  =| BattleManager.actor() + 10 |=

1662527004224.png


*Toss Eli a couple of bucks for these plugins, they've created a fantastic tool. My game mechanics just became that much more legible for players.

Much love.

Original thread: https://forums.rpgmakerweb.com/threads/damage-formula-in-skill-description-rpgmmz.151007/