Advertiser Content
Seen December 3rd, 2014
Posted March 12th, 2013
11 posts
6.5 Years
Alright so everything was going well! I was able to create a trainer type with no problems at all and set the BGM and what ever.

Then moved onto making a new trainer. Seemed simple, I was able to pick a trainer type, put in his name, pick a pokemon for his line up, then pick his level.

How ever, after I pick the pokemon's level, I get this error :( Anyone know what the problem is?

I am using the editor to make the trainer! :3

---------------------------
Pokemon Essentials
---------------------------
Exception: NoMethodError

Message: undefined method `[]' for nil:NilClass

PokeBattle_Pokemon:729:in `initialize'

PokemonTrainers:102:in `new'

PokemonTrainers:102:in `pbNewTrainer'

PokemonTrainers:88:in `loop'

PokemonTrainers:111:in `pbNewTrainer'

PokemonTrainers:80:in `each'

PokemonTrainers:80:in `pbNewTrainer'

PokemonEditor:3696:in `pbTrainerBattleEditor'

PokemonEditor:3653:in `pbListScreenBlock'

PokemonEditor:1572:in `loop'



This exception was logged in

C:\Users\Joe\Saved Games/Pokemon United/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
Seen December 3rd, 2014
Posted March 12th, 2013
11 posts
6.5 Years
Solved! Took me quite some time frantically searching for a solution but I finally fixed it! Apparently just a simple error in the scripts in v11 :P

For others having the problem, here's how you solve it:

Copy this line: @obtainMode=4 if $game_switches && $game_switches[32]

Paste it on line 729 in the script PokeBattle_Pokemon and it should fix itself :3

Try editing the PBS file instead of using the editor. The editor doesn't work right now
Yep yep I was about to start doing that but I was determined to do a bit of bug fixing :P Not only helps other people and make it easier, but debugging for the creation kit in general for future releases :D
Advertiser Content