Can parallel trigger start random event?

Hi, I cannot code and try to make a randomized once per month ingame time event but don't think it works.

71EIRK6.jpg


The parallel trigger would indefinitely "roll 1d4" till self switch A is turned on.

I've thought about using if not branch as well but cannot seem to get it to work.

The time is also really brief like this.

CB2jAWK.jpg


I cannot script so there can only be Month 1, 2, 3. If I put "January" "February" in the script section, month 2 becomes January1.

Can random events be controlled by parallel trigger or have to be action trigger through events?
Parallel events always run, which is why it was running indefinitely. You would be better off having that event as a common event and executing it via whatever is supposed to set the time to that time.
Parallel events always run, which is why it was running indefinitely. You would be better off having that event as a common event and executing it via whatever is supposed to set the time to that time.

It seems there would require lots of action trigger (whenever time moves such as entering area, leaving area, etc.) if parallel trigger doesn't work. 🙁
Its not that it doesn't work, it is you are not using it well. See parallel process always run, every frame and there are 60 frames a second. So right now you got that event running 60x a second.

That's why it would be best to set it to be triggered by whatever is managing the date/time instead. If you had it as a common event you can just use the event command call common event to add it to your code.
It seems there would require lots of action trigger (whenever time moves such as entering area, leaving area, etc.) if parallel trigger doesn't work. 🙁
We have a lot of parallel process running during each map for our game. They work fine, it just depends how they are structured.

In particular we have a "stress test" map where we run a large map (bigger than any map we will have in the game) and I have 135+ event copies (yanfly event copier 4tw) of the parallel process I'm trying to run (again more than we would ever have in one map at a time). To get no frame drops I have to have a 5 frame wait for the parallel loop. If I have no frame wait it just depends on the event sometimes 10-20 frame drops every once in awhile. Some parallel/loops require no frame waits to work correctly at all times, input detecting comes to mind.

I'm probably overboard with my stress tests. After it passes on my windows machine, we then run it through a less powerful mac laptop to make sure it will work and go from there.
After some more tries, I manage to somewhat emulate what I wanted with this.
HjoDaty.png


The event would either activate on first day of said week always or jump to the next switch though. Cannot make it to be random day of each week unless I make 7 events for each day.

Original thread: https://forums.rpgmakerweb.com/threads/can-parallel-trigger-start-random-event.111846/