• 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?".
  • 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.

[Eventing Question] combat Pokemon in its form 1

57
Posts
4
Years
    • Seen Apr 17, 2022
    I need to do a battle against a pokemon in its form 1 (understood as a mega, but without a trainer), that is, as Kyurem in its fusion with Reshidam. I would like to know how to modify the pokemon so that the combat is against its form 1.

    Thank you
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • Create a new game switch and inside 'PField_EncounterModifiers' script, paste this code:
    Code:
    # Used in the form>0
    Events.onWildPokemonCreate+=proc {|sender,e|
       pokemon=e[0]
       if $game_switches[XXX] # game switch number
         #pokemon.hp=((pokemon.totalhp/2)-5).ceil
         #pokemon.setAbility(2)
         #pokemon.iv=[31,0,31,0,0,31]
         #pokemon.ev=[252,0,252,0,0,252]
         #pokemon.form=1
         #pokemon.setNature(:RELAXED)
         #pokemon.item=getConst(PBItems,:SITRUSBERRY)
         for i in 0...4
           pokemon.moves[i]=PBMove.new(getID(PBMoves,:OCTOLOCK)) if isConst?(pokemon.species,PBSpecies,:METAPOD)
         end
         #pokemon.pbLearnMove(:FEATHERDANCE)
         if isConst?(pokemon.species,PBSpecies,:KYUREM)
           pokemon.form=1
           pokemon.form=2 if $game_switches[FATEFUL_ENCOUNTER_SWITCH]
         #elsif isConst?(pokemon.species,PBSpecies,:KYOGRE)
          # pokemon.form=1
          # pokemon.item=getConst(PBItems,:BLUEORB)
         elsif isConst?(pokemon.species,PBSpecies,:ABSOL)
           pokemon.form=1
           #pokemon.item=getConst(PBItems,:ULTRANECROZIUMZ2)
         #else
         end
         pokemon.calcStats
       end
    }

    Edit it as you want.
     
    971
    Posts
    7
    Years
    • Age 21
    • Seen Nov 28, 2022
    To simplify:
    Code:
    # Used in the form>0
    Events.onWildPokemonCreate += proc do |sender, e|
      pokemon = e[0]
      pokemon.form = 1 if $game_switches[XXX]
    end

    Change XXX to the ID of the switch you want to use (without trailing zeroes, so 13 rather than 013, for instance). Whenever you want to force a wild Pokémon's form to be 1, enable the switch you chose. Then after the battle, make sure to turn it back off.
     
    Back
    Top