Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Sin86 on October 17, 2025, 11:48:29 pm

Title: Any way on how to disable damage numbers for player?
Post by: Sin86 on October 17, 2025, 11:48:29 pm
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.
Title: Re: Any way on how to disable damage numbers for player?
Post by: KK20 on October 18, 2025, 02:43:44 pm
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
Title: Re: Any way on how to disable damage numbers for player?
Post by: Sin86 on October 18, 2025, 05:31:40 pm
Thank you, it worked.