Calculations

Calculations
This page is just here as a resource for anyone who is interested.

Damage
damage = (wepmult*((4 * pristat) + secstat) * (watt / 100))+1 maxdmg = round(damage)+1 mindmg = round(damage*0.4)+1

Defense
eqdef = (ehe_def + ech_def + enk_def + efg_def + esc_def); pdef = round((dex/3)+(eqdef/2));

Damage Taken
d = obj_mon_001.dmg; maxd = ((1/(pdef))*(d*d)); mind = (maxd*.4); dmgbreak = (round(random_range(mind,maxd)))+1; Ripped from actual code.