Walking Through SOME Walls

So I want my character to have a "ghost" ability that allows him to walk through CERTAIN walls.

Basically, if he's in his ghost state, he can walk through cracked walls and doors, but  not if he's in his regular state.

I THINK I need to make every passable wall an event, with one page for THROUGH if ghost state is on, and one that is not THROUGH if ghost state is off.

But I was wondering if there was a way to do this with terrain tags or region tags instead.

I'm thinking a common event of some kind that gets the location data when you're in ghost shape, and when trying to move up, it checks to see if the region above you is 5 (for example) and if so grants you the THROUGH status for 1 step. (Moves the player 1 step forward and then removes the through status).

Could also be used for "secret" passages like in FF5 or Ultima: Avatar.

Further, I'd like there to be a class feature that "detects" such things. (Like in  FF5 the thief class could see secret passages automatically). With using every passage as an event I could change the sprite while in ghost state, but I was wondering if there was a better way.
I wouldn't recommend events - too many of them will cause lag.


I have a Region Common Events script that will let you draw on those areas with regions, and when the player walks into it the common event will be called. At that point you can determine if they have the 'ghost' state, change THROUGH, move them through the wall and change THROUGH again. There are other similar scripts that may be more suitable to your needs.

Original thread: https://forums.rpgmakerweb.com/threads/walking-through-some-walls.50674/