• 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] Can't give player pokemon from ball item

  • 8
    Posts
    5
    Years
    • UK
    • Seen Jul 1, 2019
    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 17]

    Exception: RuntimeError

    Message: Script error within event 6 (coords 10,4), map 33 (ur other house):

    Exception: ArgumentError

    Message: PokeBattle_Pokemon:916:in `__mf_initialize'The species number (no. 0 of 649) is invalid.

    ***Full script:

    pbAddPokemon(:BULBSAUR,5)


    Interpreter:243:in `pbExecuteScript'

    Pokemon_Forms:43:in `initialize'

    PSystem_PokemonUtilities:79:in `new'

    PSystem_PokemonUtilities:79:in `pbAddPokemon'

    (eval):1: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:276: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:161:in `update'

    Scene_Map:159:in `loop'

    Scene_Map:168:in `update'

    Scene_Map:232:in `main'



    This exception was logged in

    C:\Users\iwant\Saved Games\Pokemon Essentials\errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------

    Error when trying to give my player ANY pokemon. Using V17. I read some things about "shape in the PBS" But what does that mean??
     
    Last edited:
    Based on the error message it seems to be saying that :BULBASAUR is a symbol, not a number (which is true). Do you get that error if you use 1 and/or PBSpecies::BULBASAUR?
     
    Write correctly: BULBASAUR instead BULBSAUR. Also, you can put a number instead the name, like MGriffin said. Bulbasaur is the first into pokedex, so you can put 1,5 or :BULBASAUR,5.
     
    Back
    Top