StCooler
Mayst thou thy peace discover.
- 9,793
- Posts
- 5
- Years
- Seen today
I think StCooler's method is "cool" (pun intended), but here's how you could do the same thing using encounter modifiers.
You can put this anywhere in PField_EncounterModifiers. In your event, just before the battle with Zygarde, turn switch 99 ON. Then, doCode:Events.onWildPokemonCreate += proc { |_sender, e| pokemon = e[0] if $game_switches[99] if isConst?(pokemon.species,PBSpecies,:ZYGARDE) pokemon.form = 2 pokemon.setAbility(0) pokemon.pbLearnMove(:COREENFORCER) pokemon.pbLearnMove(:CRUNCH) pokemon.pbLearnMove(:STONEEDGE) pokemon.pbLearnMove(:EARTHQUAKE) pokemon.setNature(:ADAMANT) pokemon.setItem(:LIFEORB) if rand(100)<1 # 1% chance of being shiny pokemon.makeShiny end end end }
pbWildBattle(:ZYGARDE,70)
. After the battle, turn switch 99 OFF (but this doesn't matter too much unless you have another Zygarde battle somewhere).
This approach is more flexible I think. You can edit pretty much anything about the Pokémon. Note at the end of the code block I added a 1 in 100 chance of the Zygarde being shiny. You can increase the 100 to decrease the odds of finding a shiny.
I must say, this is elegant :)
However I still prefer my solution because it reduces the amount of scripting to make ^^"