About damage formulas

Most of us, if not everyone, knows that the damage formulas can be based on actors ( a ), enemies ( b ), and variables ( v ). Does everyone know how to make a damage formula based on other things like, for example, the skill's own mp cost (I know the mp cost is fixed but what if it's equipped with gears with mp cost changed?), the skill type id, the element id (which means dark element, in default, has the biggest damage), and other things?

Sorry for my confusing statement. 😀
Look at Game_Action.


a.current_action is the Game_Action currently being executed, and contains the item or skill being used (so you can retrieve properties of the skill through it).
Thanks. I got it now.
 
For those curious guys having the same problem as I did, here's what I got (based on my examples):

Code:
# For MP Costa.current_action.item.mp_cost# For Skill Type IDa.current_action.item.stype_id# For Element IDa.current_action.item.damage.element_id
Of course, if you put the above into the formula box of a skill, you'll have attributes of the skill. If you put it into the formula box of an item, it will have the item properties instead.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/about-damage-formulas.21820/