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

[Scripting Question] My script get's a error can some one help me why?

15
Posts
7
Years
  • Hello I want to edit a pokemon you receive so I put this script in that event.
    Bud it dint work. Can some one help me?

    poke=$Trainer.lastPokemon
    poke.makeNotShiny
    poke.setAbility(2)
    poke.makeMale
    poke.setItem(:NUGGET)
     

    Poq

    144
    Posts
    6
    Years
    • Seen Aug 28, 2021
    It all looks good as you have it here.
    Did you get an error? Did anything happen at all?
     
    72
    Posts
    5
    Years
    • Seen Jan 24, 2021
    Mabye try something like this?

    Code:
    p=PokeBattle_Pokemon.new(:GEODUDE,5,
       $Trainer)
    p.makeNotShiny
    p.setAbility(2)
    p.makeMale
    p.setItem(:NUGGET)
    p.calcStats
    Kernel.pbAddPokemon(p)
     
    Back
    Top