• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] [EBDX](?) Error when hitting cancel button on keyboard but not when "No" option is selected

  • 20
    Posts
    4
    Years
    I'm trying to set up my game corner and i can get everything else to work except when the player hits the "x" or "Esc" keys. Doing so causes the game to crash and an error to appear. It mentions EBDX though im not too sure what it has to do with this.

    Error:
    Code:
    ---------------------------
    Pokemon Lucent
    ---------------------------
    [Pokémon Essentials version 18.1]
    
    [EBDX v1.0.13] 
    
    Exception: RuntimeError
    
    Message: Script error within event 24 (coords 5,23), map 24 (Game Corner):
    
    Exception: TypeError
    
    Message: Intl_Messages:559:in `[]'no implicit conversion from nil to integer
    
    
    
    ***Full script:
    
    item=[:PONYTA,:SPOINK,
          :MILTANK,:LARVITAR,0][pbGet(1)]
    price=[250,550,3000,5000,
           0][pbGet(1)]
    lv=[5,5,18,25,0][pbGet(1)]
    if item && item!=0
      item=getID(PBSpecies,item)
    end
    pbSet(1,item); pbSet(2,price)
    pbSet(3,PBSpecies.getName(item))
    pbSet(4,lv)
    
    
    
    
    Backtrace:
    
    Interpreter:197:in `pbExecuteScript'
    
    Intl_Messages:559:in `get'
    
    Intl_Messages:674:in `get'
    
    Intl_Messages:711:in `pbGetMessage'
    
    PBSpecies:813:in `getName'
    
    (eval):10:in `pbExecuteScript'
    
    Interpreter:1458:in `eval'
    
    Interpreter:197:in `pbExecuteScript'
    
    Interpreter:1458:in `command_355'
    
    Interpreter:359:in `execute_command'
    
    
    
    
    
    Backtrace:
    
    Interpreter:246:in `pbExecuteScript'
    
    Interpreter:1458:in `command_355'
    
    Interpreter:359: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'
     
    Spoiler:


    It's not an issue with EBDX. It's because the value of variable 1 when you interact with the event is incompatible with the arrays you defined. You can fix this by putting pbSet(1,0) just before your item array, I think.
     
    Back
    Top