Change the z value of player to be below "Same as Character" event

The player in my game can "ride" vehicles (in reality the character graphic just changes to that of the character riding that vehicle) and the vehicle graphic is larger than 32x32 pixels, but no wider than 60 pixels. When the player is next to an event, the part of the vehicle that pokes into another tile (since again it is longer than 32 px) ends up displaying over the event graphic beside it. So imagine a car that pulls up to another character, and the front of the car goes over the character sprite next to it. Looks pretty terrible

So, I think if I could make it so that by default the player z value is below "Same as Character" events, the edge of the vehicle won't go over the event graphic but instead under it, which would look far better.

How would I go about doing this? How would I change the z value of the player, or of events? Thanks
why not make an invisible same of character next to it as a boundry which activate a switch
while riding that vehicle?

ofcourse, this is only 1 way to do it.

there might be something with regions. while vxa is almost the same of MV,
maybe you can try something in a parallel process (if exist in vxa)
if: "region = 15" of a scriptcall for it
scriptcall here that the player is blocked when in vehicle
end

thats the evented way.
why not make an invisible same of character next to it as a boundry which activate a switch
while riding that vehicle?

ofcourse, this is only 1 way to do it.

there might be something with regions. while vxa is almost the same of MV,
maybe you can try something in a parallel process (if exist in vxa)
if: "region = 15" of a scriptcall for it
scriptcall here that the player is blocked when in vehicle
end

thats the evented way.

When you do that, you cannot pass the tile below from above without doing some unnecessarily complex conditional branching.
Plus many events also move and it'd be more efficient to just change the z value instead of having two invisible events next to every event.
if those only counts for events, it can be an easy fix, make 2 pages (more if needed)

if your NOT in the vehicle, events are on normal, else it will be above

this can be done it 2 ways,
if vehicle switch = ON
events page switch goes above player
else
switch is OFF
end

if switch = OFF
events is on same as character
else
switch is ON
end

you just need to make a parallel when the player is in a verhicle to turn those switches ON/OFF.
else someone can make you script that does that for you.

if some tiles need to be above, than it would be harder, it can be the same way, but you might also a region
that block the boundry under it .

Original thread: https://forums.rpgmakerweb.com/threads/change-the-z-value-of-player-to-be-below-same-as-character-event.118782/