• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] [HELP-ME] wild shinys pokemons with increased IV?

I want the wild shinys to come with the IV above the set. I managed to make an item that increases your IV from its base. But I can't get the savages to be born with this. Someone help me????

I was able to make the item with this command, but I can't do it with wild pokemons ....

pokemon.makeShiny
pokemon.iv[0]+=10
pokemon.iv[1]+=10
pokemon.iv[2]+=10
pokemon.iv[3]+=10
pokemon.iv[4]+=10
pokemon.iv[5]+=10
pokemon.calcStats
 
but won't this only make wild pokemon shiny if the variable is on? is there a way to do this with the shiny variable off?
 
Yes, simply check if the Pokemon so happens to be shiny.

Under PField_EncounterModifiers find:
Code:
Events.onWildPokemonCreate += proc { |_sender, e|
  pokemon = e[0]
  if $game_switches[SHINY_WILD_POKEMON_SWITCH]
    pokemon.makeShiny
  end
}

and change it to this:
Code:
Events.onWildPokemonCreate += proc { |_sender, e|
  pokemon = e[0]
  if $game_switches[SHINY_WILD_POKEMON_SWITCH]
    pokemon.makeShiny
  end
  if pokemon.shiny?
    pokemon.iv[0]+=10
    pokemon.iv[1]+=10
    pokemon.iv[2]+=10
    pokemon.iv[3]+=10
    pokemon.iv[4]+=10
    pokemon.iv[5]+=10
    pokemon.calcStats 
  end
}

This will check if a wild Pokemon spawns shiny, and if it does it will boost the Pokemon's IVs by 10.
 
Back
Top