Briidge restrict

Okay so i made a bridge in a town here's the problem, you are only suppose to get up and down the bridge via stairs however that isn't the case, I and go up and down the bridge from the bridge and the floor tile next to it


21.jpg22.jpg


From the bridge, i decided to make it a jump event, so that it wouldn't look weird, but i don't know what to do with the floor tile!24.jpg


25.jpg.24.jpg


I was thinking of somehow manipulating the passage (4 dir) within the event but i didn't see it within a set route or anything, so what should i do if i make it a region restrict then the path to the bridge wouldn't be accessible. how do i do this? I mean how do i make it so that the player cant go up the brige from the floor tile?


23.jpg
there are several ways to do this, but all have their restrictions.


Changing the directional passability in the regular parts of the tileset will result in that change for all tiles - which means you'll need that tile twice in your tileset, with the different passability settings for the different positions.


A better solution is to use the ceiling tiles of A4. Those tiles are preprogrammed to simulate a 2-level-dungeon, and the bridge would be the second level that can only be accessed by a ladder or staircase. However, that requires the use of a tile formatted as an autotile, I don't know if one like that exists.


It is possible to block that by event, exactly the same event you used to make it look as a jump - but that would require the event to be onsame as character, player touch, and forcing different move routes depending on player facing. can be done, but will look strange as all movement along that tile is automated.


last solution is to use a script/plugin to handle this. There are a few such scripts for ace that use region codes to force different passabilities on the player, but I don't know if something similiar has been written for MV yet.
Here's what you do. First make a blank event at the foot of the stairs and set it to player touch and below player so that will activate when the player steps on it. On the first page make a command to turn on two switches. On the second page have it exactly like the first page only it appear when the second switch is on and it will turn off the two switches from the first page. 


Now make a event that's pass setting is set to Same As Player. Have it only appear when the switch from the other event is on. Now when the player steps on the first event the switch will turn on and the second event will stop them from moving off the bridge and will turn off when you step on the event again.
Alright, made a fluid working eventing system for this. First, make a parallel event that marks the player's "X" coordinate into a variable. Now determine the X of the problem area on the bridge. Put your event there. On page 1, set up 2 conditional branches and make priority same as characters, so they can't pass. First: IF player X variable = Whatever X coordinate is for the event, activate Self Switch A. and IF player X variable = the X of the row to the left of the event, activate self switch B. A and B are both going to be set up the same, just with different numbers. conditional: IF player X= same coordinate as event, nothing, ELSE, turn off Self switch A. Do the same with B with player X of the space to the left. Lastly, make sure Pages 2/3 are BELOW characters. I'll put up a picture below.


But basically, this means if the player is below, above, on, or to the left of the bridge event, it's passable. Once they're not in one of those two columns, it's not. Since you have a stump on the top, that's not an issue. Hope this helps. (In my mockup, bridge was on X=8. Remember, page 1 is SAME as characters, 2/3 are BELOW) ((And beautiful maps, by the way. Nice work!))


bridge.png
o thanks guys sorry for the late reply the internet was down yesterday

Original thread: https://forums.rpgmakerweb.com/threads/briidge-restrict.61120/