I've started adding trainer events into my game, and I've came across an odd error. This error only happens for trainer classes that I made as "alternate versions." For example the PSYCHIC trainer event has no issues, but the female counterpart PSYCHICf comes up with a syntax problem. As does RANGERf, aka female ranger. I've tried renaming the trainer types to something similar (this means I edited it in Trainers.txt, trainernames.txt, and the event itself. But I still get this error:
Code:
Exception: RuntimeError
Message: Script error within event 9, map 40 (Sepia Forest):
Exception: NoMethodError
Message: Section067:1603:in `pbStartBattle'undefined method `x' for nil:NilClass
***Full script:
pbTrainerBattle(PBTrainers::RANGERf,"Starlisa",_I("You appear to be a responsible and young trainer."),false,0)
Interpreter:239:in `pbExecuteScript'
[COLOR=Red]PokeBattle_ActualScene+++:1591[/COLOR]:in `loop'
[COLOR=Red]PokeBattle_ActualScene+++:1614[/COLOR]:in `pbStartBattle'
[COLOR=Red]PokeBattle_Battle+:734[/COLOR]:in `pbStartBattleCore'
[COLOR=Red]PokeBattle_Battle+:567[/COLOR]:in `pbStartBattle'
[COLOR=Red]PokemonTrainers+++:405[/COLOR]:in `pbTrainerBattle'
[COLOR=Red]PokemonTrainers+++:404[/COLOR]:in `pbSceneStandby'
[COLOR=Red]PokemonTrainers+++:406[/COLOR]:in `pbTrainerBattle'
[COLOR=Red]PokemonTrainers+++:403[/COLOR]:in `pbBattleAnimation'
[COLOR=Red]PokemonTrainers+++:403[/COLOR]:in `pbTrainerBattle'
Interpreter:274:in `pbExecuteScript'
Interpreter:785:in `command_111'
Interpreter:318:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Scene_Map:107:in `update'
Scene_Map:63:in `main'
And as I said before, this only happens to these types of trainers. I have a LASS, TWINS, and several BUGCATCHER and YOUNGSTER trainer events, that are made
exactly the same way that come up with no error what-so-ever. I took a look at the mentioned scripts, but nothing seems wrong. And I also don't know what this "`x' " is.
EDIT: Nevermind. For some reason, any newly added trainers aren't working irregardless of trainer class. I added in a new Bug Catcher and he worked, but all trainers after that did not. I honestly don't have an idea what's going on.