VXAce State forces you to use a skill at turn end.

yo, i currently have a dilemma rn and that is my state won't force the user to use a skill at turn, is there any way i can fix this?
im using yanfly's lunatic objects script for this

1766222159339.png
Hum... Are you referring to this lunatic object script? If so, then the script is not made to be used with states.
Instead, you probably wanted to use lunatic states?
Regardless, your notetags don't seem to have the right syntax (follow the script description or link us to the script you are using).
Also note that yanfly's lunatic scripts are meant to serve as baselines for added scripts that add effects, I don't think they are meant to run code, unless you have an addon that does so.

To run your code, you might want to use battle events (maybe you can even find a common battle event script) or you can find another script that does this.
Assuming there's a base troop events plugin for VX Ace, I think it'd be easier to use that to get this effect – make the skill turn on a switch, which activates a base troop page that runs on Turn End and checks each actor in turn. If the actor is in the party and has the state afflicted, force the action. The benefit of this is that you can do the logic purely in event commands and don't need to worry about whether your script is correct.

I made this work like that in MV. I'm not 100% sure all the pieces can still fit together in VX Ace, but from what I've seen the engines are pretty similar, so it's possible.
Hum... Are you referring to this lunatic object script? If so, then the script is not made to be used with states.
Instead, you probably wanted to use lunatic states?
Regardless, your notetags don't seem to have the right syntax (follow the script description or link us to the script you are using).
Also note that yanfly's lunatic scripts are meant to serve as baselines for added scripts that add effects, I don't think they are meant to run code, unless you have an addon that does so.

To run your code, you might want to use battle events (maybe you can even find a common battle event script) or you can find another script that does this.
yeah, i just ended up using events inside battles instead lol

Original thread: https://forums.rpgmakerweb.com/threads/state-forces-you-to-use-a-skill-at-turn-end.181529/