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

[Question] Error when I do the pbTrainerBattle script, when I start the battle it crashes. Help me.

8
Posts
4
Years
    • Seen Jul 4, 2022
    If I start a trainer battle, this happens

    [Pokémon Essentials version 17.2]
    Exception: RuntimeError
    Message: Script error within event 4 (coords 27,19), map 43 (Route 24: Twinmoon Falls):
    Exception: NameError
    Message: (eval):1:in `pbExecuteScript'uninitialized constant Interpreter::POKEMONTRAINER_MAY
    ***Full script:
    pbTrainerBattle(POKEMONTRAINER_MAY,"Erina",_I("That battle was frickin awesome!"),false,0)

    Interpreter:243: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:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:163:in `update'
    Scene_Map:161:in `loop'

    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:163:in `update'
    Scene_Map:161:in `loop'
    Scene_Map:170:in `update'
    Scene_Map:234:in `main'

    I just used the script
    The trainer type is in the pbs file but edited the POKEMONTRAINER_May trainer type (I just changed the name and made the May to all caps)
    The trainer is in the trainers pbs file and no syntax errors are found

    See here:
    #-------------------------------
    POKEMONTRAINER_MAY
    Erina
    1
    BAGON,5,,RAGE,BITE,,,,F

    Does anyone know a solution and the one who can help will be credited on my fangame. I keep asking error questions since I'm an newbie in making videogames.

    Thanks in Advance!
     
    Back
    Top