• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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

56
Posts
5
Years
  • 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?
     
    188
    Posts
    9
    Years
    • Seen Jan 21, 2024
    The bug appears to be in AddDependency2. Check your script and look for anything that doesn't look right.
     
    188
    Posts
    9
    Years
    • Seen Jan 21, 2024
    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.
     
    56
    Posts
    5
    Years
  • 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