So uhh each time you use it on a enemy, it deals more damage to said enemy up to x times,
but when you stop using it, the damage resets
How would i be able to code that?
This thread was moved from RPG Maker MV Resources to RPG Maker MV Support.
okay here's an autistic idea-
make 3 variables: DMG_Increase (for damage increases and add it to the skill damage formula however you want) and Combo (for skill usage) and Old_Combo (we are updating this one for checks on continuous usage of the skill), set them all to 0
now, lets assume each usage of the skill adds up 10 damage, and caps out at 30
when you use the skill, it adds 10 to DMG_Increase and 1 to combo, and have an if statement:
If (DMG_Increase > 30) if yes, then DMG_increase = 30
every turn will have an if statement: if (Combo == Old_Combo) if yes, reset all 3 variables to 0, else it would do Combo = Old_Combo
i think that should do the trick!
Edit: changed the name to Old_Combo instead of the other way around cuz it was making weird emojis XDDD
Would it also reset if the actor attacked a different enemy?
Even with the same skill?