Hey all. I'm trying to set up yet another custom damage formula for one of the character skills.
What I want to do with this one is make it so that a normally weak attack will deal massive damage with every 5 uses. My plan is that so every time the skill is used, variable 10 goes up by 1, and when it's at 5, it deals the big damage and brings the variable back down to 0.
The weak damage is successfully being dealt, but for some reason, the big damage never comes around.
I have the formula set up like this:
if (v[10] === 5) {v[10] -= 5; a.mat * 25} else {v[10] += 1; a.mat * 2}
For testing purposes, I decided to make the skill run a common event that increases the variable, and then the big damage occurs, but through the common event, it occurs every 4 uses instead of 5. I want to increase the variable through the formula because I plan to make stored uses carry over to subsequent fights, potentially giving the chance for the player to start a boss fight with big damage, for example. Using a common event for this is an issue because, if the skill is the last one used in a fight, running the common event might not work fully as intended.
What I want to do with this one is make it so that a normally weak attack will deal massive damage with every 5 uses. My plan is that so every time the skill is used, variable 10 goes up by 1, and when it's at 5, it deals the big damage and brings the variable back down to 0.
The weak damage is successfully being dealt, but for some reason, the big damage never comes around.
I have the formula set up like this:
if (v[10] === 5) {v[10] -= 5; a.mat * 25} else {v[10] += 1; a.mat * 2}
For testing purposes, I decided to make the skill run a common event that increases the variable, and then the big damage occurs, but through the common event, it occurs every 4 uses instead of 5. I want to increase the variable through the formula because I plan to make stored uses carry over to subsequent fights, potentially giving the chance for the player to start a boss fight with big damage, for example. Using a common event for this is an issue because, if the skill is the last one used in a fight, running the common event might not work fully as intended.