Making it so a certain item makes you pass through impassable objects

Like kinda like legend of zelda where the red tonic lets you go through lava
Well, you can have an event occur when you use an object that uses a move route to set Player to "Through On"


(You would set up a common event and set it up in the Database as one of the Item's effects.)


I have no idea how you would turn it off.


But you would be walking EVRYWHERE, and I do not think you would be able to pick anything up.


So perhaps you could have another object that switches you back?


Or it could only work in certain areas? And you could switch back when leaving the map.
Alright what i was thinking was you know the purple liquid on the exterior title set i want my character to pass through it, but just pass through it so he can get to the dungeon then somehow switch this off when the temple has been beaten because this has to happen in the Temple too. Any suggestions 
You can use one of the scripts to link a common event to a region ID, then this event would always be executed when the player moves to a tile with that region ID.

This event could then check wether or not a "passing" item is owned or equipped and if not, do damage or force a move route back or whatever you want.

Original thread: https://forums.rpgmakerweb.com/threads/making-it-so-a-certain-item-makes-you-pass-through-impassable-objects.16375/