Back at it again with a new problem(Box Problem)

SO now im having another box problem... It moves and closes, how do I make it not move Here is my script because the picture won't upload.

Fix Direction is checked
then the script is
If: Closed is on
Set Movement Route: This Event(wait)
Direction FIx is off
Move up
Wait 3 Frames
Move Right
Wait 3 Frames
Move Left
Control Self Switch: A=On
End
there is a reason why we ask for screenshots: text descriptions are usually missing details.

I suggest you make a quick event for a treasure chest, then open that event in the editor and see how the event handles that behaviour.

other than that you'll have to give us better descriptions on what is happening, and what you want to happen instead.
I'm not entirely sure what this is supposed to do, honestly.

If the game is started fresh, no switches will ever be on, unless you turn them on from another event. In this event, you have a (presumably) closed chest, which opens if the 'closed' switch is on. I assume this part of the code works right, because your problem is that it keeps happening, and I'd say it does that because you're never turning the switch off.

You don't need a switch to turn on to start the movement of the box opening, unless it isn't happening via player interaction. Simply activating the event by talking to it as the player can do all that you're doing in the event commands there to open it.

◆Set Movement Route:Player (Wait)
: :◇SE:Chest2 (90, 100, 0)
: :◇Turn Left
: :◇Wait:15 frames
: :◇Turn Right
: :◇Wait:15 frames
: :◇Turn Down
◆Control Self Switch:A = ON

The main thing here is that you're turning a self switch on, but then not mentioning what you're doing with it. The point of the self switch is that it's supposed to activate a second event page wherein the chest no longer opens, but says it's empty, or closes, or whatever else.

So click the 'new event page' button, set the requirements on the left to require the self switch to be on, set the image to the already opened chest, direct fix, and change the event command to be a message about the box already being opened, or whatever else you want it to do.

Once the self switch is on, the first page should never happen again, unless you turn the self switch back off again.
@Andar
@ramza
The box is going from open to closed so i tried it backwards and the box closes like it should it just moves.
I'll post a picture using imgur since it doesn't want to upload
Imgur post
if you need a video of what it does i can make one to send you
You're putting in move right, left etc. It's supposed to be 'turn' not move.
Spoiler: Quote of your post
You're putting in move right, left etc. It's supposed to be 'turn' not move.
OH I didn't even notice that
Does it work now?
Spoiler: Quote of your post
You're putting in move right, left etc. It's supposed to be 'turn' not move.
IT DOES

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/back-at-it-again-with-a-new-problem-box-problem.130176/