is there a way to be able to enter a map transfer event form only one direction? i want to only enter from the "west" never any other direction.
Event map transfer
RPG Maker MZ SupportNormally you'd put something above and below so the player couldn't access the events from the other directions.
If you want to allow them to do that, you could wrap the Transfer Player command in a conditional branch - If Player is facing Right, then transfer.
However, what should happen if the player walks onto the events from above or below, then turns to face right? If you want them to transfer in that case, you'd need to make your events Parallel Process trigger, and the event commands would have to do a Wait 10 Frames (as no wait could cause the game to lag), then a series of conditional branches (or one, using a script) to check if the player is facing right AND the player's X and Y position matched the event's X and Y position.
Just easier to put a log or a shrub on those tiles. And that IS the only way to FORCE them to enter from that direction.
If you want to allow them to do that, you could wrap the Transfer Player command in a conditional branch - If Player is facing Right, then transfer.
However, what should happen if the player walks onto the events from above or below, then turns to face right? If you want them to transfer in that case, you'd need to make your events Parallel Process trigger, and the event commands would have to do a Wait 10 Frames (as no wait could cause the game to lag), then a series of conditional branches (or one, using a script) to check if the player is facing right AND the player's X and Y position matched the event's X and Y position.
Just easier to put a log or a shrub on those tiles. And that IS the only way to FORCE them to enter from that direction.
Aside from what Shaz mentioned...
...if you're not opposed to using a plugin...
I created a region plugin a while back that helps with this exact scenario.
(it was actually the main reason I made such a plugin... then it expanded into being much more)
See plugin here:
[RMMV-MZ] Region System by CT_Bolt
Use map note-tags to actions upon moving into a region
ct-bolt.itch.io
I made 1 for MV with event notetag which only works on edges.
however, TSR_TransferTrigger can use 1 event, and set the length.
it walks outside the map before transfer happens.
this is one of the sweetest plugin out there and does it really nicely 🙂
however, TSR_TransferTrigger can use 1 event, and set the length.
it walks outside the map before transfer happens.
this is one of the sweetest plugin out there and does it really nicely 🙂
I would suggest using a conditional branch event command in those events.
That could look like this:
Edit: Another solution
If events are on below charackter and if they have as graphic a map tile, than the event will use the passability of that map tile including directional passability.
Those tileset tiles do not need a graphic on the tileset, just set to passable and directional passability to left and right or only left.
That could look like this:
Code:
◆If:Player is facing Right
◆Comment:Insert your Teleport Eventcode here.
◆
:Else
◆Set Movement Route:Player (Skip)
: :◇1 Step Backward
◆
:End
Edit: Another solution
If events are on below charackter and if they have as graphic a map tile, than the event will use the passability of that map tile including directional passability.
Those tileset tiles do not need a graphic on the tileset, just set to passable and directional passability to left and right or only left.
Thank you all for the help! I will test each one and see what works best for my situation!
Original thread: https://forums.rpgmakerweb.com/threads/event-map-transfer.151142/