Thread: [Question] Trainer properties (items etc.)
View Single Post
  #3    
Old December 16th, 2012, 02:02 PM
Arma's Avatar
Arma
Actually not mad at all
Community Supporter
 
Join Date: Dec 2009
Location: The Hague
Age: 21
Gender: Male
Nature: Jolly
Thank you! I should've looked at the tutorial for the nicknames, instead of the old notes.html file XD.

EDIT:
This error keeps popping up:
Spoiler:

Exception: RuntimeError
Message: Script error within event 4, map 2 (Lappet Town):
Exception: ArgumentError
Message: Section108:55:in `>'comparison of String with 0 failed
***Full script:
pbTrainerBattle(PBTrainers::FISHERMAN,"Andrew",_I("\bWashed out!"),false,0)
Interpreter:243:in `pbExecuteScript'
PokemonTrainers:55:in `pbLoadTrainer'
PokemonTrainers:21:in `each'
PokemonTrainers:21:in `pbLoadTrainer'
PokemonTrainersin `each'
PokemonTrainersin `pbLoadTrainer'
PokemonTrainers:322:in `pbTrainerBattle'
(eval)in `pbExecuteScript'
Interpreter:788:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:276:in `pbExecuteScript'
Interpreter:788: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'

I placed this if below the one checking for shadow Pokemon (line 54):
Code:
      if poke[16] > 0 && poke[16] < 100 #### percentage of pokemon's max health
        Pokebattle_Pokemon(poke[1]).hp = Pokebattle_Pokemon(poke[1]).maxHP * poke[16] / 100
      end
      poke.calcStats
__________________

Last edited by Arma; December 16th, 2012 at 02:56 PM.
Reply With Quote