Wannabe God
Witty title
- 7
- Posts
- 13
- Years
- Mars
- Seen Mar 10, 2015
Okay, I've tried many, many times to put a trainer battle in the game I'm working on by putting the trainer in both the trainertypes and trainers file, but whenever I run the script, it always acts like I hadn't put the trainer in the trainers file at all. I've tried multiple solutions, but when I run it in debug mode it acts like the trainer isn't there at all, and when I run it out of debug mode, I get a similar error, which I guess I'll have to type out because the site won't let me post an external image:
Script 'interpreter' line 276: RuntimeError occured
Script error within event 16, map 8, (Team Galacitc HQ F3):
Exception: RuntimeError
Message: Section09:194:in'pbMissingTrainer'Can't find trainer
(RivalMGalacticGrunt;5,ID 1)
***full script
pbtrainerBattle(PBTrainers::RIVALM,"Galactic Grunt;5._I("You actually beat me?"),false,1,true)
Interpreter:243:in'pbExecuteScript"
PokemonTrainers:318:in 'pbTrainerBattle'
(eval):1:in 'pbExecuteScript'
Interpreter:788:in 'eval'
Interpreter:243:in'pbexecutesScript'
Interpreter:788:in'command_111'
Interpreter:320:in:'execute_command'
Interpreter:193:in'update'
Interpreter:106:in 'loop'
Interpreter:198:in'update'
This is really annoying me since I know that there must be a simple explanation, but I've spend hours trying to work it out without seeing it.
P.S. Here's the trainer in the trainers file (I tried the script as 5,5 instead of 5, but no luck):
RIVALM
Galactic Grunt;5,5
1,POTION
GLAMEOW,10,,FAKEOUT,SCRATCH,GROWL,,,,0,false,,10,70,,false
P.S.S
If the answer is super obvious and I'm an idiot for not figuring it out, please don't be mean about it, I've spent around an hour searching for the answer in posts already, and I'm really, really new to coding.
EDIT: I changed the rival's name to something less complicated, but it still acts like the rival isn't scripted in. Curses.
Script 'interpreter' line 276: RuntimeError occured
Script error within event 16, map 8, (Team Galacitc HQ F3):
Exception: RuntimeError
Message: Section09:194:in'pbMissingTrainer'Can't find trainer
(RivalMGalacticGrunt;5,ID 1)
***full script
pbtrainerBattle(PBTrainers::RIVALM,"Galactic Grunt;5._I("You actually beat me?"),false,1,true)
Interpreter:243:in'pbExecuteScript"
PokemonTrainers:318:in 'pbTrainerBattle'
(eval):1:in 'pbExecuteScript'
Interpreter:788:in 'eval'
Interpreter:243:in'pbexecutesScript'
Interpreter:788:in'command_111'
Interpreter:320:in:'execute_command'
Interpreter:193:in'update'
Interpreter:106:in 'loop'
Interpreter:198:in'update'
This is really annoying me since I know that there must be a simple explanation, but I've spend hours trying to work it out without seeing it.
P.S. Here's the trainer in the trainers file (I tried the script as 5,5 instead of 5, but no luck):
RIVALM
Galactic Grunt;5,5
1,POTION
GLAMEOW,10,,FAKEOUT,SCRATCH,GROWL,,,,0,false,,10,70,,false
P.S.S
If the answer is super obvious and I'm an idiot for not figuring it out, please don't be mean about it, I've spent around an hour searching for the answer in posts already, and I'm really, really new to coding.
EDIT: I changed the rival's name to something less complicated, but it still acts like the rival isn't scripted in. Curses.
Last edited: