I am trying to create a state whereby the actor who is affected by it is removed from the party when the state is removed. This should occur either when the state is forcibly removed, the actor dies or the battle ends. I am using Yanfly's Buffs & States Core and know that the code has to go in both the <Custom Remove Effect> section, the <Custom Leave Effect> and possibly the <Custom Victory Effect> section, but I can't work out what the script should be.
Does anyone know the JavaScript for doing this?
Does anyone know the JavaScript for doing this?