I'm making a game on RPG Maker MV and use Yanfly Plugins. I wanted to make null element states. If you don't know what they are: if the state is active, then for one hit of that element, no damage is done to you, and afterwards, the state goes away. Is anyone able to help me by giving me the code required to make such a state?
Thanks
Like in Final Fantasy 10 with the NulBlaze Effects?
I'm not sure if this helps as I'm quite new to this but I think I may have gotten it to work.
Place this in the state note box.
Just to let you know. where it says " var fire = 2; " that's where my fire element is set.
and " var stateid = 19; is where my NulFlame is set in my states.
You'll have to change it to match your project. Hopefully this helps.
<Custom Respond Effect>
// Get the fire element ID.
var fire = 2;
// Check if fire damage is dealt.
if (this.item().damage.elementId === fire) {
// Get the NulFlame status effect ID.
var stateId = 19;
// Remove the status effect from target.
target.removeState(stateId);
}
</Custom Respond Effect>