• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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!
  • 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?

  • 13
    Posts
    8
    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)
     
    It all looks good as you have it here.
    Did you get an error? Did anything happen at all?
     
    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