Random Events

Hi there,

I am wondering how one might go about creating an event that would trigger randomly within a certain period of the game.
Ideally, I’d like to have several groups of a random events with a handful of events each (one for each class, for example) that could pop up during specified scenes during the game.

I am sure this isn’t a simple thing to explain, but I am okay doing some tinkering on my own if someone could point me in the general direction

I am using the action ui, if that makes a difference.

Thanks!
https://forums.rpgmakerweb.com/index.php?threads/custom-random-encounter-event-spawner.54849/
Not too sure if this does exactly what you want.
Uhm... If I understand it right, an example would be:
7:50 a.m. standard scene (in front of school)
8:00 a.m.random class scene (??? lesson)
10:00 a.m. random class scene (??? lesson)
12:00 a.m. standard scene (lunch time)
(I'm not talking about the system time, it's just a storyline example)

If that's the case, the best way to do it is to call a common event each time you want to trigger a random event. Inside the common event, you get a random number based on which you later call the corresponding event.

Possible improvements:
-parameterize your common event to access to different groups of scenes (ex. Monday: there's always a lab experiment, but who will I happen to pair up with this time?)
-have a certain random scene more/less probable to occur if a certain variable is high/low enough (ex. my pheromones are in top form today, so it's way more probable that boys/girls will ask me to pair up with them)

That uses both RMMV plugins and RMMV specific functions. That wouldn't work with VNM.
Thanks! I’ll see if I can fiddle around with it this weekend and if I happen to come up with a nice way to do it, I’ll share here.

Original thread: https://forums.rpgmakerweb.com/threads/random-events.90609/