Making chasing mobs

Hi everyone !

I’m new to programming on RPG Maker.

I use RPG Maker MZ and on my game I want to do something in particular but I don’t know how to do it.

In summary, my character enters a room, the mobs (the dolls) are there but do not move (so are safe). The door to the following of the game is locked so the character must find a key. I would like when the character finds the key in the chest, that the mobs start moving and chasing him. If they touch the character it puts a game over. And the event would end when the character comes to the door and opens it.

Does anyone know how I could please do?

1739207758320.png
Well, the most basic way would be giving the dolls a second event page with a switch as condition that has an autonomous moveroute with approach, and an event touch trigger that activates a game over event command. Turn on that switch whenever they should be moving.
1739212005695.png

And the first page is obviously just the doll sprite with no event commands.

Now if you want line of sight, and the player being able to lose them, that would likely go into plugin territory and you'd need to clarify what you want more specifically.

Original thread: https://forums.rpgmakerweb.com/threads/making-chasing-mobs.175333/