FANDOM


Making one map have a 100% chance of generating shiny Pokémon
This tutorial is deprecated. It is no longer relevant to the latest version of Pokémon Essentials.

This tutorial was written by Anglican333. Please give credit.

Click here for more tutorials!


Introduction

In Gen IV, some Pokémon were given new evolutions, based on rocks and locations. In this tutorial, we're going to add the ability to make some maps always have shiny Pokémon. So, let's begin!

Implementation

First of all, in Settings, add this:

#===============================================================================
# * Map ID's that make Pokémon always shiny
#===============================================================================
SHINYMAPS = []

This creates a variable that contains the map ID's of these "shiny maps".

Then, find this method (Line 934):

def pbGenerateWildPokemon(species,level)

Then, any time after line 935, in that method, add this:

  for i in 0...SHINYMAPS.length
    if $game_map.map_id==SHINYMAPS[i]
      genwildpoke.shinyflag = true
    end
  end

All it does is this: for every map id in SHINYMAPS, it checks it against the current map id. If they match, then the generated wild Pokémon will be shiny

And that's it!

Tips and Suggestions

  1. For a lot of maps, you won't want to make it a 100% chance, so change
  for i in 0...SHINYMAPS.length
    if $game_map.map_id==SHINYMAPS[i]
      genwildpoke.shinyflag = true
    end
  end
to
  for i in 0...SHINYMAPS.length
    if $game_map.map_id==SHINYMAPS[i]
      genwildpoke.shinyflag = true if rand(512)==0
    end
  end
This will give it a 1/1024 chance of being shiny.
2. Give the maps some backstory as to why Pokémon are more likely to be shiny, and make it realistic! Eg, if it's because Pokémon are happier, then give caught Pokémon a higher happiness stat!

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.