Passability for specific events only

I have chickens and cows walking around on the map. I have a passageway that I only want chickens to be able to go through, because the cows are too big.
One thing I tried is to have a "below characters" event right in front of the passageway that would get the ID of any other events standing on it, and if the ID matched one of the chickens, then it would "open" the passageway by flipping a switch and then close it again after the chicken went through. The problem is that I would need two of these, one for each side of the passageway, and there may be a chicken on one side and a cow on the other.

I feel like there's some simple solution that I'm not thinking of. If anyone has any ideas, I'd really appreciate it. Thanks.
Try Region Passability Rules by @TheoAllen . I love it! Set the region ID to restrict your cows.
Try Region Passability Rules by @TheoAllen . I love it! Set the region ID to restrict your cows.
I appreciate the mention, but the person asked in the RMMV support forum.
Oh, darn! I didn't notice that. Sorry.

Edit: You could try Region Restrictions (YEP) which is part of @Yanfly 's free starter bundle. You would need to set your chickens to 'through' so they weren't blocked. I've never used it, but the description does seem that it would fit your needs.
You could try Region Restrictions (YEP) which is part of @Yanfly 's free starter bundle. You would need to set your chickens to 'through' so they weren't blocked. I've never used it, but the description does seem that it would fit your needs.

Thanks, but I can't have my chickens set to through because I still need them to collide with other events. Oh, and don't feel bad about recommending an MZ plugin, I actually downloaded it and started to try to use it before I realized it was for MZ, so we both missed it, haha.

I actually figured out a solution, albeit a slightly convoluted one. But it works perfectly, so I'll mention it here in case someone else can use it. I have my passageway event set to "through" and "parallel". I use Get Location Info > Event ID to check if there's another event occupying the same tile, and if so, I get that event's direction, and then instantly reset that event's location to one tile back. But I use a condition to check if the event's ID number is less than 20 (all my chickens are < 20) in which case they are allowed to pass through. And there's no flicker or anything.

With a slight alteration, this method can also work as a one-way door, allowing any event to move through it from one direction but not another.

EDIT: After playing with this a while, I now see that this method can also be used as an event-on-event collision checker. In other words, Event #1 can trigger Event #2 when it collides with it. But I'm still not sure if I can make them both trigger each other at the same time. Still, pretty handy.

EDIT-EDIT: Oops, I meant that to be an edit, not a new post. My bad.

Wayne has a region restriction extension that you can toggle for specific events ( WAY_YEP_RegionRestrictions )

Original thread: https://forums.rpgmakerweb.com/threads/passability-for-specific-events-only.136997/