My searches on the forum (and general web) were fruitless and I'm hoping that a member of the community can help me find an existing answer or help out with figuring out a solution.
What I'm trying to ask is whether or not there is a method of using the Damage Formula section within RPGMZ's skills database to do the following (examples will be shared below):
- Change the cost of a skill from a flat amount of MP to be a percentage of total MP
- Account for the amount of MP used for the skill to affect the skill damage recovery
As an example
In the default game when you launch RPGMZ you can find in the skills tab "Fire I"
This skill cost 15MP and uses the following formula for damage with a 20% variance (100 + a.mat * 2 - b.mdf * 2).
I would like the skill to instead cost 5% of total Player MP.
So if Albert, our default Sorcerer, has 131 MP the skill would cost 6.55MP (I'm fine with having the cost always round up to the highest full number). So, in this example, Fire I cost 7 MP
That 7 MP should then be accounted for in the damage formula. Something like (MP Spent * 5 + a.mat * 2 - b.mdf * 2) with a variance of 20%.
Assuming Alberts Magical Attack power is 30 (and his targets Magical Defense is 20) the resulting damage range would be:
7 * 5 + 30 * 2 - 20 * 2
35 + 60 - 40
55 damage (the 20% variance would make the damage range be between 44 and 66).
When Albert is level 35, and has some spanky new gear, he revisits his low-level roots and sees this same enemy. Now his max MP is 649 and his Magical Attack is 114.
Fire I now has a base cost of 33
33 * 5 + 114 * 2 - 20 * 2
165 + 228 - 40
353 damage (the 20% variance would make the damage range be 315 (rounding up again) and 424.
The ability to play with the multiplier and mana cost of the spell will be important in balancing.
Let me know if further elaboration is needed! To recap, I need help with establishing a method for the skill to cost a percentage of MP (and for it to be reflected so the players can see that cost before selecting it) and then additional help with establishing the damage formula so it uses spent MP in the calculation.
What I'm trying to ask is whether or not there is a method of using the Damage Formula section within RPGMZ's skills database to do the following (examples will be shared below):
- Change the cost of a skill from a flat amount of MP to be a percentage of total MP
- Account for the amount of MP used for the skill to affect the skill damage recovery
As an example
In the default game when you launch RPGMZ you can find in the skills tab "Fire I"
This skill cost 15MP and uses the following formula for damage with a 20% variance (100 + a.mat * 2 - b.mdf * 2).
I would like the skill to instead cost 5% of total Player MP.
So if Albert, our default Sorcerer, has 131 MP the skill would cost 6.55MP (I'm fine with having the cost always round up to the highest full number). So, in this example, Fire I cost 7 MP
That 7 MP should then be accounted for in the damage formula. Something like (MP Spent * 5 + a.mat * 2 - b.mdf * 2) with a variance of 20%.
Assuming Alberts Magical Attack power is 30 (and his targets Magical Defense is 20) the resulting damage range would be:
7 * 5 + 30 * 2 - 20 * 2
35 + 60 - 40
55 damage (the 20% variance would make the damage range be between 44 and 66).
When Albert is level 35, and has some spanky new gear, he revisits his low-level roots and sees this same enemy. Now his max MP is 649 and his Magical Attack is 114.
Fire I now has a base cost of 33
33 * 5 + 114 * 2 - 20 * 2
165 + 228 - 40
353 damage (the 20% variance would make the damage range be 315 (rounding up again) and 424.
The ability to play with the multiplier and mana cost of the spell will be important in balancing.
Let me know if further elaboration is needed! To recap, I need help with establishing a method for the skill to cost a percentage of MP (and for it to be reflected so the players can see that cost before selecting it) and then additional help with establishing the damage formula so it uses spent MP in the calculation.