Hello,
I found different posts about that subject but I still can't find a way to do it. I'm lacking of knowledge.
As the title says, I'd like to store the damage I deal in combat into a variable.
That variable must increment after each fight
Fight 1 = 150 dmg dealt
Fight 2 = 100 dmg dealt => overal dmg = 250 (that's what i want to store)
I tried doing this code in the damage formula :
with common event :
But when i check my variable value I have unprobable values.
Can anyone help me about this please?
Thanks 🙂
NOTE : I'm Using YEP_damage core
I found different posts about that subject but I still can't find a way to do it. I'm lacking of knowledge.
As the title says, I'd like to store the damage I deal in combat into a variable.
That variable must increment after each fight
Fight 1 = 150 dmg dealt
Fight 2 = 100 dmg dealt => overal dmg = 250 (that's what i want to store)
I tried doing this code in the damage formula :
Code:
r=a.atk * 4 - b.def * 2; if (b.isEnemy) {$gameVariables.setValue(20, r);}; if (b.isActor) {$gameVariables.setValue(19, r);}; r
with common event :
But when i check my variable value I have unprobable values.
Can anyone help me about this please?
Thanks 🙂
NOTE : I'm Using YEP_damage core