This script provides functionality for changing a map's encounters using script calls. Currently you can only add new encounters and remove the custom encounters.
Perhaps when a certain switch has been activated, a certain monster is supposed to be roaming a certain map. You can use this script to add a new encounter using events that activate when the switch is ON
No need to create an extra map just for that new encounter
To add an encounter to a map, use the script call
set_encounter(encounter_id, troop_id, weight, region_set, map_id)
-encounter ID is an ID used to refer to this encounter
-troop_id is the ID of the troop from the database
-weight is the probability of encountering that troop
-region_set is an array of regions that the troop appears
-map_id is the ID of the map
To remove an encounter from the map, use the script call
To remove all custom encounters on a map, use the script call
This will revert the map's encounters back to their original settings.
You can change the encounter rate as well using the following calls
change_encounter_rate(rate, map_id) # increase/decrease encounter rate restore_encounter_rate(map_id) # set the modifier rate back to 0
Edited by Tsukihime, 20 December 2012 - 10:26 AM.