• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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] Error when battling

  • 12
    Posts
    6
    Years
    I tried to battle a trainer and got this error:

    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 18]

    Exception: RuntimeError

    Message: Script error within event 12 (coords 3,8), map 2 (Lappet Town):

    Exception: ArgumentError

    Message: (eval):1:in `pbTrainerIntro'wrong number of arguments(0 for 1)



    ***Full script:

    pbTrainerIntro
    (:POKEMONTRAINER_Blueberry)
    pbNoticePlayer(get_character(0))




    Backtrace:

    Interpreter:201:in `pbExecuteScript'

    (eval):1:in `pbExecuteScript'

    Interpreter:1466:in `eval'

    Interpreter:201:in `pbExecuteScript'

    Interpreter:1466:in `command_355'

    Interpreter:366:in `execute_command'

    Interpreter:155:in `update'

    Interpreter:102:in `loop'

    Interpreter:158:in `update'

    Scene_Map:162:in `update'





    Backtrace:

    Interpreter:237:in `pbExecuteScript'

    Interpreter:1466:in `command_355'

    Interpreter:366:in `execute_command'

    Interpreter:155:in `update'

    Interpreter:102:in `loop'

    Interpreter:158:in `update'

    Scene_Map:162:in `update'

    Scene_Map:160:in `loop'

    Scene_Map:169:in `update'

    Scene_Map:229:in `main'



    This exception was logged in

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

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

    Any help would be great.
     
    Open RPG Maker XP, then use extendtext.exe that's found inside your game's folder, then open the Script box where you typed in the pbTrainerIntro script and MAKE SURE the pbTrainerIntro command is all on the same line. It should look like this:
    Code:
    pbTrainerIntro(:POKEMONTRAINER_Blueberry)
    pbNoticePlayer(get_character(0))
    It's causing an error because the (:POKEMONTRAINER_Blueberry) part is on a different line, so you need to move it up.
     
    Back
    Top