- Joined
- Dec 28, 2015
- Messages
- 39
- Reaction score
- 20
- First Language
- English
- Primarily Uses
I made a damage formula that works just fine in the spreadsheet program I used to test it. It was very complex, though, so I downloaded and installed Yanfly's Damage Core to help make it a bit more manageable, since my project already uses all of the prerequisite plugins. I followed the instructions on how to set everything up, but my damage formula no longer works. When I set it up in RPG Maker MV, I ended up with my test player and test enemy doing zero damage every turn. I even tanked the enemy's attack up to 20, with my player's defense set to 2, and it still deals zero damage. The only thing that I can think of is that I made a mistake putting the damage formula in. Could somebody help look it over? Here's what I have...
<damage formula>
b.arm=(b.def-b.paramBase(3));
arm.var=(Math.randomInt(-b.arm,b.arm)*.10);
aluk.var=(Math.randomInt(0,a.luk)*.01);
bluk.var=(Math.randomInt(0,b.luk)*.01);
value=(a.atk + (.2 * a.agi) + aluk.var) / (b.def + b.arm + arm.var + bluk.var);
</damage formula>
<damage formula>
b.arm=(b.def-b.paramBase(3));
arm.var=(Math.randomInt(-b.arm,b.arm)*.10);
aluk.var=(Math.randomInt(0,a.luk)*.01);
bluk.var=(Math.randomInt(0,b.luk)*.01);
value=(a.atk + (.2 * a.agi) + aluk.var) / (b.def + b.arm + arm.var + bluk.var);
</damage formula>
