So for some debug testing I'm setting up wild battles from user input, but the game crashes if The Pokemon species isn't valid, what's the best way to check if its valid before progressing
Code:
$game_variables[108] = Kernel.pbMessageFreeText(_INTL("Please enter a pokemon."), _INTL("{1}", $game_variables[108]),false,256,Graphics.width)
$game_variables[108] = $game_variables[108].upcase
pbWildBattle($game_variables[108],5)