- 20
- Posts
- 4
- Years
- She/it
- United States
- Seen Jul 31, 2024
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:
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'