Bridges!

Hey guys 🙂

I know how to make a bridge, i know how to make it so that i can go under it or over it no worries

by using the change tile set option:

the second tile set has the bridge tiles as star passability(above) instead of the O(below) on the first tile set. depending on player placement depends on tile swapped. via  minimal events

by using events:

an evented bridge with events on 'all sides' ,depending on where the player stands the event changes the bridge event to above or below, blocking or allowing passage, via switches.  keeping in mind the passability of objects underneath your bridge.  

My issue is:

every time you see someone show how to make a bridge it's on a map that contains nothing bar a bridge and your player, easy to tile swap and event with no consequences now what if my bridge is in a populated area? i want to travel on my bridge and see an npc travel under it or visa versa, i travel under as an npc travels over. There is a way is there not? 🙂

e.g:  i have an area shaped like a 6 i run around and over the bridge as i am being chased, i need npcs to go under as i go over and i will be back later to said bridge I know i could create the npc events to dissapear and reapear before and after, but not ideal 🙂

another issue is your party is  following you, some party members are still on the bridge as i go to run under it.

any help would be greatly appreciated >.<
it won't work with events set to random movement, but if you give them moveroutes, then it should be possible by combining the priority of the event and the tileswap with star passability to have the event either under or over the bridge tile - and since you set the movement you know before from which direction the event comes and if its over or under the bridge.
Not really using that method, as when you change tilesets, you're changing the map for the player AND events.


However, I wonder if Neon Black's Terrain script (which is really a region script, not terrain) might help here? I haven't looked at it closely, but it does allow you to go both under and over a bridge without changing the tileset.
thanks,  might be going that way i think🙂

and thanks 🙂

had a look at neons script  great for bridges amoung other great abilities still think the issue arrises in regard to npc passability at the time though

i wonder if i could get a script made up that sets npcs to transparent via a region id i suppose that would then create the prob of npcs going transparent when trying to go over aswell?

unless it is stated that if one region id is hit first it over rides the transparent id (the first bieng to go over) but i guess you'd then need another id to say ignore the first(over) to allow.... geez lol im confusing myself 😀

would it be possible via events? something like when this event is on region id 23 set transparent (and through) else not transparent? that way he could 'pass under'?

again thanks for any help >.<

here is my theory of how i may be able to do it ( i know the script isn't actually a script)

these are the conditional branches that change how the npc works around a bridge (page1) 

(page2)

and this is the bridge and regions in question

i'm going to guess that there is an easier way to use those regions to do what i want as i have 4 of them in use which would be alot of work for alot of npcs unless there only goal is to walk around and perhaps have a word or 2   😛
If I get time tomorrow, I'll check and see how Neon Black's script works. Even if we COULD get it working, you'd have the issue where the player is on top of the bridge on a certain tile, and the NPC is under the bridge on the same tile. But Neon Black's script would be a good starting point.
yeah true, didn't think of that..

thanks shaz >.<   🙂

Original thread: https://forums.rpgmakerweb.com/threads/bridges.21585/