I'm trying to get a random encounter script going that pulls from a certain region list on the map if desired (e.g. I have bats only show up in region 8).
For instance I have this script working to make a random encounter, but it only takes into account the players current location as it stands:
Code:
var troopId;
troopId = $gamePlayer.makeEncounterTroopId();
BattleManager.setup(troopId, true, true);
$gamePlayer.makeEncounterCount();
SceneManager.push(Scene_Battle);I've tried a couple things like spoofing my players location and trying to figure out $gamePlayer.meetsEncounterConditions() but I don't think I'm using it right because it doesn't work.
Can I get some help?