Thread: [Essentials Script] Pokémon Following Character script
View Single Post
  #16    
Old December 15th, 2009 (8:33 PM).
help-14's Avatar
help-14 help-14 is offline
     
    Join Date: Jul 2007
    Location: Viet Nam
    Age: 25
    Gender: Male
    Nature: Adamant
    Posts: 282
    Quote:
    Originally Posted by Nosman View Post
    i get tis message when i test it out

    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 22, map 39 (Oak's Lab):

    Section126:445:in `addEvent2'undefined method `x' for nil:NilClass

    ***Full script:

    Kernel.pbAddPokemon(
    PBSpecies::PIKACHU,5
    )
    # Get the Pokémon just added
    p=$Trainer.party[
    $Trainer.party.length-1]
    pbAutoLearnMove(p,PBMoves::TACKLE)
    auto_change_without_animation


    Interpreter:238:in `pbExecuteScript'

    DependentEvents:15:in `pbAddDependen'

    Pokemon folow you:160:in `auto_change_without_animation'

    (eval):8:in `pbExecuteScript'

    Interpreter:1652:in `eval'

    Interpreter:238:in `pbExecuteScript'

    Interpreter:1652:in `command_355'

    Interpreter:496:in `execute_command'

    Interpreter:190:in `update'

    Interpreter:104:in `loop'



    Interpreter:279:in `pbExecuteScript'

    Interpreter:1652:in `command_355'

    Interpreter:496:in `execute_command'

    Interpreter:190:in `update'

    Interpreter:104:in `loop'

    Interpreter:195:in `update'

    Scene_Map:100:in `update'

    Scene_Map:98:in `loop'

    Scene_Map:111:in `update'

    Scene_Map:67:in `main'



    This exception was logged in errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------



    pleaz help
    Add creat_6_dependent_event above auto_change_without_animation