• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Error] I can't use AddDependency and I don't know why

  • 6
    Posts
    5
    Years
    • Seen Apr 21, 2023
    I've used dependency before and it worked fine. I'm confused for why this time it isn't working. It all looks the same to me. It would be great if someone could help. Basically what I'm trying to do is get the gym leader to join with the player to battle the villain. However, whenever I try to connect them this error shows up.


    [Pokémon Essentials version 17.2]

    Exception: RuntimeError

    Message: Script error within event 35 (coords 23,5), map 113 (Floor 4):

    Exception: NoMethodError

    Message: Game_CommonEvent:27:in `trigger'undefined method `trigger' for nil:NilClass

    ***Full script:

    pbAddDependency2(36,"Cheyenne",0)
    pbRegisterPartner(
    :LEADER_Cheyenne,
    "Cheyenne",2)


    Interpreter:243:in `pbExecuteScript'

    Game_CommonEvent:58:in `refresh'

    Game_CommonEvent:15:in `initialize'

    PField_DependentEvents:150:in `new'

    PField_DependentEvents:150:in `createEvent'

    PField_DependentEvents:494:in `addEvent'

    PField_DependentEvents:26:in `pbAddDependency2'

    (eval):1:in `pbExecuteScript'

    Interpreter:1606:in `eval'

    Interpreter:243:in `pbExecuteScript'



    Interpreter:276:in `pbExecuteScript'

    Interpreter:1606:in `command_355'

    Interpreter:494:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map:163:in `update'

    Scene_Map:161:in `loop'

    Scene_Map:170:in `update'

    Scene_Map:234:in `main'



    This exception was logged in

    C:\Users\skull\Saved Games\Pokemon Shock v2\errorlog.txt.

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

    It would be great if someone could help. Thanks :)
     
    Thank you for your response. Changing the 0 to 3 changed the error and I was still confused until I realized the game was also looking for a version 2 of the character, when there is currently only 1 version in my trainers list. Thank you so much!
     
    Back
    Top