- 6
- Posts
- 5
- Years
- Seen Apr 21, 2023
I've used dependency before and it worked fine. I'm confused for why this time it isn't working. It all looks the same to me. It would be great if someone could help. Basically what I'm trying to do is get the gym leader to join with the player to battle the villain. However, whenever I try to connect them this error shows up.
[Pokémon Essentials version 17.2]
Exception: RuntimeError
Message: Script error within event 35 (coords 23,5), map 113 (Floor 4):
Exception: NoMethodError
Message: Game_CommonEvent:27:in `trigger'undefined method `trigger' for nil:NilClass
***Full script:
pbAddDependency2(36,"Cheyenne",0)
pbRegisterPartner(
:LEADER_Cheyenne,
"Cheyenne",2)
Interpreter:243:in `pbExecuteScript'
Game_CommonEvent:58:in `refresh'
Game_CommonEvent:15:in `initialize'
PField_DependentEvents:150:in `new'
PField_DependentEvents:150:in `createEvent'
PField_DependentEvents:494:in `addEvent'
PField_DependentEvents:26:in `pbAddDependency2'
(eval):1:in `pbExecuteScript'
Interpreter:1606:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:163:in `update'
Scene_Map:161:in `loop'
Scene_Map:170:in `update'
Scene_Map:234:in `main'
This exception was logged in
C:\Users\skull\Saved Games\Pokemon Shock v2\errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
It would be great if someone could help. Thanks :)
[Pokémon Essentials version 17.2]
Exception: RuntimeError
Message: Script error within event 35 (coords 23,5), map 113 (Floor 4):
Exception: NoMethodError
Message: Game_CommonEvent:27:in `trigger'undefined method `trigger' for nil:NilClass
***Full script:
pbAddDependency2(36,"Cheyenne",0)
pbRegisterPartner(
:LEADER_Cheyenne,
"Cheyenne",2)
Interpreter:243:in `pbExecuteScript'
Game_CommonEvent:58:in `refresh'
Game_CommonEvent:15:in `initialize'
PField_DependentEvents:150:in `new'
PField_DependentEvents:150:in `createEvent'
PField_DependentEvents:494:in `addEvent'
PField_DependentEvents:26:in `pbAddDependency2'
(eval):1:in `pbExecuteScript'
Interpreter:1606:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:163:in `update'
Scene_Map:161:in `loop'
Scene_Map:170:in `update'
Scene_Map:234:in `main'
This exception was logged in
C:\Users\skull\Saved Games\Pokemon Shock v2\errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
It would be great if someone could help. Thanks :)