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

  • 8
    Posts
    4
    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:
  • 1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    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?
     

    WolfPP

    Spriter/ Pixel Artist
  • 1,309
    Posts
    5
    Years
    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