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

[Error] The Duel minigame does not work [V.18.1]

  • 80
    Posts
    6
    Years
    • Seen Nov 5, 2023
    Code:
    ---------------------------
    Pokemon Brilliant Red
    ---------------------------
    [Pokémon Essentials version 18.1]
    
    Exception: RuntimeError
    
    Message: Script error within event 7 (coords 48,18), map 148 (ROUTE 4):
    
    Exception: NameError
    
    Message: PMinigame_Duel:67:in `pbStartDuel'undefined local variable or method `distandistance_per_framecePerFrame' for #<PokemonDuel:0xc933ca8>
    
    
    
    ***Full script:
    
    Kernel.pbDuel(:BLACKBELT,"Dan",get_character(0),$speeches)
    
    
    
    Backtrace:
    
    Interpreter:197:in `pbExecuteScript'
    
    PMinigame_Duel:84:in `pbDuel'
    
    PMinigame_Duel:390:in `pbDuel'
    
    (eval):1:in `pbExecuteScript'
    
    Interpreter:658:in `eval'
    
    Interpreter:197:in `pbExecuteScript'
    
    Interpreter:658:in `command_111'
    
    Interpreter:272:in `execute_command'
    
    Interpreter:155:in `update'
    
    Interpreter:102:in `loop'
    
    
    
    
    
    Backtrace:
    
    Interpreter:246:in `pbExecuteScript'
    
    Interpreter:658:in `command_111'
    
    Interpreter:272: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:\USERNAMEs\User\Saved Games\Pokemon Brilliant Red\errorlog.txt.
    
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK   
    ---------------------------

    I tried doing the duel in V.18.1 but it did not work. Please help me
     
    I tried doing the duel in V.18.1 but it did not work. Please help me

    This one looks like a typo.
    In the file PMinigame_Duel, in the function:
    Code:
      def pbStartDuel(opponent, event)
    Go to line 67 and replace the ugly "distandistance_per_framecePerFrame" with "distance_per_frame" (without the quotation marks).
     
    Back
    Top