Hello, in my game there's an invasion of the game's main enemy in an area, and you're supposed to beat the strong versions of them before the invasion is over. However, what I wanted to do is have weaker versions of the enemy as a random encounter in the area while you were still looking for the stronger ones (aren't I an evil genius?).
Problem is, however, I don't know how to turn the encounters in that specific area off after the invasion is over and you've defeated all of the strong enemies. Is there a way to turn off encounters in one specific area, or just have temporary encounters in an area? Thanks!
Does "one specific area" mean a particular map? If so, you can use the Change Encounter (Enable/Disable) command to disable further encounters while on that map, and then enable them again when you leave the map.
EDIT
Misread the OP and then ninja'd
Set up a parallel process event on the map with no sprite. Use a switch as the condition. In the commands, disable encounters, then use erase event.
At the point where you want the encounters to stop, turn on that switch.
On any event that leads to another map where you want encounters to be enabled again, add a command to enable encounters again. You would only have to do this to transfer events that lead out of town, unless there are other places IN town (ie - in a building, in a sewer, etc) where you want to turn encounters back on.
This wouldn't be a one-time thing, so I think the script would work a lot better (not to mention, I see it having quite a few useful utilities that might come in handy), though I would use the parallel processing idea if it was just a one-time thing. Thank you both so much for helping me, though! I really really appreciate it!
Glad it helps! I actually just updated the documentation after I posted it, so you might want to redownload it (I also had a debug line accidentally slip into the code, which would be annoying in actual use). It will say same version though.
Be advised of the following:
-If you use Yanfly's Encounter Rate manager, post this script below Yanfly's script.
-Effectus must go above this script, if you bought and use that script.
Those are the only issues I know of (so far).