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

Customising the Starter Pok?mon

87
Posts
8
Years
  • Customising the Starter Pokémon

    Hi,
    I wanted to know how I would phrase an special event in which you get your starter pokemon that's holding an Oran Berry, and has the move (Quick Attack and Charm) when you receive it.
    In other words, If I get a Charmander from Professor Oak, how would I tell the event to give me a Charmander that has it's attack, special attack, and speed ivs to be 31. Also, how would I tell the event to automatically teach it Quick Attack, and Flame Wheel.

    Thanks,
    BJFinest34
     
    43
    Posts
    8
    Years
  • Here, this is an example
    p=PokeBattle_Pokemon.new(:RAYQUAZA,80,$Trainer)
    p.item=PBItems::ORANBERRY # item of Pokemon
    p.setGender(2) # male
    p.setNature(PBNatures::LONELY) #Natures
    p.iv=[20,31,20,15,15,15] # IV
    p.ballused=10 # Luxury Ball
    p.calcStats
    Kernel.pbAddPokemon(p)
     
    87
    Posts
    8
    Years
  • Editing a Pokémon and adding a Pokémon. You can also look at the example maps (the Fan Club in Lerucean Town) for examples of this, albeit using a different "adding" method.
    I made an effort to do that, but an issue came up.
    Code:
    Exception: RuntimeError
    Message: Script error within event 5, map 81 (Professor's Lab):
    Exception: NoMethodError
    Message: (eval):4:in `pbExecuteScript'undefined method `setAbility' for #<Array:0x8bbe380>
    ***Full script:
    pbAddPokemon(PBSpecies::CHIMCHAR,5)
    poke=$Trainer.party
    [$Trainer.party.length-1]
    poke.setAbility(2)   # Hidden Ability
    poke.setItem(:ORANBERRY)
    poke.iv[0]=31
    poke.pbLearnMove(:FAKEOUT)
    poke.setNature(:ADAMANT)
    poke.calcStats
    
    Interpreter:243:in `pbExecuteScript'
    Interpreter:1606:in `eval'
    Interpreter:243:in `pbExecuteScript'
    Interpreter:1606:in `command_355'
    Interpreter:494:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'

    Thanks for the help!
     
    824
    Posts
    8
    Years
  • Code:
    pbAddPokemon(PBSpecies::CHIMCHAR,5)
    poke=$Trainer.party[
    $Trainer.party.length-1]
    poke.setAbility(2)   # Hidden Ability
    poke.setItem(:ORANBERRY)
    poke.iv[0]=31
    poke.pbLearnMove(:FAKEOUT)
    poke.setNature(:ADAMANT)
    poke.calcStats

    Try that. Moved the bracket up one line.
     
    Back
    Top