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

Trade error

14
Posts
11
Years
    • Seen Oct 9, 2014
    When i used the trade script in the Wiki iget this error


    Exception: RuntimeError
    Message: Script error within event 12, map 39 (Viridian City):
    Exception: SyntaxError
    Message: (eval):2:in `pbExecuteScript'compile error
    (eval):2: syntax error
    PBSpecies::SHINX,,"Marie",1)
    ^
    (eval):2: syntax error
    PBSpecies::SHINX,,"Marie",1)
    ^
    ***Full script:
    pbStartTrade(pbGet(1),
    PBSpecies::SHINX,,"Marie",1)


    Interpreter:276:in `pbExecuteScript'
    Interpreter:1599: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'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen yesterday
    Code:
    pbStartTrade(pbGet(1),
    PBSpecies::SHINX,,"Marie",1)
    You've not given the Pokémon a nickname. Essentials doesn't like two commas in a row like that. If for some strange reason you don't want this Shinx to have a nickname, put nil in there (no quote marks). That's kind of a daft thing to do, though, because the whole point of traded Pokémon is that they have nicknames.
     
    14
    Posts
    11
    Years
    • Seen Oct 9, 2014
    Code:
    pbStartTrade(pbGet(1),
    PBSpecies::SHINX,,"Marie",1)
    You've not given the Pokémon a nickname. Essentials doesn't like two commas in a row like that. If for some strange reason you don't want this Shinx to have a nickname, put nil in there (no quote marks). That's kind of a daft thing to do, though, because the whole point of traded Pokémon is that they have nicknames.

    I took the suggestion and added a nickname to it and solved.Thanks again maruno
     
    Back
    Top