10-11-2009, 11:38 AM
Ok, now there is a bit of confusion here.
The default RMXP code does not make any average when calculating elemental effect. It simply takes the lowest highest value among the element rates a character has against the elements of the attack/skill. That is, if a skill has Fire and Wind, and a character has A against Fire (200) and D against Wind (50) the result will be 50 200, i.e. damage halved doubled.
From what you say I take it in your BS the algorithm is different. You should post the elements_correct method used in your BS. Search for "elements_correct" with ctrl+shift+f, find the last defined method with that name and post it here.
The default RMXP code does not make any average when calculating elemental effect. It simply takes the lowest highest value among the element rates a character has against the elements of the attack/skill. That is, if a skill has Fire and Wind, and a character has A against Fire (200) and D against Wind (50) the result will be 50 200, i.e. damage halved doubled.
From what you say I take it in your BS the algorithm is different. You should post the elements_correct method used in your BS. Search for "elements_correct" with ctrl+shift+f, find the last defined method with that name and post it here.