After watching Yanfly's video on recreating FF9's Freeze I thought I would try making a change so that, rather than kill the target when fire damage is dealt to a target under Freeze, the Freeze state would simply end. I also did this for a "Burn" status, where Burn ends if it is hit by Ice or Water damage. This is necessary to do via damage, because some states (like burning) do continual Fire damage, so I want the fire damage tick to be able to cancel Freeze.
My script looks as thus for Freeze,
<Custom Respond Effect>
// Get the fire element ID.
var fire = 3;
// Check if fire damage is dealt. if (this.item().damage.elementId === fire)
{
// Get the Freeze status effect ID. var stateId = 28;
// Remove the status effect from target.
target.removeState(28);
</Custom Respond Effect>
.....but the game is crashing when a physical attack is dealt against a target affected by the debuff.
What am I doing wrong?
My script looks as thus for Freeze,
<Custom Respond Effect>
// Get the fire element ID.
var fire = 3;
// Check if fire damage is dealt. if (this.item().damage.elementId === fire)
{
// Get the Freeze status effect ID. var stateId = 28;
// Remove the status effect from target.
target.removeState(28);
</Custom Respond Effect>
.....but the game is crashing when a physical attack is dealt against a target affected by the debuff.
What am I doing wrong?