• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Create a pokemon with custom moves

  • 4
    Posts
    7
    Years
    • Seen Jul 12, 2017
    how would i use the script Kernel.pbAddPokemon in an event to add a level 13 honedge that knows tackle, swords dance, fury cutter, and shadow sneak.
     
    how would i use the script Kernel.pbAddPokemon in an event to add a level 13 honedge that knows tackle, swords dance, fury cutter, and shadow sneak.

    I think this should work:
    Code:
    poke = PokeBattle_Pokemon.new(:AEGISLASH, 13)
    poke.moves = [
      PBMove.new(getConst(PBMoves,:TACKLE)),
      PBMove.new(getConst(PBMoves,:SWORDSDANCE)),
      PBMove.new(getConst(PBMoves,:FURYCUTTER)),
      PBMove.new(getConst(PBMoves,:SHADOWSNEAK))
    ]
    Kernel.pbAddPokemon(poke)
     
    Where do I put this code?

    You use this code when you add an event on the map. For example, an NPC could give it to you if you write out some text, then follow it up with the code. Then the Kernel itself will handle everything else after that.

    The best example is in the Pokemon Lab, assuming you still have most, if not all, of the vanilla maps.

    Page 2 of each Pokeball event shows the script quite clearly.

    Or, another method is to find out how to execute the code. This excerpt was taken directly from the Pokemon Essentials Wiki, whereto a link can be found below the quote.

    "Alternatively, you can define a Pokémon beforehand, and then add it using the same methods above, like so:

    Code:
    poke=PokeBattle_Pokemon.new(:MAGIKARP,10,$Trainer)
    pbAddPokemon(poke)

    This allows you to modify the Pokémon before giving it to the player. See the article Editing a Pokémon for how it can be modified."
    - Manipulating Pokemon, Pokemon Essentials Wiki, pokemonessentials.wikia.com/wiki/Manipulating_Pokemon

    For the quote above, you may need to use extendtext.exe when a Script dialog box appears, because scripts are handled weird without it.
     
    Last edited:
    Read the error message and see if making sure the lines don't start with a ( or [ fixes it.

    When I do this it says the OT is RENTAL and the ID No. is ?????

    How would I make it so that the pokemon is owned by you so that it doesnt gain double exp and not listen to your commands when it is overleveled.
     
    Back
    Top