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

"uninitialized constant" error when starting a double battle against trainer

  • 4
    Posts
    10
    Years
    Hello! I have a problem with my game.
    When the player start a double fight with a trainer, the battle begin and the trainer sends his Pokémon but this error appears:

    Exception: RuntimeError
    Message: Script error within event 33, map 27 (Ruta 4):
    Exception: NameError
    Message: Section083:1026:in `initialize'uninitialized constant PokeBattle_SceneConstants::FOEBASED1_Y

    ***Full script:
    pbTrainerBattle(PBTrainers::LASS,"Crissy",_I("You didn't have to win so convincingly!"),true,0,false,0)
    Interpreter:243:in `pbExecuteScript'
    PokeBattle_Scene:2391:in `new'
    PokeBattle_Scene:2391:in `pbTrainerSendOut'
    PokeBattle_Battle:1605:in `pbSendOut'
    PokeBattle_Battle:2692:in `pbStartBattleCore'
    PokeBattle_Battle:2603:in `pbStartBattle'
    PTrainer_NPCTrainers:496:in `pbTrainerBattle'
    PTrainer_NPCTrainers:495:in `pbSceneStandby'
    PTrainer_NPCTrainers:497:in `pbTrainerBattle'
    PTrainer_NPCTrainers:494:in `pbBattleAnimation'


    Interpreter:276:in `pbExecuteScript'
    Interpreter:794:in `command_111'
    Interpreter:320:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `follow_update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `follow_update'
    Follower:1517:in `update'


    The error only appear with double battles.
    Anyone know how i can fix?
    Thanks! :)
     
    Now works prefect!!
    I´m bad with the scripts section and I didn´t know how fix this error...
    Thanks for the help :)
     
    Back
    Top