Help with event locations

I have this moving chair puzzle that I need help with. The player is supposed to move the chair towards a bookcase in order to grab something on top of it. Of course the chair can get stuck in corners so I wanted the event location to reset every time the player changed maps. My only problem was that I needed it to stay in place after the player got the item on top of the shelf.

My original solution was to make two seperate maps (One for where the event is in it's original spot, and one for when it's by the bookshelf) But I scrapped it because I thought that would be too impractical and I thought there might be a better way to tackle this problem, so does anyone have any ideas on how I could do this?
There are a number of plugins that save event locations between map changes. You can use one of those and just put it into your transfer player out of the map that if the chair isn't in the correct place you move it back via event commands.
The plugin solution might be the easiest. However, for a non-plugin solution, you can use a single autorun event that erases itself upon loading the map.
Using the "Erase Event" command will delete the event from the current map until it is loaded again. In this way, anything that is placed inside this event will be executed once, and will not be executed again until the player leaves and re-enters the map.

So, you need to track when the puzzle is complete right?
We can use a variable to track the quest:
"Quest Variable = 0, quest not started.
Quest Variable = 1, quest started
Quest Variable = 2, puzzle complete"

So if we use a variable, then on our autorun map do-once event, add this logic:
Code:
if Quest Variable => 2
Set event location (to puzzle solved location)
"
Else is not necessary since RPG maker, by defaults, puts events back in their original location, but just for parady in case of changes later, let's also tick the "else" box
Code:
Else
Set event location (to puzzle start location)
Remember, the else is not necessary, so if you want to simplify things, you can cut it. But it does give you the peace of mind that the event will always be at the right place as long as this quest has not been complete (or past this stage in the quest)

Edit:
Some bonus info I forgot:
So your do-once map event logic should look like this:
Code:
If Quest Variable => 2
  Set Event Location (solved location)
Else
  Set Event location (start location)
End
Erase Event
(Be sure to set it to autorun)

Additionally, this can be done with switches as well if you are not using a variable to track the quest progress.
Just consider the "Switch ON" position to be "solved".
The logic above is the same, just change the conditional to "If Quest Switch = ON"

I highly recommend using variables to track quests though, since a mess of switches used to track when puzzles are complete can get cumbersome in late stages of development.
I have this moving chair puzzle that I need help with. The player is supposed to move the chair towards a bookcase in order to grab something on top of it. Of course the chair can get stuck in corners so I wanted the event location to reset every time the player changed maps. My only problem was that I needed it to stay in place after the player got the item on top of the shelf.

My original solution was to make two seperate maps (One for where the event is in it's original spot, and one for when it's by the bookshelf) But I scrapped it because I thought that would be too impractical and I thought there might be a better way to tackle this problem, so does anyone have any ideas on how I could do this?

I'm not sure how you go about moving the chair around. But one way you could save its position after the player exits the map would be to save the X,Y coordinates of the Chair Event to variables and then use those to reposition the chair.

Control Variables : #1 Chair_X = Map X of Chair
Control Variables : #2 Chair_Y = Map Y of Chair

Then place an event on your map with the Trigger: Autorun:

Set Event Location : Chair, ({Chair_X}, {Chair_Y})
Erase Event
So that works, but the reason I didn't recommend that is because of this line here from the OP:

Of course the chair can get stuck in corners so I wanted the event location to reset every time the player changed maps.
If you are always saving the chair location and restoring it's previous locations on map transfer, then you also need to create logic to reset the chair location in the event it is placed in a spot that it is stuck in.
Additionally, more philisophically than logically, but it would be weird to have these inconsistent game rules of "the chair only resets position on map refresh if it is in these spots on the map."
Like, I understand why that would happen, and you would too, but it's just inconsistent logic.
Simple is best.
So that works, but the reason I didn't recommend that is because of this line here from the OP:


If you are always saving the chair location and restoring it's previous locations on map transfer, then you also need to create logic to reset the chair location in the event it is placed in a spot that it is stuck in.
Additionally, more philisophically than logically, but it would be weird to have these inconsistent game rules of "the chair only resets position on map refresh if it is in these spots on the map."
Like, I understand why that would happen, and you would too, but it's just inconsistent logic.
Simple is best.

Yeah, I was just throwing that out there in case the OP found it helpful. I'm not sure how applicable it is to what the OP is going for, since I'm not sure how they move the chair around. I figured they could finesse it some to work it in, if they wanted.
I move the chair by using the movement route "Move away from player" after the player interacts with it. I've used yanfly's plugin for the chair, but I can't seem to make the location change under the circumstances I listed in my original post. Hmm... Maybe I could throw in some excuse for when the chair moves back to it's original spot like "A ghost did it!" since I am making a horror game. I heard that work-arounds are a part of games often, so I guess I could just write in an excuse like that!
If the chair always resets whenever the player leaves the map and re-enter it, there is no reason to stress about writing a reason. In fact, by writing a reason, I'd argue you are just drawing attention to the fact it resets, where as before it would be more likely just accepted as "game reasons™"

Did you try the method I mentioned in my first post in this thread?

Original thread: https://forums.rpgmakerweb.com/threads/help-with-event-locations.160979/