FANDOM


Hiding nest areas for unvisited secret locations
This tutorial is deprecated. It is no longer relevant to the latest version of Pokémon Essentials.

This tutorial was written by -FL-. Please give credit.

Click here for more tutorials!


A secret area is nothing more that an area that only appears if a switch defined in PBS is ON. This switch is ignored by the Area option of the Pokédex; this treats the switch as if it was ON. This tutorial explains how to change this to only show the encounters for that area if its switch is ON.

In PokemonArea change:

if pbFindEncounter(enctypes,species)
  mappos=pbGetMetadata(enc,MetadataMapPosition)
  points.push(mappos) if mappos && mappos[0]==region
end

to:

mappos=pbGetMetadata(enc,MetadataMapPosition)
if mappos
  for loc in @mapdata[region][2]
    points.push(mappos) if region==mappos[0] && loc[0]==mappos[1] && 
        loc[1]==mappos[2] && (!loc[7] || $game_switches[loc[7]]) &&
        pbFindEncounter(enctypes,species)
  end
end

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.