Blocking Enemy

Hello Makers,

I'd like to implement kind of spell, which blocks the way for random moving enemys. Something like the wizard is drawing a pentagram on the ground and undead enemys cannot cross the tile.

I have no idea how to start. Is it possible doing this with scripting? Or do I need a plugin? Thankful for any hints.
maybe condition the movement to regionID = 0?
alter regionID with spell?
I guess you mean for this to happen on the map (not a battle)?

If so, you could probably use the following two plugins as a combination:

Hikitsune-Red's Change Region ID
Yanfly's Region Restrictions

General Idea:
1. Yanfly's - Define a Region ID to be impassible by events (i.e. enemies).
2. Red's - With the spell, set a tile to become that Region ID
Yes, I want to happen this on the map, not in battle.

I'm gonna try what you suggested. Thanks for the hint.

Original thread: https://forums.rpgmakerweb.com/threads/blocking-enemy.88122/