How can I edit the built-in scripts of the RGSS?

I was trying to edit the damage color in the RPG::Sprite script, following another thread from here,
but they don't specify how to do it. The script doesn't show up in the script editor.
I own the Steam version of RPG Maker XP.
Neither the Sprite class nor the RPG::Sprite class have color methods like any of the windows.
This means you gotta change the font color by assigning a Color directly.

Ruby:
self.bitmap.font.color = Color.new(R, G, B, A)

Replace RGBA with values between 0 and 255.
A stands for alpha meaning transparency or traslucid and is optional.
Colors are supposed to be fully visible by default, i.e. the value is equal to 255.

There's an alternative as well.

Ruby:
self.bitmap.font.color.set(R, G, B, A)
My problem is finding the files, it doesn't appear on any script editor.
Sorry for any misunderstanding.
This scriplet based on the original implementation will allow you to quickly change those colors.

Ruby:
# * Custom Sprite Damage Colors XP * #
#   2024-03-03

# Color Format: [Red, Green, Blue, Alpha]
# - Min. & Max. Values: 0 & 255
# - Alpha is optional.

module RPG
  class Sprite
    DAMAGE_COLOR_BACKDROP = [0, 0, 0]
    DAMAGE_COLOR_NORMAL   = [255, 255, 255]
    DAMAGE_COLOR_HEALING  = [176, 255, 144]
    DAMAGE_COLOR_CRITICAL = [0, 0, 0]
    def damage(value, critical)
      dispose_damage
      if value.is_a?(Numeric)
        damage_string = value.abs.to_s
      else
        damage_string = value.to_s
      end
      bitmap = Bitmap.new(160, 48)
      font = bitmap.font
      font.name = "Arial Black"
      font.size = 32
      font.color.set(*DAMAGE_COLOR_BACKDROP)
      bitmap.draw_text(-1, 12-1, 160, 36, damage_string, 1)
      bitmap.draw_text(+1, 12-1, 160, 36, damage_string, 1)
      bitmap.draw_text(-1, 12+1, 160, 36, damage_string, 1)
      bitmap.draw_text(+1, 12+1, 160, 36, damage_string, 1)
      if value.is_a?(Numeric) and value < 0
        font.color.set(*DAMAGE_COLOR_HEALING)
      else
        font.color.set(*DAMAGE_COLOR_NORMAL)
      end
      bitmap.draw_text(0, 12, 160, 36, damage_string, 1)
      if critical
        font.size = 20
        font.color.set(*DAMAGE_COLOR_CRITICAL)
        bitmap.draw_text(-1, -1, 160, 20, "CRITICAL", 1)
        bitmap.draw_text(+1, -1, 160, 20, "CRITICAL", 1)
        bitmap.draw_text(-1, +1, 160, 20, "CRITICAL", 1)
        bitmap.draw_text(+1, +1, 160, 20, "CRITICAL", 1)
        bitmap.font.color.set(255, 255, 255)
        bitmap.draw_text(0, 0, 160, 20, "CRITICAL", 1)
      end
      @_damage_sprite = ::Sprite.new(self.viewport)
      @_damage_sprite.bitmap = bitmap
      @_damage_sprite.ox = 80
      @_damage_sprite.oy = 20
      @_damage_sprite.x = self.x
      @_damage_sprite.y = self.y - self.oy / 2
      @_damage_sprite.z = 3000
      @_damage_duration = 40
    end
  end
end
I was having trouble understanding how this works, but I think I finally got it.
So when I add this script in my project it changes how the class Sprite, deep in the RPG module, works, right?
I put the script there and it worked fine, thank you!
It replaces the default implementation of RPG::Sprite's damage method for sure.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-edit-the-built-in-scripts-of-the-rgss.166368/