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?
Change battle text on the fly
RPG Maker XP SupportFrom the Help File:
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.
This method is called in Sprite_Battler:
Code:
# Damage
if @battler.damage_pop
damage(@battler.damage, @battler.critical)
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/