So, here is my problem. I'm making an item called a Pub Dart, which I want to do damage equal to the thrower's ATK plus their agility. I'm sorry is this is obvious but I can't find much help about the algortithms. In a similar fashion, I want other skills and items that use the other stats (for instance I want guns and ranged weapons to use agility. I have set it so guns add agility instead of attack, and give you a shot ability that uses agility, but is there any way to make the normal attacks of the gun use agility?)
Misunderstanding the algorithm
RPG Maker MV SupportSo, here is my problem. I'm making an item called a Pub Dart, which I want to do damage equal to the thrower's ATK plus their agility. I'm sorry is this is obvious but I can't find much help about the algortithms. In a similar fashion, I want other skills and items that use the other stats (for instance I want guns and ranged weapons to use agility. I have set it so guns add agility instead of attack, and give you a shot ability that uses agility, but is there any way to make the normal attacks of the gun use agility?)
Ho boy that damage formula is messed up. Anything times one is the same thing, so get rid of those.
MZ lets you change a weapons attack skill, so I assume you could do the same in MV. Just copy the attack skill and add a part for AGI
You could do something like a.atk* 4 + a.agl * 2 - b.def
MZ lets you change a weapons attack skill, so I assume you could do the same in MV. Just copy the attack skill and add a part for AGI
You could do something like a.atk* 4 + a.agl * 2 - b.def
If you hover our mouse over the damage formula, you will see a tooltip that tells you about other variables that are available:
That is because the algorithm are pure mathematics, nothing else.
and one problem in your formula is that you have no number between two mathematical operations * +
besides the already mentioned fact that any multiplication by one is no change at all.
You gotta be careful about assuming things because you can be wrong, as is the case here. That option is not in MV and requires a plugin.
@lordocean Surprised no one has mentioned this yet, but your formula is using agl, when Agility is supposed to be agi.
My bad. Thanks for catching that.
These should help.
victorenginescripts.wordpress.com
www.yanfly.moe
These should help.
Replace Actions
Plugin Download This plugin allows you to setup actions that replaces another actions used during battles. This can be used to make weapons with different skills than the basic attack, or make acti…
Weapon Unleash (YEP) - Yanfly.moe Wiki
There's also the WeaponSkill plugin that is present by default in a new MV project.
incredibly helpful, thanks guys. just to clarify, I want the stats to be exactly equal to their values and do not want to multiply them... but I didn't realise you could just write (a.agi + a.atk) so thank you very much guys and that plugin is exactly what I need.
Original thread: https://forums.rpgmakerweb.com/threads/misunderstanding-the-algorithm.165299/