Help me make a procedurally generated bridge

First things first, I'm going to show you some texts and images so you can better visualize what I need help with. Let's imagine your character faces a bridge, but the bridge ends abruptly, so there is no reason to continue, right?
Screenshot_2.png


Still, out of curiosity, you go to the abruptly ending bridge to check it out, and suddenly, another part of the bridge appears!
Screenshot_3.png


So you think: "Maybe if I walk even further, another bridge part will appear. " And as expected, it happens.
Screenshot_4.png


But when you give your next step, the first part of the bridge disappears.
Screenshot_5.png


However, when the character goes one step back, the first part appears again, though the last part disappears.
Screenshot_6.png


This is what I want. I want to make a bridge event that procedurally appears and disappears the further you go. I'm pretty sure you can do something like this using only the rpg maker tools (Without any scripts), but I can't comprehend how to do the event structure to make this work. Two or more minds works better than one, so any help is highly appreciated!
Screenshot_1.png
the entire bridge needs to be events using a bridge-tile (not a sprite). The bridge tile needs to be passable and have directional passability in one direction only.

all events priority below, player touch, and conditioned to different general switches each.
upon stepping on one of these events, it should disable the switches for the bridges farther away (making them vanish) but enable the switches for the two bridges next to it (making them appear)
thank you. I'll see if I can manage to do this.
the entire bridge needs to be events using a bridge-tile (not a sprite). The bridge tile needs to be passable and have directional passability in one direction only.

all events priority below, player touch, and conditioned to different general switches each.
upon stepping on one of these events, it should disable the switches for the bridges farther away (making them vanish) but enable the switches for the two bridges next to it (making them appear)
thank you. I'll see if I can manage to do this.
Yeah, I'm still having problems. I can't visualize how to create a series of events to make this bridge work. My main problem is: How will the event know the player activated another event.
Each event shouldn't have to know that another event was activated--even if that were the case, you should be able to translate everything through switches. Associating a bridge, for example, with Switch A, B, C, D, and having those respective events turning on and off those switches, should be the easiest way to accomplish this task, I think.

It seems like a simple puzzle to me! Let's say Bridge A turns on switch B (Switch A should naturally be ON). If B is ON then the second part of the bridge will be activated via an event page that is triggered when switch B is ON. When you step on B, it turns on A, B, and C, and the third bridge is activated the same way--but by the time you get to bridge C, then it serves another function, which is to turn off Switch A. I think this can all be accomplished with Event Pages--as Event Pages are read from the most latter to the most former; when the conditions for the latter pages are not met, then it reverts to the former pages.

Let me know if you need more help!
My main problem is: How will the event know the player activated another event.
it doesn't need to.
the other event that is activated controls this by the switches I menationed
Each event shouldn't have to know that another event was activated--even if that were the case, you should be able to translate everything through switches. Associating a bridge, for example, with Switch A, B, C, D, and having those respective events turning on and off those switches, should be the easiest way to accomplish this task, I think.

It seems like a simple puzzle to me! Let's say Bridge A turns on switch B (Switch A should naturally be ON). If B is ON then the second part of the bridge will be activated via an event page that is triggered when switch B is ON. When you step on B, it turns on A, B, and C, and the third bridge is activated the same way--but by the time you get to bridge C, then it serves another function, which is to turn off Switch A. I think this can all be accomplished with Event Pages--as Event Pages are read from the most latter to the most former; when the conditions for the latter pages are not met, then it reverts to the former pages.

Let me know if you need more help!
Wow! Thank you! It actually worked! Though, does that means I have to use an eff ton of switches to makes this work (Depending on the size of the bridge) ?
does that means I have to use an eff ton of switches to makes this work (Depending on the size of the bridge) ?
yes and no.

with the simple way, you would need that many switches.
an alternative way would be to use self-switches, but that will require you to use script commands to turn the self-switches as the event commands for self-switches are only for the event's own self-switches, they cannot be targeted on other events self-switches without scripting
There is an alternative to using lots of unique switches, but it will require you to be disciplined about using them.

Create e.g. 10-20 switches called TEMP 1, TEMP 2, etc. (Temp = temporary)
These switches are to be used when you need switches for a particular map only. The disciplined bit relates to being careful to make sure you turn them OFF when you are finished.
So in this instance, the transfer into the map turns OFF your TEMP switches (this shouldn't be necessary, but is an additional safety feature).
Use your TEMP switches for your bridge.
In the transfer event out of that map, turn all TEMP switches OFF. They are now available for you to reuse on another map to do whatever you want.
I can also see this being done with one parallel event and switch commands.
Have the parallel event check player location x & y.
Condition branch if player is at x & y then turn self switch on for events xyzabc.
else turn off.
It would be a long event depending on how many bridge events that are used and how far the player has to walk over the events.
There is an alternative to using lots of unique switches, but it will require you to be disciplined about using them.

Create e.g. 10-20 switches called TEMP 1, TEMP 2, etc. (Temp = temporary)
These switches are to be used when you need switches for a particular map only. The disciplined bit relates to being careful to make sure you turn them OFF when you are finished.
So in this instance, the transfer into the map turns OFF your TEMP switches (this shouldn't be necessary, but is an additional safety feature).
Use your TEMP switches for your bridge.
In the transfer event out of that map, turn all TEMP switches OFF. They are now available for you to reuse on another map to do whatever you want.
Yeah. I think this should be the best solution for me. I'm trying to avoid scripting as much as I can. Still, I'm not using a lot of switches anyway, since most story events in my game are moved with variables. So It shouldn't be a problem for me. Thanks for the help, everyone!
I'm trying to avoid scripting as much as I can.
every tool has its place.
If you check my posts I'm usually telling people to use eventing instead of calling for plugins and scripting. But that is because most of those people call for plugins without understanding what they are doing.
going the other way - avoiding all scripting everywhere - is as bad as calling for scripts and plugins for everything.

In some cases the scripts are the correct answer and trying to avoid them will come at a cost.
depending on the size of the bridge the decision to use temp switches, regular switches or self-switches has different advantages and disadvantages each.
For really long bridges that way the selfswitch/script function is still better.
every tool has its place.
If you check my posts I'm usually telling people to use eventing instead of calling for plugins and scripting. But that is because most of those people call for plugins without understanding what they are doing.
going the other way - avoiding all scripting everywhere - is as bad as calling for scripts and plugins for everything.

In some cases the scripts are the correct answer and trying to avoid them will come at a cost.
depending on the size of the bridge the decision to use temp switches, regular switches or self-switches has different advantages and disadvantages each.
For really long bridges that way the selfswitch/script function is still better.
I'm not a huge fan of plugins, honestly. I rather make a game using the tools the platform already gave me, thought sometimes I change the base code to suit more of my style.

Original thread: https://forums.rpgmakerweb.com/threads/help-me-make-a-procedurally-generated-bridge.138107/