I am writing a script that needs to run every x minutes and will then add an event to the map up until their are y events added. I've got the part that adds the event put I'm trying to figure out which function to override. Since its adding events to the map, I was thinking of running it in the $gameMap.update function. I've tried looking around for advise on this, but I haven't been able to find anything. Any recommendations would be appreciated.
Looping/updating
Learning JavascriptIn order to provide advice, how familiar with scripting are you? Do you know what a function alias is?
You could alias the Game_Map update function as you suggested. This runs once per frame while the player is on the map, so you could set up a variable to track the frame count and then do something every X frames.
Or you can use a Parallel event.
You could alias the Game_Map update function as you suggested. This runs once per frame while the player is on the map, so you could set up a variable to track the frame count and then do something every X frames.
Or you can use a Parallel event.
Original thread: https://forums.rpgmakerweb.com/threads/looping-updating.111556/