Thread: [Essentials Script] Pokémon Following Character script
View Single Post
  #19    
Old December 16th, 2009 (9:02 PM).
help-14's Avatar
help-14 help-14 is offline
     
    Join Date: Jul 2007
    Location: Viet Nam
    Age: 24
    Gender: Male
    Nature: Adamant
    Posts: 282
    Quote:
    Originally Posted by Nosman View Post
    now i get this

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

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

    Section126:484:in `addEvent'undefined method `x' for nil:NilClass

    ***Full script:

    Kernel.pbAddPokemon(
    PBSpecies::PIKACHU,5
    )
    creat_6_dependent_event
    auto_change_without_animation


    Interpreter:238:in `pbExecuteScript'

    Game_Player_:17:in `pbAddDependency2'

    Pokemon follow you:225:in `creat_6_dependent_event'

    (eval):4: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'
    Did you config this correctly ?

    ###########################################
    #### Config Script For Your Game Here ####
    ###########################################

    Animation_Come_In = 447 #<= ID of Animation When Pokemon Come In PokeBall
    Animation_Come_Out = 446 #<= ID of Animation When Pokemon Come Out PokeBall
    Default_Following_Pokemon_Number = 1 #<= Default Number Of Following Pokemon
    Pokemon_1_ID = 142 #<= ID Of Event Use To Make First Pokemon, Should Over 200
    Pokemon_2_ID = 143 #<= ID Of Event Use To Make Second Pokemon, Should Over 200
    Pokemon_3_ID = 144 #<= ID Of Event Use To Make Third Pokemon, Should Over 200
    Pokemon_4_ID = 145 #<= ID Of Event Use To Make Fourth Pokemon, Should Over 200
    Pokemon_5_ID = 146 #<= ID Of Event Use To Make Fifth Pokemon, Should Over 200
    Pokemon_6_ID = 147 #<= ID Of Event Use To Make Sixth Pokemon, Should Over 200
    Common_Event_1 = 3 #<= ID of Common Event When You Talk To First Pokemon
    Common_Event_2 = 3 #<= ID of Common Event When You Talk To Second Pokemon
    Common_Event_3 = 3 #<= ID of Common Event When You Talk To Third Pokemon
    Common_Event_4 = 3 #<= ID of Common Event When You Talk To Fourth Pokemon
    Common_Event_5 = 3 #<= ID of Common Event When You Talk To Fifth Pokemon
    Common_Event_6 = 3 #<= ID of Common Event When You Talk To Sixth Pokemon