• 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.
  • There is an important update regarding account security and 2FA. Please click here for more information.
  • 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.
  • Imgur has blocked certain regions from viewing any images uploaded to their site. If you use Imgur, please consider replacing any image links/embeds you may have on PokéCommunity so everyone can see your images. Click here to learn more.

How to make a wild event encounter Pokémon have a special move?

Minokun

The Rival in Space
  • 107
    Posts
    12
    Years
    • Seen Sep 18, 2019
    I've tried. I really have! I'm sure it's a simple solution that I've either overlooked, didn't know about, or was doing the first time just in the wrong way.

    Btw, An example of this would be the protagonist fighting an aipoim in the circus, so i want to make sure that that when you engage in a battle with it, it will know agility and acrobatics and Fly (idk I ran out of circusy moves).
     
    I'm not sure if this is the only way but put this in the script PField_EncounterModifiers
    Code:
    Events.onWildPokemonCreate+=proc {|sender,e|
      pokemon=e[0]
      if $game_switches[XXX] # <--- Put whatever switch number you want here 
        pokemon.pbLearnMove(:ACROBATICS)
        pokemon.pbLearnMove(:FLY)
        pokemon.pbLearnMove(:AGILITY)
      end

    Then in the event encounter turn on the switch you used before the battle AND make sure to turn it off afterwards otherwise every wild Pokémon will have those moves.
     
    I'm not sure if this is the only way but put this in the script PField_EncounterModifiers
    Code:
    Events.onWildPokemonCreate+=proc {|sender,e|
      pokemon=e[0]
      if $game_switches[XXX] # <--- Put whatever switch number you want here 
        pokemon.pbLearnMove(:ACROBATICS)
        pokemon.pbLearnMove(:FLY)
        pokemon.pbLearnMove(:AGILITY)
      end

    Then in the event encounter turn on the switch you used before the battle AND make sure to turn it off afterwards otherwise every wild Pokémon will have those moves.

    Dangit... I thought that was it! I tried it the first time, but it wouldn't work.... Thanks so much for your help!
     
    Back
    Top