Pookachurin
Pooka The Pikachu
- 18
- Posts
- 8
- Years
- The Pokémon World
- Seen Apr 30, 2016
Hi, I'm having some trouble with creating a trainer. I have registered the trainer types into the trainertypes.txt file like so:
0,RIVALBOY,Rival,40,Rival Battle,,,Male,
1,RIVALGIRL,Rival,40,Rival Battle,,,Female,
For some reason, however, I get the following error message whenever the game initiates the battle:
The error says that "RIVALGIRL" is not a valid trainer type even though I've registered into the txt file.
If anyone knows what is wrong please reply, thanks.
0,RIVALBOY,Rival,40,Rival Battle,,,Male,
1,RIVALGIRL,Rival,40,Rival Battle,,,Female,
For some reason, however, I get the following error message whenever the game initiates the battle:
Spoiler:
Exception: RuntimeError
Message: Script error within event 17, map 2 (Millear Town):
Exception: NameError
Message: (eval):1:in `pbExecuteScript'The trainer type 'RIVALGIRL' is not valid. Please add the trainer
to the list of trainer types in the Editor. See the wiki for
more information.
***Full script:
pbTrainerBattle(PBTrainers::RIVALGIRL,"Alana",_I("\rAwwww, I lost!"),false,13,false)
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Interpreter:276:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Scene_Map:68:in `main'
Message: Script error within event 17, map 2 (Millear Town):
Exception: NameError
Message: (eval):1:in `pbExecuteScript'The trainer type 'RIVALGIRL' is not valid. Please add the trainer
to the list of trainer types in the Editor. See the wiki for
more information.
***Full script:
pbTrainerBattle(PBTrainers::RIVALGIRL,"Alana",_I("\rAwwww, I lost!"),false,13,false)
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Interpreter:276:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Scene_Map:68:in `main'
The error says that "RIVALGIRL" is not a valid trainer type even though I've registered into the txt file.
If anyone knows what is wrong please reply, thanks.