Change battle text on the fly

I have a very basic piece of code to make a regen effect. Basically in the slip damage method of Game Battler 3 I have If state = regen (self.hp += damage). Basically just doing what poison does only in reverse. Functionally it works perfectly. The only issue is that during battle, despite the character getting healed after each action, the display flashes a white number as if the character is getting damaged. Which could lead to confusion for players. So is there any way I can change this text to green, or if that's not possible, remove it entirely and leave Regen as a subtle effect?
From the Help File:
class RPG::Sprite

damage(value, critical)

If value is a positive number, the amount of normal damage will be displayed in white. If it is a negative number, the amount of recovery will be displayed in green with no negative sign. If value is text, it will be displayed in white, as is.
This method is called in Sprite_Battler:
Code:
      # Damage
      if @battler.damage_pop
        damage(@battler.damage, @battler.critical)
I'm not sure why your damage is positive for a regen status to begin with though...I'd look into why that is first.
I'm not sure why your damage is positive for a regen status to begin with though...I'd look into why that is first.
If I wasn't clear, the regen status is functionally working perfectly. It heals as it's intended to. It's only that the display doesn't indicate that's what it is doing. I've managed to fix it now, however. The issue is that the display was being generated as soon as the damage formula was constructed. So by making it negative to begin with (which also means splitting it off from the poison and other damaging slip effects I have) it displays properly.
What I meant by my comment was that, in RM terms, negative damage = heals. So I was confused why your regen was doing positive damage as you mentioned your code was self.hp += damage. Seems you fixed that design though.

Original thread: https://forums.rpgmakerweb.com/threads/change-battle-text-on-the-fly.151352/