Greetings, it has been quite a while since I have last posted on a forum.
Anyway, here's the issue. I've made this conditional damage formula in the "Skills" tab of the "Database" window,
here is the formula code:
"healVar = Math.floor((Math.random() * 100) + 10); hitVar = (healVar/-1); if(Math.random() > 0.5){a.gainHp(healVar); $gameMessage.add(healVar+" hp restored!");} else {a.gainHp(hitVar); $gameMessage.add(healVar+" hp lost!");}"
The code is a random self heal or self inflicted move to the user.
The formula functions fine; however, when it gets to the battle logs it displays "Harold took no damage!"
I used the "$gameMessage.add()" method to display the ideal text (picture below). I'm not sure how to change the battle logs to fix this, any help would be much appreciated.

cheers,
-JayMythos
Anyway, here's the issue. I've made this conditional damage formula in the "Skills" tab of the "Database" window,
here is the formula code:
"healVar = Math.floor((Math.random() * 100) + 10); hitVar = (healVar/-1); if(Math.random() > 0.5){a.gainHp(healVar); $gameMessage.add(healVar+" hp restored!");} else {a.gainHp(hitVar); $gameMessage.add(healVar+" hp lost!");}"
The code is a random self heal or self inflicted move to the user.
The formula functions fine; however, when it gets to the battle logs it displays "Harold took no damage!"
I used the "$gameMessage.add()" method to display the ideal text (picture below). I'm not sure how to change the battle logs to fix this, any help would be much appreciated.

cheers,
-JayMythos