So, in my RPG Maker project I have common events set to execute when a player interacts with certain warps that involve exiting doors (ex: walking out of a house). What I want to do is get the effect of the door closing behind the player, and to do that I need a plugin that can "select" the event the player is standing on with a plugin call. So, if I set a movement route to "This Event", it should execute it on the event the player was standing on when the plugin call was executed.
Select event at players position?
JS Plugin RequestsYou should be able to do that without plugins/scripts. In Move Route, (unless it's different in MV) you should be able to select which event you want to affect from a drop down menu.
Ok, but the event is in a different map.
So you are leaving a map, the new map loads up and you want a door to close on a previous map? Sorry, just not understanding what the issue is since the door on the previous map will close anyways.
No, if I'm leaving a map (ex: inside of a house), and going to the other map (ex: outside of the house), I want the door of the house I entered to close behind the player.
Okay, here:
As you can see, this is a Parallel Process event. I placed this inside a house. For the door event into the house, place a "Fadeout Screen" between the "Play SE" and the "Transfer Player". The Erase Event will prevent the Parallel Process from running more than once, but it will continue to work every time you enter the house.
It might be worthwhile to continue to search for a script, but in the meantime, at least there is this.
As you can see, this is a Parallel Process event. I placed this inside a house. For the door event into the house, place a "Fadeout Screen" between the "Play SE" and the "Transfer Player". The Erase Event will prevent the Parallel Process from running more than once, but it will continue to work every time you enter the house.
It might be worthwhile to continue to search for a script, but in the meantime, at least there is this.
don't use parallel processes - simply add the closing animation to the existing door event. Everything else would just create a lot of lag.
The closing animation move route needs to be before the transfer command, so you'll need to get a bit tricky with either transparency or hiding the player under something else before transfering, but that parallel process would not only create lag, it's moveroutes would also be aborted by the transfer command to a new map.
The closing animation move route needs to be before the transfer command, so you'll need to get a bit tricky with either transparency or hiding the player under something else before transfering, but that parallel process would not only create lag, it's moveroutes would also be aborted by the transfer command to a new map.
The way I understood it, he wanted the door to open, the player to transfer to the new map, and the door on the new map to close behind him, which is exactly what my event does.
If he wants the door to open, the player to transfer (or "disapper"), the door to close and then the player transfer to a new map, then that's easier, doesn't use Parallel Process and is different from what I thought he wanted.
I understand Parallel Process does eat up some game process and can create lag if there are a lot of processes.
If he wants the door to open, the player to transfer (or "disapper"), the door to close and then the player transfer to a new map, then that's easier, doesn't use Parallel Process and is different from what I thought he wanted.
I understand Parallel Process does eat up some game process and can create lag if there are a lot of processes.
Original thread: https://forums.rpgmakerweb.com/threads/select-event-at-players-position.62583/