Im using the visustella core plugins for my project. I wanted to use the FF9 damage style so I could just put a power level integer into the damage formula and save time that way. But the party deals way too much damage whenever its a physical attack skill.
When starting, to try to get a sense of things, I copied ff9 for my characters stats at lvl 1. (FF9 doesnt have a defense stat on level up, its all provided by armor, and it doesnt have a luck stat. However, spirit functions similarly to luck, so I just substituted that. Besides, the damage styles arent one to one formula conversions.)
Then, I copied a low level enemy's stats (trick sparrow) and general Ai. Then, I went and set the general attack skill to be skill power 1. And I also implemented a basic thunder spell, because the spells have a skill power value I can copy.
However basic attacks from my party (with no equipment) were dealing 800 damage, while the basic enemy was doing like 15. Now, 15 damage is low, but within expectations for lvl 1. at lvl 1 vivi only has 60 hp, after all. with equipment (a +12 to strength, copied from ff9's equipment stats) basic attacks were dealing like 1,800 damage.
Expected range of basic attack damage at lvl 1 is like. 70 for physically strong characters with a weapon, and half that for mage characters. And rpg maker handling equipment as flat stat bonuses might contribute to the problem, but it still exists even without anything equipped.
For reference, a thunder spell is skill power 14. and when using a skill copying it (again, just a 14 in the damage formula box, with element set to electric), it was dealing like 100-120 damage, which is within expectations for lvl 1. I made a copy of the thunder spell and just changed the skill type to physical and it was dealing 600-800 damage. so it feels like its a problem specific to party-side physical attack skills.
So there seems to be an extra multiplier in the ff9 damage style code that specifically applies to physical attack skills, and I dont know how to parse the damage style formula in the plugin settings well enough to tell where that is. If anyone can tell why this is happening I'd really appreciate it.
Edit: the only point of difference i can see is the base damage declaration, where the str stat is added to the variable, which is then reduced by the armor (derived from the physical defense stat.) The relevant stat is also present in the bonus damage calculation, so I think the str stat is getting used twice here.
So lets take a physical skill with skill power 10 and a strength stat of 15. The base power becomes 25, the equivalent of a magic skill with base power 25. Then, the base damage subtracts the relevant defense stat, picks the higher between 1 or the result, then applies the bonus damage multiplier. The attackers stat also shows up in the damage multiplier formula.
So im gonna comment out that physical type extra stat bonus and see if it solves things
EDIT EDIT:
that definitely reduced the damage back down to more expected result ranges! regular attacks (skill strength 1) are hitting around 20-40 damage each. i wonder why that if statement was included, and if there's some sort of divider or mitigating operation to stop it from getting too strong that wasn't included.
When starting, to try to get a sense of things, I copied ff9 for my characters stats at lvl 1. (FF9 doesnt have a defense stat on level up, its all provided by armor, and it doesnt have a luck stat. However, spirit functions similarly to luck, so I just substituted that. Besides, the damage styles arent one to one formula conversions.)
Then, I copied a low level enemy's stats (trick sparrow) and general Ai. Then, I went and set the general attack skill to be skill power 1. And I also implemented a basic thunder spell, because the spells have a skill power value I can copy.
However basic attacks from my party (with no equipment) were dealing 800 damage, while the basic enemy was doing like 15. Now, 15 damage is low, but within expectations for lvl 1. at lvl 1 vivi only has 60 hp, after all. with equipment (a +12 to strength, copied from ff9's equipment stats) basic attacks were dealing like 1,800 damage.
Expected range of basic attack damage at lvl 1 is like. 70 for physically strong characters with a weapon, and half that for mage characters. And rpg maker handling equipment as flat stat bonuses might contribute to the problem, but it still exists even without anything equipped.
For reference, a thunder spell is skill power 14. and when using a skill copying it (again, just a 14 in the damage formula box, with element set to electric), it was dealing like 100-120 damage, which is within expectations for lvl 1. I made a copy of the thunder spell and just changed the skill type to physical and it was dealing 600-800 damage. so it feels like its a problem specific to party-side physical attack skills.
So there seems to be an extra multiplier in the ff9 damage style code that specifically applies to physical attack skills, and I dont know how to parse the damage style formula in the plugin settings well enough to tell where that is. If anyone can tell why this is happening I'd really appreciate it.
Code:
// the visustella damage style base formula code from the plugin setup
// Define Constants
const user = this.subject();
const target = arguments[0];
const item = this.item();
const a = this.subject();
const b = target;
const v = $gameVariables._data;
const sign = [3, 4].includes(item.damage.type) ? -1 : 1;
// Create Damage Constant
const power = Math.max(eval(item.damage.formula), 0);
if (this.isCertainHit()) {
return (isNaN(power) ? 0 : power) * sign;
}
// Declare Main Stats
let armor = this.isPhysical() ? b.def : b.mdf;
armor = this.applyArmorModifiers(b, armor);
let stat = 1;
if (this.isPhysical() && (this.isDamage() || this.isDrain())) {
stat = a.atk;
} else if (this.isMagical() && (this.isDamage() || this.isDrain())) {
stat = a.mat;
} else if (this.isPhysical() && this.isRecover()) {
stat = a.def;
} else if (this.isMagical() && this.isRecover()) {
stat = a.mdf;
}
// Declare Base Damage
let baseDamage = power;
if (this.isPhysical()) {
baseDamage += stat;
}
if (this.isDamage() || this.isDrain()) {
baseDamage -= armor;
baseDamage = Math.max(1, baseDamage);
}
// Declare Bonus Damage
let bonusDamage = stat + (((a.level || a.luk) + stat) / 8);
// Declare Final Damage
let value = baseDamage * bonusDamage * sign;
// Return Value
return isNaN(value) ? 0 : value;
Edit: the only point of difference i can see is the base damage declaration, where the str stat is added to the variable, which is then reduced by the armor (derived from the physical defense stat.) The relevant stat is also present in the bonus damage calculation, so I think the str stat is getting used twice here.
So lets take a physical skill with skill power 10 and a strength stat of 15. The base power becomes 25, the equivalent of a magic skill with base power 25. Then, the base damage subtracts the relevant defense stat, picks the higher between 1 or the result, then applies the bonus damage multiplier. The attackers stat also shows up in the damage multiplier formula.
So im gonna comment out that physical type extra stat bonus and see if it solves things
EDIT EDIT:
that definitely reduced the damage back down to more expected result ranges! regular attacks (skill strength 1) are hitting around 20-40 damage each. i wonder why that if statement was included, and if there's some sort of divider or mitigating operation to stop it from getting too strong that wasn't included.