Player resistance

What I am seeing is that resistance from armor doesn’t stack as I want it to. For instance if I have chest armor that adds fire state 80% and then a helm that does 75%, I am seeing that my overall resistance is 75% only. Is there a script that can stack them: 20%+25%=45% or something similar to how it does in Diablo 2. Thanks!
What I am seeing is that resistance from armor doesn’t stack as I want it to. For instance if I have chest armor that adds fire state 80% and then a helm that does 75%, I am seeing that my overall resistance is 75% only
i cant suggest a script offhand, but the traits should be multiplicative. if its 75% and 80%, the final rate should be 60%, not 75% unless youve accidentally added additional traits.
Ok let me double check, thanks
***edit**: it worked, issue with the armor I was equipping
Hello, as @Robro33 said, element rate is multiplicative, if you actually want an additive version instead, I wrote this small scriptlet to help you:
Ruby:
module TIM
  module AdditiveElements
    MIN_RATE = 0 #put nil to not have a minimal resistance (and receive heals)
  end #AdditiveElements
end #TIM

class Game_BattlerBase
  #---------------------------------------------------------------------------
  # overwrite method: element_rate -> element rates are now summed by following
  # this:
  # 90% resitance is considered -10% fire damage taken
  # 150% resistance is considred +50% damage taken
  # having both would be +40% damage taken (instead of +35% with default system)
  #---------------------------------------------------------------------------
  def element_rate(id)
    code = FEATURE_ELEMENT_RATE
    v = features_with_id(code, id).inject(1.0) {|r, ft| r += (ft.value - 1)}
    [v, TIM::AdditiveElements::MIN_RATE].max if TIM::AdditiveElements::MIN_RATE
  end
end #Game_BattlerBase
Hello, as @Robro33 said, element rate is multiplicative, if you actually want an additive version instead, I wrote this small scriptlet to help you:
Ruby:
module TIM
  module AdditiveElements
    MIN_RATE = 0 #put nil to not have a minimal resistance (and receive heals)
  end #AdditiveElements
end #TIM

class Game_BattlerBase
  #---------------------------------------------------------------------------
  # overwrite method: element_rate -> element rates are now summed by following
  # this:
  # 90% resitance is considered -10% fire damage taken
  # 150% resistance is considred +50% damage taken
  # having both would be +40% damage taken (instead of +35% with default system)
  #---------------------------------------------------------------------------
  def element_rate(id)
    code = FEATURE_ELEMENT_RATE
    v = features_with_id(code, id).inject(1.0) {|r, ft| r += (ft.value - 1)}
    [v, TIM::AdditiveElements::MIN_RATE].max if TIM::AdditiveElements::MIN_RATE
  end
end #Game_BattlerBase
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/player-resistance.182025/