Any way on how to disable damage numbers for player?

Started by Sin86, October 17, 2025, 11:48:29 pm

Previous topic - Next topic

Sin86

I know that we have the \nodmg for events but I was wondering how I can disable the damage numbers for the player. Not just the damage numbers but also the "defend" message when you defend.

KK20

In Part 2 of BABS, around line 5000 is the method def request_damage_sprite. You see the logic at the start is
    def request_damage_sprite(char, damage = nil)
      # stop if no damage sprites flag
      return if char.no_dmg_sprites
You can add your own logic right above that line. If you don't want it to show at all for the entirety of the game, you can just leave it as return. But if you want to control it with some switch being turned on, that'd look something like
    def request_damage_sprite(char, damage = nil)
      return if $game_switches[1]
      # stop if no damage sprites flag
      return if char.no_dmg_sprites
replacing the ID accordingly.

Note that this affects all battlers. If you're specifically targeting only the player, then do
    def request_damage_sprite(char, damage = nil)
      return if char.is_a?(Game_Player) && $game_switches[1]
      # stop if no damage sprites flag
      return if char.no_dmg_sprites

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Sin86