Hey all, thanks for your time in advance. Hoping one of you guys might know whats going on.
summary: i am working on implementing weapon skill levels. for example, if you have a dagger and use your basic attack with it, it will run a common event that puts experience towards a variable dedicated to your 1-hand pierce level. lets assume that 1h pierce level variable is v[55].
the problem: my attack formula:
(a.atk + a.level + 4) - ((b.def + b.level) * 0.75) will function normally as intended, however;
(a.atk + a.level + 4 + v[55]) - ((b.def + b.level) * 0.75) will not function at all if v[55] = 0. if v[55] = 0, the attack will do no damage to the target. however, once v[55] = 1 or higher, then the formula functions as intended.
my question: why does the formula behave that way when adding a 0 is introduced? is this a bug?
my solution is to just start all skill levels at 1, but the fact i dont understand why this is happening bugs me.
my plugins: all of visuMZ_1's, including battlecore. ive already poked around in the formula and i dont know js well enough to determine what to change, if that is whats happening. I have the damage style in the settings set to manual as well.
Thanks again!
summary: i am working on implementing weapon skill levels. for example, if you have a dagger and use your basic attack with it, it will run a common event that puts experience towards a variable dedicated to your 1-hand pierce level. lets assume that 1h pierce level variable is v[55].
the problem: my attack formula:
(a.atk + a.level + 4) - ((b.def + b.level) * 0.75) will function normally as intended, however;
(a.atk + a.level + 4 + v[55]) - ((b.def + b.level) * 0.75) will not function at all if v[55] = 0. if v[55] = 0, the attack will do no damage to the target. however, once v[55] = 1 or higher, then the formula functions as intended.
my question: why does the formula behave that way when adding a 0 is introduced? is this a bug?
my solution is to just start all skill levels at 1, but the fact i dont understand why this is happening bugs me.
my plugins: all of visuMZ_1's, including battlecore. ive already poked around in the formula and i dont know js well enough to determine what to change, if that is whats happening. I have the damage style in the settings set to manual as well.
Thanks again!