Random recurring events?

ok heres something that i have stumbled upon and im having trouble implementing. say u have a harbor and merchants adventurers pirates and all that good stuff comes dock into your harbor on specific days. im currently using Vlue's time system running 7 days a week sunday-saturday and all that fun stuff but thats besides the point. what i really wanna know is how do i make one of these options(merchants, pirates, adventurers) randomly appear at the harbor?
wasnt sure if therse a script for this but im pretty sure it can be done with events and i just currently dont know how to do it. thanks in advance for any help anyone can give me on this topic.

Clover Chronicles will  forever thank those who help its progress!
Just condition it by a switch, and have another event set to parallel process, with the following logic:


- set a variable to a random number between 1 and 2


- if it's 1, turn on the switch


- if it's not one, turn off the switch


- make the event erase itself


Sometimes the switch will be on, and sometimes it'll be off. When it's on, your NPC will be there; when it's not, they won't.


And you don't have to have an NPC with a blank event page, and another event page with the sprite and a condition. The condition CAN be on the first page - if it's not true/met, the NPC won't be there 🙂
thanks shaz ur a life saver!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

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