Random spawning of mobs?

I would like to set up mode where when the player enters the map some mobs get spawned in a random location tagged with a "R" type field. Can anyone point me to a sample script to do this?
Most event spawners will allow you to do this. Galv's one is free. You would use region id
Most event spawners will allow you to do this. Galv's one is free. You would use region id
Thanks, I'll give that a look!
Ok I found I already had the yanfly event spawner and it seems to do what I want, but I don't know where I put the calls to spawn the mobs. Any ideas?
Ok I found I already had the yanfly event spawner and it seems to do what I want, but I don't know where I put the calls to spawn the mobs. Any ideas?
It depends on when you want them to spawn, but you would put it in a blank event on the map or a common event.
Ok I found I already had the yanfly event spawner and it seems to do what I want, but I don't know where I put the calls to spawn the mobs. Any ideas?

I'm using GALV's event spawner, but I believe it works similar to Yanfly's.

I have a parallel event running in the background in a blank event (set to under the player / action button / no image) and this event runs every time the player enters the map. I just have the event tucked away in an unused part of my map where the player will never go.

I also have this event running on a very basic timer so that it will spawn an event then WAIT a random amount of seconds, then spawn another event until all the events are spawned.

Once all events are spawned I have a self switch turn on and the second page of the event runs only once every 60 frames and checks if it needs to go back to the first page and spawn a new event. The reason why I just have it run once every 60 frames is to not take up too many resources.
I want them to spawn when the player enters the map.
I'm using GALV's event spawner, but I believe it works similar to Yanfly's.

I have a parallel event running in the background in a blank event (set to under the player / action button / no image) and this event runs every time the player enters the map. I just have the event tucked away in an unused part of my map where the player will never go.

I also have this event running on a very basic timer so that it will spawn an event then WAIT a random amount of seconds, then spawn another event until all the events are spawned.

Once all events are spawned I have a self switch turn on and the second page of the event runs only once every 60 frames and checks if it needs to go back to the first page and spawn a new event. The reason why I just have it run once every 60 frames is to not take up too many resources.
Thanks for the suggestion! Seems to be working now....

Original thread: https://forums.rpgmakerweb.com/threads/random-spawning-of-mobs.159644/