Spoiler: Exception: RuntimeError

Message: Script error within event 8, map 128 (Desert PokeCenter):

Exception: TypeError

Message: Section162:638:in `-'nil can't be coerced into Fixnum

***Full script:

pbContest(PBSpecies::CHARIZARD,20,PBSpecies::SQUIRTLE,20,PBSpecies::ONIX,20)



Interpreter:243:in `pbExecuteScript'

Contest:638:in `pbDecreaseHearts'

Contest:842:in `pbFunctionsAdjustHearts'

Contest:194:in `pbTurnOne'

Contest:50:in `pbStartContest'

Contest:1244:in `pbStartContest'

Contest:1259:in `pbContest'

(eval):1:in `pbExecuteScript'

Interpreter:1600:in `eval'

Interpreter:243:in `pbExecuteScript'



Interpreter:276:in `pbExecuteScript'

Interpreter:1600:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:103:in `updateOldFL'

Scene_Map:101:in `loop'

Scene_Map:114:in `updateOldFL'

Simple HUD:122:in `update'



Hopefully someone can help me figure out what's going onCurrent Code: WARNING, LengthyI've marked where I think the problem starts up with #ErrorEdit: also marked other notable lines from the error message with their numberError MessageThe problem is that it keeps trying to use @pkmn3, though it appears to me that the script clearly says otherwise.