Hello, I have a couple of questions about elemental rate
1) I have a item makes the target inmune to certain element, and I have a state makes the target vulnerable to all elements, but when both are together, the inmunity predominates, I want to make this stat nulifies this inmunity AND add a weakness to this element, is there a way to make that?
2) Is there a way to make an elemental ability ignores the elemental rate? I mean, it doesn't matter if you are inmune or resistant to this element, it will totally ignore the resistance, but it won't ignore the weakness to this rate.
Well, that's all, thanks a lot to anyone can answer me this
1) it depends on how you defined the state and the effect. Usually all element rates multiply with each other, and if the immunity is a multiplication with zero, then it doesn't matter how much you multiply zero with, it stays zero.
You'll need to factor in the mathematics to reach that effect.
2) again, it depends on what you do - but the shortest way would be to pretend to the player it's the same element, while making it a different element where no rates exist. After all, if you don't want to use the resistences, then there is no need to use the element effect...
1) You'd need to change how the rate is calculated in the scripts since as Andar said, by default the rates are multiplied... so having a 0% there will then always result to 0% final rate since 0 times X = 0
That is mathematically impossible, because 0% multiplied with 200% is still 0%.
If, for example, the "immunity-rate" would be 10%, then the result of 10% * 200% would be a remaining rate of 20% damage.
That is why I said you have to apply mathematics to your rates - all rates from everywhere in the sequence (actor, equipment, target) are multiplied together, you simply cannot declare "if one rate X exists, then I want to ignore all other rates".
There are ways to check for something in the skill formulae, but that applies to specific skills - a general result like your wishes is not practicable using the damage formula.
You would have to request a script to change the entire behaviour of the elemental rate - and that is not a trivial thing to be done on the side.
If you know something about programming yourself, it would probably faster to write such a script specific to your project.
If you can't script yourself, you might think about paying someone (commissions) to write such a script.
A free request like this might take some time, unless you're really lucky and one of the scripter likes such an idea...