• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

[Eventing Question] (V18.1) Following Trainer event not working, Syntax error but i don't know what I did wrong

  • 55
    Posts
    6
    Years
    • Seen Mar 22, 2025
    Here is the old following trainer event that works fine
    https://ibb.co/zm4bLSV
    Here is the dependent event
    https://ibb.co/pZbpyjf
    ===

    Here is the new following trainer event that doesn't work
    https://ibb.co/2WW0mZQ
    Here is the dependent event
    https://ibb.co/sytDBVb
    ===

    I genuinely don't understand why the new event keeps on crashing, with this message;
    ---------------------------
    Luminous
    ---------------------------
    [Pokémon Essentials version 18.1.dev]

    Exception: RuntimeError

    Message: Script error within event 66 (coords 136,13), map 271 (Regal Mountains):

    Exception: SyntaxError

    Message: (eval):2:in `pbExecuteScript'compile error
    (eval):2: syntax error
    66,"Sidero follow",009)
    ^



    ***Full script:

    pbAddDependency2(
    66,"Sidero follow",009)
    pbRegisterPartner(
    :TWILIGHTADMIN_SIDERO,
    "Sidero")




    Backtrace:





    Backtrace:

    Interpreter:246:in `pbExecuteScript'

    Interpreter:1458:in `command_355'

    Interpreter:359:in `execute_command'

    Interpreter:155:in `update'

    Interpreter:102:in `loop'

    Interpreter:158:in `update'

    Scene_Map:162:in `update'

    Scene_Map:160:in `loop'

    Scene_Map:169:in `update'

    Scene_Map:229:in `main'



    This exception was logged in

    C:\Users\USERNAME\Saved Games\Luminous\errorlog.txt.

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


    ===

    TLDR, it says that there is a syntax error. What am I doing wrong?
     
    The bug appears to be in AddDependency2. Check your script and look for anything that doesn't look right.
     
    It appears to be an ID mismatch. If you change the first argument to @event_id that makes the event become the follower event without the possibility of an ID mismatch error.
     
    I'm sorry, I don't think I follow - could you explain in simpler terms? What is an argument and how do I type that (@event_id) command, is there a specific way?
     
    Back
    Top