I'm trying to make a system for resistances by element, not just mdef.
The game has the elements in the character sheet, and they are all 100% to start, I can have gear modify them, but not sure what they do.
What do they do and how do they function by default?
Is there a way to call those numbers from the damage calculation box of skills?
Thanks.
well the lower the number the less damage taken from said element, the higher the more damage taken (elemental rates) no need to add them into the formula for skills with defined elements
Well I was hoping I could disable the default way, and could call that number in the dmg box, because I would like them to work differently.
Is there a plugin for items having variables for stats, so I can make a system?
Would add to the variable on equip, but would take that value away when you change equipment.
Would also need a way to set NPC resistance levels.
How exactly are you trying to make them work?
Where lower level things are resisted at lower resist values, not just a flat % off all dmg of that element.
You touch a match for 5 dmg, completely resisted at 25 resist
you fall in lava for 5000 dmg, good luck.
Well it sounds like you want individual skills or effects to be effected completely differently. It's doable but you'd have to set up each skill manually with something like yanfly's damage control scripts .
The element rates are damage rate, which means damage done by a skill with that element (or a normal attack if the weapon has the element) is multiplied by all applied element rates.
An element rate lower than 100% is therefore a resistance, and element rate higher than 100% is a weakness to that element.
I don't see a script call for the element rate, if I can disable the way it works by default, then have a way to retrieve that number. I can make my own system, without having a ton of extra game variables taken up.
Is there a call to get that number?