[XP] Having slip damage be an element so some enemies can take less damage from it?

Slip damage tends to deal damage based on a percent of an enemy's health, which is fine for normal enemies, but generally that makes it punch above its weight against bosses. Is there a script that attaches an elemental type to slip damage so I can have some enemies resist it?
Go to Game_Battler 3 and go near the bottom where it says "Application of Slip Damage Effects"

This is how I did the bleed state for my game which checks on their resistance to the physical element
Ruby:
#Bleed State
    if self.state?(19)
      @slip = 10
      @slip /= @pdef
      @slip *= self.element_rate(1) / 100.0
      self.damage += Integer(@slip)
    end

My use of slip effs is a bit more advanced. if you're using the default XP Slip damage formula, I'd be best to probably just check to see which state it is, then take self.damage and multiply it by the self.element_rate(x) with x being the iD of the element you want to check. As shown in my code, you would divide that by 100 to get the %.

Original thread: https://forums.rpgmakerweb.com/threads/xp-having-slip-damage-be-an-element-so-some-enemies-can-take-less-damage-from-it.151391/