States and action patterns help

Hello, I was just starting my project and am new to RPG Maker MV, and I've been struggling with these two things for a while now. There might be an easy solution to these issues that I overlooked.
As for the states, I've made a state called staggered where you become immobile for 1 turn, and being hit will always send you out of it, the problem is that it never goes away until you are hit. I've set it to go away after 1 turn but it just doesn't.
The other problem is with action patterns, I wanted an enemy to always use a certain move on turn 1, and then using that move and another move randomly every turn afterward. I've tried messing around with them but I've concluded that I don't yet understand the variables, so I was wondering how you would set up something like what I described.

Thank you in advance! (=
I've made a state called staggered where you become immobile for 1 turn, and being hit will always send you out of it, the problem is that it never goes away until you are hit. I've set it to go away after 1 turn but it just doesn't.
The other problem is with action patterns,
You'll need to post your code if you want other people to troubleshoot it. It could be a simple mistake.
Did you set the auto removal timing to "action end" by mistake?

You have to set it to "turn end", otherwise it will only expire after 1 action, which, if you can't move, you can't take actions, so it will stay indefinitely.
I had it on action end because I had tried turn end earlier and it just made the state do nothing, but then I realized after reading your comment I should've just set it to 2 turns and now it works, thanks!
Did you set the auto removal timing to "action end" by mistake?

You have to set it to "turn end", otherwise it will only expire after 1 action, which, if you can't move, you can't take actions, so it will stay indefinitely.
You'll need to post your code if you want other people to troubleshoot it. It could be a simple mistake.
I figured out the problem with the state, but my problem with the action patterns is that I have no idea what I'm doing, and don't know how it works. I just wanna know how to make an enemy use a specific attack turn 1 without using battle events, as that prevents you from outspeeding.
@Misk-ivus , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.

@Misk-ivus , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.
Sorry, didn't know you could do that.
I figured out the problem with the state, but my problem with the action patterns is that I have no idea what I'm doing, and don't know how it works.
1 - You can mouse over all of the options on that screen and there are explanatory tooltips.

2 - You can open the help file instructions and read the detailed explanation.

3 - You can post a screenshot, as AquaEcho requested above.

If you want an enemy to be able to use a skill on turn 1, you put turn 1. Then if you want it never again, you can either make that skill add a state which seals the skill, or you can put an improbable number of turns in the second box, like 99. That doesn't technically make it impossible, but close enough.
1 - You can mouse over all of the options on that screen and there are explanatory tooltips.

2 - You can open the help file instructions and read the detailed explanation.

3 - You can post a screenshot, as AquaEcho requested above.

If you want an enemy to be able to use a skill on turn 1, you put turn 1. Then if you want it never again, you can either make that skill add a state which seals the skill, or you can put an improbable number of turns in the second box, like 99. That doesn't technically make it impossible, but close enough.
I got it working, thanks!
1 - You can mouse over all of the options on that screen and there are explanatory tooltips.

2 - You can open the help file instructions and read the detailed explanation.

3 - You can post a screenshot, as AquaEcho requested above.

If you want an enemy to be able to use a skill on turn 1, you put turn 1. Then if you want it never again, you can either make that skill add a state which seals the skill, or you can put an improbable number of turns in the second box, like 99. That doesn't technically make it impossible, but close enough.
Or set the span to "Battle" and then it'll only happen once.
Or set the span to "Battle" and then it'll only happen once.
That sounds like something in the troop events, not a setting in the action patterns.
That sounds like something in the troop events, not a setting in the action patterns.
Ah, yeah, I misread the initial question.
Ah, yeah, I misread the initial question.
That's okay, it's been so long since I used action patterns (as opposed to an AI plugin) that I had to go check 😛

Original thread: https://forums.rpgmakerweb.com/threads/states-and-action-patterns-help.159296/