I'm trying to create a state using Yanfly's Buffs and States Core, and I need to create a script for the notetag but I don't know how to do it. The state in question is "Staggered"- when applied it sets the restriction that the character cannot move AND causes them to take double damage (the extra damage is handled through damage formula currently which checks for the state, but if someone knows how to handle that in the state itself I'd be grateful).
What I want is for the state to apply to them for one turn and to persist UNTIL their next turn (giving enemies the ability to exploit the extra damage), then for it to be removed at the START of that turn so the character can act again. I don't think it's difficult to achieve, the plug-in even has a "Custom Turn Start" notetag to call a script, I just couldn't figure it out myself. If anyone could help me with this I'd really appreciate it. Thank you!
What I want is for the state to apply to them for one turn and to persist UNTIL their next turn (giving enemies the ability to exploit the extra damage), then for it to be removed at the START of that turn so the character can act again. I don't think it's difficult to achieve, the plug-in even has a "Custom Turn Start" notetag to call a script, I just couldn't figure it out myself. If anyone could help me with this I'd really appreciate it. Thank you!