For users who like to use touch encounters, I’m sure you’ve encountered the difficulty of randomizing what kinds of encounters can come with each touch encounter. This script call will randomize what battle will be held based on what random encounters would occur on the map.
Use a script call to have an event start up a random battle based on where the player is standing or region.
This call will generate a random battle based on the tile (and region) that the player is currently standing on. Any battles outside of the tile’s marked region will not be added to the random pool.
call_region_battle(x) call_region_battle(x, x, x)
This call will generate a random battle based on the tile (and region) that is marked by x. Any battles that can occur within those x regions will be added to the random pool.
— And that’s all, folks! —