Plutoniarch
Ghost King
- 9
- Posts
- 9
- Years
- Seen May 13, 2018
I'm trying to add items to function like HMs, but for some reason I get an error message whenever I try to give one to the player. It's the same error every time:
---------------------------
Pokemon Redshift
---------------------------
Exception: RuntimeError
Message: Script error within event 14, map 22 (Gedeo Town):
Exception: NoMethodError
Message: Section135:792:in `pbStoreItem'undefined method `length' for nil:NilClass
***Full script:
Kernel.pbItemBall(:DARKLANTERN)
Interpreter:243:in `pbExecuteScript'
PField_Field:2084:in `pbItemBall'
(eval):1:in `pbExecuteScript'
Interpreter:794:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
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 `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Registered Items:102:in `main'
This exception was logged in
C:\Users\Thomas\Saved Games/Pokemon Redshift/errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
Anyone have a fix for this or can tell me what's happening? Thank you.
---------------------------
Pokemon Redshift
---------------------------
Exception: RuntimeError
Message: Script error within event 14, map 22 (Gedeo Town):
Exception: NoMethodError
Message: Section135:792:in `pbStoreItem'undefined method `length' for nil:NilClass
***Full script:
Kernel.pbItemBall(:DARKLANTERN)
Interpreter:243:in `pbExecuteScript'
PField_Field:2084:in `pbItemBall'
(eval):1:in `pbExecuteScript'
Interpreter:794:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
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 `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Registered Items:102:in `main'
This exception was logged in
C:\Users\Thomas\Saved Games/Pokemon Redshift/errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
Anyone have a fix for this or can tell me what's happening? Thank you.