- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.0]
[v19.1 Hotfixes 1.0.7]
Exception: RuntimeError
Message: Script error in event 58 (coords 2,3), map 4 (Pokémon Lab):
Exception: SyntaxError
Message: (eval):1: syntax error, unexpected '|', expecting ')'
pbChoosePokemon(1, 3, proc( |pkmn|
^
(eval):6: syntax error, unexpected ')', expecting end-of-input
***Full script:
pbChoosePokemon(1, 3, proc( |pkmn|
isConst?(pkmn.type1,PBTypes,
:FIGHTING) ||
isConst?(pkmn.type2,PBTypes,
:FIGHTING)
)
Backtrace:
Backtrace:
033:Interpreter:189:in `rescue in execute_script'
033:Interpreter:135:in `execute_script'
034:Interpreter_Commands:1030:in `command_355'
034:Interpreter_Commands:116:in `execute_command'
033:Interpreter:127:in `block in update'
033:Interpreter:87:in `loop'
033:Interpreter:87:in `update'
032:Scene_Map:157:in `block in update'
032:Scene_Map:155:in `loop'
032:Scene_Map:155:in `update'
Tried replacing ) with }s and }s with )s. How do I actually fix this? This NPC is supposed to let you select a Pokemon in your party, check whether it is or isn't Fighting type, and then say "Correct!" or "Incorrect!" depending on whether you showed the NPC a fighting type or not.
There's going to be more to this NPC in the final release but for the script I have in mind to work, I need to be able to check the player's chosen Pokemon type.
[Generation 8 Project v1.1.0]
[v19.1 Hotfixes 1.0.7]
Exception: RuntimeError
Message: Script error in event 58 (coords 2,3), map 4 (Pokémon Lab):
Exception: SyntaxError
Message: (eval):1: syntax error, unexpected '|', expecting ')'
pbChoosePokemon(1, 3, proc( |pkmn|
^
(eval):6: syntax error, unexpected ')', expecting end-of-input
***Full script:
pbChoosePokemon(1, 3, proc( |pkmn|
isConst?(pkmn.type1,PBTypes,
:FIGHTING) ||
isConst?(pkmn.type2,PBTypes,
:FIGHTING)
)
Backtrace:
Backtrace:
033:Interpreter:189:in `rescue in execute_script'
033:Interpreter:135:in `execute_script'
034:Interpreter_Commands:1030:in `command_355'
034:Interpreter_Commands:116:in `execute_command'
033:Interpreter:127:in `block in update'
033:Interpreter:87:in `loop'
033:Interpreter:87:in `update'
032:Scene_Map:157:in `block in update'
032:Scene_Map:155:in `loop'
032:Scene_Map:155:in `update'
Tried replacing ) with }s and }s with )s. How do I actually fix this? This NPC is supposed to let you select a Pokemon in your party, check whether it is or isn't Fighting type, and then say "Correct!" or "Incorrect!" depending on whether you showed the NPC a fighting type or not.
There's going to be more to this NPC in the final release but for the script I have in mind to work, I need to be able to check the player's chosen Pokemon type.
Last edited: