Using MP Cost in skill formula

How do I make it such that the MP cost of the skill is part of the damage formula of a skill? Is this innate in RPG Maker MV or do I have to code it in?
the MP cost is a fixed number in default, so you can simply enter that fixed number into your damage formula whereever you want.

However, if you're using a plugin to enable variable costs, then we need to know what plugin your're using and how you create variable costs - because your question only makes sense if you have a variable MP-cost, it would never come up with the default fixed MP-cost.
the MP cost is a fixed number in default, so you can simply enter that fixed number into your damage formula whereever you want.

However, if you're using a plugin to enable variable costs, then we need to know what plugin your're using and how you create variable costs - because your question only makes sense if you have a variable MP-cost, it would never come up with the default fixed MP-cost.

Well before delving into other scripts, is there a script call RPG Maker uses for skill MP costs that I can input into the formula box?

using a.skill.mpCost does not work and neither does user.skill.mpCost nor this.skill.mpCost.

Though I am aware it is a fixed number, it is something of a work load shortcut I'm trying to take really.
How about this: What are you using to dynamically change a skill's mp cost? If it's a plugin, knowing which one will be needed to help.

If it's by using the MP cost rate trait, then you could call that from the actor and multiply it by the initial skill's cost. I believe that is called by 'a.mcr'.
How about this: What are you using to dynamically change a skill's mp cost? If it's a plugin, knowing which one will be needed to help.

If it's by using the MP cost rate trait, then you could call that from the actor and multiply it by the initial skill's cost. I believe that is called by 'a.mcr'.
Yeah I'm aware of that, what I wanted to do was have the game pull the MP cost itself as a base value so that I won't have to re-input it for all the skills of that type. Nothing was really dynamic with it, was just hoping there's a quick and easy way to just tell RPG Maker to use the default MP Cost as a base value.
There is no default MP cost, each skill has its own unique cost value and damage formula.

I think you're making things more complex than really needed in your own mind.
Please give us a single complete example of what you want to do for a skill, because it will always be easier to enter +10 (or whatever the skill cost is) into that skills damage formula than to enter +xyzformula into the same field.
There is no default MP cost, each skill has its own unique cost value and damage formula.

I think you're making things more complex than really needed in your own mind.
Please give us a single complete example of what you want to do for a skill, because it will always be easier to enter +10 (or whatever the skill cost is) into that skills damage formula than to enter +xyzformula into the same field.
Well yeah, every skill would have a different MP cost or TP cost. What I'm trying to do is this

Damage Formula = ((a.atk-b.def)*a.skillMpCost)

Something like that. That way I can just use that formula as a universal formula rather than inputting a unique formula for each skill.

It is easier to just input +10 but what if I have like 300 skills?
Then what script are you using to create that "universal formula"?
Because by default there is no universal formula, each skill has its own unique damage formula and you still need to enter that formula into every skills field.
Then what script are you using to create that "universal formula"?
Because by default there is no universal formula, each skill has its own unique damage formula and you still need to enter that formula into every skills field.
Copy and paste the formula into each skill formula then just manually enter an MP cost.

It's better than entering an MP cost and flat value for formula everytime.

What I'm saying is this really:

Let's say skill 1 has an MP cost of 10
Let's say skill 2 has an MP cost of 100

Formula for both skills is:

10 + a.level
100 + a.level

When it would be easier to just copy and paste this formula for both of them instead:

MP_Cost + a.level

It works even if you have a skill later on that uses 1000 MP or have your MP costs modified so that as you use less MP, your skill damage goes down etc etc. (Not sure how dynamic the default engine is regarding MP costs updates)
Code:
this.item().mpCost + a.level

Original thread: https://forums.rpgmakerweb.com/threads/using-mp-cost-in-skill-formula.105903/