Recover formula

Hi everyone, I'm wondering how to enter into the damage formula box that would get the effect of heal health and magic.
I tried b.hp = b.mhp; b.mp = b.mmp
but it doesn't work. I mean yes it does work but only the health shows up above the character. The mp is recovered as well but I don't see the numbers show up.
I'm sure it's a syntax problem, but I don't know what goes into this to make it two functions.

Ideas?
Are we talking about damage popups, or default text?
If you have popups, we need to know which script you're using beforehand.
Sorry didn't think the script mattered since there is no problem with the script. Putting damage formulas into the box gives damage popups as per normal, but it's just that if you do more than one, as I am trying to do, then the second doesn't show up.
I have many scripts, I believe it's yanfly battle core that is controlling this. But I also have Victor Sant animated battlers and actor battlers.
Well, you need to manually call the create_popup method in situations like these.
A bit of coding should address the issue. First, add this to your script list.
Spoiler
Code:
#==============================================================================
# ** Game_Battler
#------------------------------------------------------------------------------
#  A battler class with methods for sprites and actions added. This class
# is used as a super class of the Game_Actor class and Game_Enemy class.
#==============================================================================
class Game_Battler < Game_BattlerBase
  #--------------------------------------------------------------------------
  # * New Method: YEA HP Damage
  #--------------------------------------------------------------------------
  def damage_hp(value)
    value = value.round.to_i
    perform_damage_effect
    text = sprintf(YEA::BATTLE::POPUP_SETTINGS[:hp_dmg], value.group)
    create_popup(text, "HP_DMG")
    self.hp = [self.hp - value, 0].max
  end
  #--------------------------------------------------------------------------
  # * New Method: YEA MP Damage
  #--------------------------------------------------------------------------
  def damage_mp(value)
    value = value.round.to_i
    text = sprintf(YEA::BATTLE::POPUP_SETTINGS[:mp_dmg], value.group)
    create_popup(text, "MP_DMG")
    self.mp = [self.mp - value, 0].max
  end
  #--------------------------------------------------------------------------
  # * New Method: YEA TP Damage
  #--------------------------------------------------------------------------
  def damage_tp(value)
    value = value.round.to_i
    text = sprintf(YEA::BATTLE::POPUP_SETTINGS[:tp_dmg], value.group)
    create_popup(text, "TP_DMG")
    self.tp = [self.tp - value, 0].max
  end
  #--------------------------------------------------------------------------
  # * New Method: YEA HP Heal
  #--------------------------------------------------------------------------
  def heal_hp(value)
    value = value.round.to_i
    Sound.play_recovery
    text = sprintf(YEA::BATTLE::POPUP_SETTINGS[:hp_heal], value.group)
    create_popup(text, "HP_HEAL")
    self.hp = [self.hp + value, self.mhp].min
  end
  #--------------------------------------------------------------------------
  # * New Method: YEA MP Heal
  #--------------------------------------------------------------------------
  def heal_mp(value)
    value = value.round.to_i
    Sound.play_recovery
    text = sprintf(YEA::BATTLE::POPUP_SETTINGS[:mp_heal], value.group)
    create_popup(text, "MP_HEAL")
    self.mp = [self.mp + value, self.mmp].min
  end
  #--------------------------------------------------------------------------
  # * New Method: YEA TP Heal
  #--------------------------------------------------------------------------
  def heal_tp(value)
    value = value.round.to_i
    Sound.play_recovery
    text = sprintf(YEA::BATTLE::POPUP_SETTINGS[:tp_heal], value.group)
    create_popup(text, "TP_HEAL")
    self.tp = [self.tp + value, self.max_tp].min
  end
end
Then use this damage formula instead: b.heal_mp(b.mmp) ; b.mhp
Thanks. Working well. I also needed to use formulas for 25% and first tried /4 but it didn't work until I used *0.25

Original thread: https://forums.rpgmakerweb.com/threads/recover-formula.79237/