RPG Maker Forums

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 :
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 :
1583253905213.png

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top