I've been trying to create an element immunity status effect via status effect. To do this, I've created a status bonus that reduces all attack attribute bonuses in -100. The issue here is that I don't want enemies that already have an element resistance lower than 100 to absorb those elements, but just be immune to them.
In other words, I want to set the attack attribute bonuses to 0, not decrease them by -100.
For example, let's say I had an enemy that takes x0.5 damage from fire element and takes x1.5 damage from ice element. With this buff, I want both to do x0 damage, not x-0.5 and x0.5 respectively to this enemy.