- 132
- Posts
- 9
- Years
- New Brunswick
- Seen May 6, 2023
I'm trying to customize an egg, but I get a crash produced by the method $Trainer.lastParty.
The crash report:
I recall other methods, like $Trainer.party[0], giving me grief, but I'm not sure why. I'd appreciate any help.
Spoiler:
The crash report:
Spoiler:
Exception: RuntimeError
Message: Script error within event 9, map 126 (Shaymin Cave):
Exception: NoMethodError
Message: (eval):1:in `pbExecuteScript'undefined method `lastParty' for #<PokeBattle_Trainer:0x48c7a30>
***Full script:
egg=$Trainer.lastParty
egg.level=25
egg.calcStats
Message: Script error within event 9, map 126 (Shaymin Cave):
Exception: NoMethodError
Message: (eval):1:in `pbExecuteScript'undefined method `lastParty' for #<PokeBattle_Trainer:0x48c7a30>
***Full script:
egg=$Trainer.lastParty
egg.level=25
egg.calcStats
I recall other methods, like $Trainer.party[0], giving me grief, but I'm not sure why. I'd appreciate any help.