Can I make an event impassable to another event but passable to me ?

First of all, i am using yanfly core engine. Now the question :
I try to make a hole on the floor event that can with [Tileset B]. When my character step on it, it transfer me to another location. Problem is, that hole i am using isn't passable even though I set it at below character. That's why i check the through checkbox. Now because of that, the enemy chasing me can go through the hole. I want to make the enemy to dodge the hole. Any suggestion ?
do you also happen to have yanfly region restriction? with that you can setup regions that block events but not player and vise versa.
(i tend to put them infront of doors cus i hate when NPC blocks a doorway)
edit: region restriction its part of the free bundle
WOW ! Thank you so much ! You're not just solving my problem, but you just make my future project a lot easier to build !
do you also happen to have yanfly region restriction? with that you can setup regions that block events but not player and vise versa.
(i tend to put them infront of doors cus i hate when NPC blocks a doorway)
edit: region restriction its part of the free bundl
that hole i am using isn't passable even though I set it at below character.
below character with a tileset does NOT mean that the tile becomes passable, it means that the passability of the tile that is used for the graphic will become priority.

If the tile itself is passable in the tileset, then that event will be passable. If not then not.

The usual solution is to make the hole part of the map, and use a passable tile (for example a ladder) as part of the event graphic. That would automatically work like you want, blocking other events but allowing the player to enter without any script use.
events can be used for same or below, easy control for passability,
region restriction mentioned Tiamat-86 might work nicely, but it will
ALWAYS restricted, and not temporarly! but if you want to toggle
it ON and OFF, I Suggest to use (in combination with RegionRestriction
the plugin [RED_setRegionID] because it gives you more control, and
you can disable, enable restriction when needed.

example:
a path is blocked but open in sight, but noone can enter (page 1)
if you have switch, you can remove this as a blank page on 2 with
the switch condition to make is passable. or change the ID of
the region from 20 to 21 or from 20 to 25 depending on the restriction,
switch, loot, etc etc.

you can play around with it, but in combination with YEP_RegionRestriction,
you have total control how things works 🙂

Original thread: https://forums.rpgmakerweb.com/threads/can-i-make-an-event-impassable-to-another-event-but-passable-to-me.140639/