Random boss trigger in specific region with waiting period if RNG fails to trigger the fight help

I have created a little fetch quest to retrieve some powder dropped by a boss but I do not just want the boss to be right there waiting for the player. I want to throw in some RNG with it. If a certain number or above is not generated, I want 15 seconds to go by before the RNG can be triggered again. Also, I want the user to be in a specific region in order for the boss fight to trigger.

I set my event up like this:

1687569292137.png



Page 2 is just a dummy page to negate page one when Switch #276 is on

It says 60f/s so I figure 60x5=300(3)=900 frames for 15 seconds.

The thing I fear most out of this is that if the user walks out of Region 12 and walks back in it, it would reset the whole process negating the rest of the 900 frames.

I am unsure if RPG Maker VX Ace lets the event continue until it is finished before restarting or would leaving region 12 and coming back in retrigger the event from start even when it was not finished.


Is this method correct? Or would leaving the region and coming back retrigger the RNG before 900 frames? If it does, what can I do to get around that so that the user must wait 900 frames if RNG fails them?
No worries! I still got it! Moved to VXAce Support.
In page 1, have your else statement turn another switch (wait switch). And delete wait 900 frames (we will move this to page 2)

Page 2, parallel processing, have it start when wait switch is on. Then in this page 2, wait 900 frames and turn wait switch off.

Page 3 is your dummy page now..
Thank You! That should surely work now! Wish I thought of that on my own
First time I've ever seen you thank somebody for his or her suggestions or feedback. Keep it up, bird of flames. 😀
First time I've ever seen you thank somebody for his or her suggestions or feedback. Keep it up, bird of flames. 😀
I have said it a number of times. Most are not so instant. But we are comparing things just within normal events (which I know will work because events existed since the PS1 version) to a more complex thing like ruby code and scripts which you often provide and I make sure those work before saying thanks.
I mean, someone troubleshooting is worthy of thanks even if you’re not yet triumphant. It can be a real you-know-what ache to work out a script or event hiccup.

Either what, this thread is being closed due to being solved. If you need it reopened, report the thread to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/random-boss-trigger-in-specific-region-with-waiting-period-if-rng-fails-to-trigger-the-fight-help.158627/