I've recently asked about having Visible Encounters and one thing I've been thinking about is how can I make the enemies have a random chance of showing up. Maybe some enemies are really common, so they have a high rate of appearing, or maybe there are some that are super rare. I've tried to implement this myself, but I failed. So that's why I need help! How on earth do I make events have different chances of appearing?
How do I make events have a random chance to show up?
RPG Maker MV Supportthe events will always be there - you can only give them a random choice between hiding themselves or showing themselves.
You do that by control variable (random number) followed by a conditional branch checking what number you got and either switching to an invisible page doing nothing or switching to an active page of an enemy hunting the player.
You do that by control variable (random number) followed by a conditional branch checking what number you got and either switching to an invisible page doing nothing or switching to an active page of an enemy hunting the player.
simply use spoiler tags.
are you using a different variable for each enemy event?
If all your enemy events are using the same variable, then all will behave the same way. Which means if the first one rolls a zero, that will count for all eventslike that - and as soon as the first 1 is rolled, all events with the same variable will switch to the second page.
It would have been better to use the variable only for the chance, not for switching pages as well - have that on self-switch A, and control that in an else-branch of your conditional branch
are you using a different variable for each enemy event?
If all your enemy events are using the same variable, then all will behave the same way. Which means if the first one rolls a zero, that will count for all eventslike that - and as soon as the first 1 is rolled, all events with the same variable will switch to the second page.
It would have been better to use the variable only for the chance, not for switching pages as well - have that on self-switch A, and control that in an else-branch of your conditional branch
W-wow, I'm happy you told me about that @Andar, you're right about how I should only use it for chance. The sad thing is that what I've been trying to do WAS actually working, I was just an idiot and made the variable be controlled a random, but I ended up accidentally making it so when it chose a number it would divide. I fixed it now... But thank you for your help!
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-events-have-a-random-chance-to-show-up.74229/



