- Joined
- Jun 22, 2016
- Messages
- 27
- Reaction score
- 11
- First Language
- English
- Primarily Uses
Disclaimer: I'm new to coding and self taught so not very good and generally don't understand what I'm looking at.
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:
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?
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);
Can I get some help?

