I have a new problem that I know has occurred to other users: the damage my 4 heroes do when they hit is 0. How can I fix it?
0 damages.
RPG Maker XP SupportHey there,
The default damge formula can be a bit confusing in the manual, but generally the expected damage is calculated from two factors (ignoring elemental effectiveness, critical and guard modifiers and variance):
base value = attackers ATK - targets PDEF / 2
amplification factor = 1 + attackers STR / 20
expected damage = base value * amplification factor
This means that in order to do any damage with regular attacks, your attackers ATK has to be more than half the targets PDEF. Without bonuses from states your equipped weapon needs to provide at least 351 ATK here.
STR only aplifies the base damage, increasing the factor by 1 for every 20 points.
For skills the formula is similar. DEX, INT and AGI are treated like STR, MDEF is treated like PDEF and Power is added to the portion of the attackers ATK. (All stats are reduced to the portion specified in the skill for damage calculation of course)
I can't really help with details right now unfortunately, buit if you don't mind digging through the scripts and want to change this formula, you should find the code for the damage calculation in the script "Game_Battler 3", in the methods "attack_effect" and "skill_effect" respectively.
The default damge formula can be a bit confusing in the manual, but generally the expected damage is calculated from two factors (ignoring elemental effectiveness, critical and guard modifiers and variance):
base value = attackers ATK - targets PDEF / 2
amplification factor = 1 + attackers STR / 20
expected damage = base value * amplification factor
This means that in order to do any damage with regular attacks, your attackers ATK has to be more than half the targets PDEF. Without bonuses from states your equipped weapon needs to provide at least 351 ATK here.
STR only aplifies the base damage, increasing the factor by 1 for every 20 points.
For skills the formula is similar. DEX, INT and AGI are treated like STR, MDEF is treated like PDEF and Power is added to the portion of the attackers ATK. (All stats are reduced to the portion specified in the skill for damage calculation of course)
I can't really help with details right now unfortunately, buit if you don't mind digging through the scripts and want to change this formula, you should find the code for the damage calculation in the script "Game_Battler 3", in the methods "attack_effect" and "skill_effect" respectively.
I have solved, thank you so much!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/0-damages.119404/