I am trying to have a battle system with four main parameters (Like Strength or Luck). When the character equips a certain weapon, it selects which of the four parameters it uses for attack (in conjunction to raising stats and changing the attack command to a unique skill). I want the parameters which are referenced for damage mitigation to be selected by the armor. It's also important for there to be room to allow certain skill types and magic to bypass this and use other parameters. I was thinking states or traits might allow for this. Can anyone give me advice or know what I can do? I feel so close to getting it right...
Is there a way to base what parameter damage is mitigated against in reference to what armor, trait, or state a character has?
RPG Maker MZ Supportbasically anything.
the damage formula for the skills is nothing other than an eval of javascript code, and any javascript code can be used in that line - including if/then conditions and complex mathematics.
and even if the formula you want is too complex, you can simply place that formula as a function into a plugin and call that function in the damage formula.
The only requirement is that it needs to be written as a mathematical code resulting in a number from javascript.
you'll have to describe your system in more details before we can determine what formulae are to be coded for this.
the damage formula for the skills is nothing other than an eval of javascript code, and any javascript code can be used in that line - including if/then conditions and complex mathematics.
and even if the formula you want is too complex, you can simply place that formula as a function into a plugin and call that function in the damage formula.
The only requirement is that it needs to be written as a mathematical code resulting in a number from javascript.
you'll have to describe your system in more details before we can determine what formulae are to be coded for this.
The issue is that the offensive is where the formula starts, and why this gets overly complicated. Is there a way to have weapons and armor increase a variable? If so, I have it figured out I think, but I can't figure out how to do that either lol.
Like Andar said, the damage formula is just a javascript eval. If you have some basic programming knowledge, you can make your own function in a plugin and have it decide what paramaters to use based on equips. If you could go a little more in-depth about what you want to do with the formulas, I can write some example code for you to use or expand on