I get this error when trying to catch a pokemon and use the function to determine when that pokemon is caught so I can make it so that all legendary and mythical pokemon are required to be caught before Arceus can be caught, I'm using switches to show that a pokemon is caught, when I catch the pokemon I get the error message below the event scripts are a conditional branch to determine if a pokemon is caught if so that will trigger a switch so other events know that pokemon is caught then no matter what self switch A turns on turning the pokemon event to an Item event.
Error Message:
---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.2]
Exception: RuntimeError
Message: Script error within event 1 (coords 10,3), map 134 (Regi Depths):
Exception: TypeError
Message: PSystem_Utilities:855:in `[]'cannot convert false into Integer
***Full script:
pbWildBattle(:REGIGIGAS,250)
Interpreter:243:in `pbExecuteScript'
PSystem_Utilities:855:in `pbGetFSpeciesFromForm'
Pokemon_Forms:28:in `fSpecies'
PokeBattle_Pokemon:850:in `baseStats'
PokeBattle_Pokemon:886:in `calcStats'
PokeBattle_Battler:483:in `pbUpdate'
PokeBattle_Battler:947:in `pbResetForm'
PokeBattle_Battle:4024:in `pbEndOfBattle'
PokeBattle_Battle:4023:in `each'
PokeBattle_Battle:4023:in `pbEndOfBattle'
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'