Move object to reveal secret passage below

Hey everyone,

I am a total beginner at RPG MV so I am most likely overlooking something simple. My goal is to have the player push an object out of the way to reveal a hole underneath it. That hole will transfer the player to a new map. You can see the hole with the ladder and the stone pillar (object to be pushed) next to it in this picture.

Image 1001.jpg


I have the events in place that get the boulder to move and to transfer the player. The problem is, I can't get the boulder to start on top of the hole because that tile in the editor is occupied by the transfer player event. I'm sure there something simple I'm overlooking here but I haven't seen anything online yet that shows me how to do this. Any help would be greatly appreciated.
It is possible to stack events on top of each other.
Put the boulder event out of the way somewhere.
Have a parallel process with a set move route command for that event. Use the script call option in that command (bottom right corner of the move menu).
Here is the awkward part - I know the script call in VXAce, but don't know if the syntax changes for this in MV. In Ace it would be
moveto(x,y)
You might have to play around with that "moveto" or it could be that someone who knows Javascript will read this and tell you what it should be.
Then have the Erase Event command. This means that each time the map is loaded, the boulder will move to the coordinates you have set in the script call.
I haven't used any previous versions of RPG Maker but in MV, no scripting required.
The event command is called "Set Event Location" on the 2nd tab of the event commands.
Spoiler: Screenshot
SetEventLocation.png
Be careful to consider two additional things:
  1. The event with the higher ID number is always drawn on top. So make sure that your "block" event has a higher ID than the "ladder" event or it will look strange
  2. What will happen if the player climbs back up the ladder. The block will be drawn over the hole when the map re-loads because it just takes the position from where you put it in the editor, it doesn't remember that the player already pushed it. So consider also moving the block to where the player already pushed it
This plugin can help you save event locations if this is something that you do often.

Thank you guys so much! Setting the coordinates of the event is exactly what I needed to get this to work.
Had the same issue. Glad I got all the Yanfly plugins. They are very helpful!

jeffersonspyplane, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/move-object-to-reveal-secret-passage-below.88489/