RPG Maker Forums

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>

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top