• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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.

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

Minokun

The Rival in Space
  • 107
    Posts
    11
    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