So in the game I've been developing, I want Weapons to have a Unique Value (Power), that is used to calculate Damage, alongside the Character's Parameters. Essentially, I want to be able to make a formula like: ( (a.atk / b.def) * Power )
Giving Weapons "Power" Instead of ATK or M.ATK Changes
RPG Maker MV SupportWill 'Power' vary over time? If so, how do you want it to happen?
A simple way of doing this would be to assign a value to a variable and use that variable in the formula as your multiplier. Should you want that variable to increase you can do it however would fit in with your game.
In Ace that would be
((a.atk/b.def) * v[n])
where n = the variable id.
However, perhaps in Javascript variables are designated differently.
A simple way of doing this would be to assign a value to a variable and use that variable in the formula as your multiplier. Should you want that variable to increase you can do it however would fit in with your game.
In Ace that would be
((a.atk/b.def) * v[n])
where n = the variable id.
However, perhaps in Javascript variables are designated differently.
The idea is that each Weapon would have a set Power and whenever the Character equips a different weapon, the power would change. So a Wooden Sword would have the value of 20 but an Iron Sword would have the value of 50, for example.
If you don't want to use a plugin, and you are not using the stat LUK for anything much, then you could re-purpose it, call it PWR for the benefit of your players, and just add your 20 or 50 straight in there on the weapon tab itself. Then your formula would read
((a.atk/b.def) * a.luk)
You would still have to use LUK in the formula so that the engine can read which stat you are referring to.
However, if you don't want to re-purpose an existing stat, then you will need to search for a plugin that gives you additional stats.
((a.atk/b.def) * a.luk)
You would still have to use LUK in the formula so that the engine can read which stat you are referring to.
However, if you don't want to re-purpose an existing stat, then you will need to search for a plugin that gives you additional stats.
I agree Kes' ways are probably the easiest, or perhaps using note-tags to help give your weapons new stats without plugins (although that'll make your formulae a lot more convoluted).
Here's a similar thread with some recommended plugins, although there may be some more since 2016.
Here's a similar thread with some recommended plugins, although there may be some more since 2016.
Thank you both, I am currently going to use the Luck Stat as Power, as Kes suggested, but I will definitely look into adding additional Stats into the game as well.
Original thread: https://forums.rpgmakerweb.com/threads/giving-weapons-power-instead-of-atk-or-m-atk-changes.96292/