• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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
    5
    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
     
    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.
     
    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