"Random" Encounters, but event based

The short thing I'm trying to do is I'm making a game where enemy sprites block off areas, and when you talk to them, an encounter will occur, however how would I make it so that the enemies fought are randomized like a random encounter, so instead of say all plain blue slimes, it would be randomized through different types of slimes, or instead of two skeletons and a bat, it could be two bats and a zombie or three zombies.


Shorter short thing:


Random encounters activated by events instead of walking
...Shorter short thing:


Random encounters activated by events instead of walking



The encounter would be Battles, sparked off the Command 'Battle Processing'. The Event which sets off these Battles could, beforehand, use a Random Variable and Conditional Branches: If Random = 1: Battle Processing Slime, if Random = 2: Battle Processing Beetles, if Random = 3: Battle Processing Whatever etc...


Is that what you're after..?
The encounter would be Battles, sparked off the Command 'Battle Processing'. The Event which sets off these Battles could, beforehand, use a Random Variable and Conditional Branches: If Random = 1: Battle Processing Slime, if Random = 2: Battle Processing Beetles, if Random = 3: Battle Processing Whatever etc...


Is that what you're after..?



Not exactly. Take the random encounters you can set up on the maps and move them into events when interacted. I think VX had a call for this called call_random_battle, but most of the old commands don't work anymore.
battleprocessing can directly use the map encounter table, but that would be a random selection between everything on that table, not limited to a specific group of enemies.
battleprocessing can directly use the map encounter table, but that would be a random selection between everything on that table, not limited to a specific group of enemies.

...how did i miss that option. Thank you...

Original thread: https://forums.rpgmakerweb.com/threads/random-encounters-but-event-based.65568/