• 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.

PokeBattle_Battle Syntax Error

  • 2
    Posts
    7
    Years
    • Seen Jun 30, 2022
    I tried adding Gen 7 mechanics (specifically Psychic Terrain) to the scripts, but when I tried opening the game, it had this syntax error:

    PokeBattle_Battle Syntax Error


    Here's what the area looks like:

    PokeBattle_Battle Syntax Error


    I tried adding one more end and deleting one end, but it still has the same error. Could someone help with this?
     
  • 1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    You're probably missing an end earlier in the script (presumably inside whichever def you thinks ends on 4149). Or at least I can't see anything wrong in that screenshot.
     
  • 2
    Posts
    7
    Years
    • Seen Jun 30, 2022
    I know that it isn't feasible, but if anyone wants, I can show them my whole code so they can try to find the error. Adding this whole thing to the thread doesn't allow the page to load.

    Otherwise, does anyone have a clean PokeBattle_Battle script that they can pass to me?
     

    Ego13

    hollow_ego
  • 311
    Posts
    6
    Years
    Like mgriffin said, you are most likely to miss an end somewhere earlier. RMXP doesn't really recognize this and thinks something is wrong at the very end.
    Check the part where you added Psychic Terrain
     
    Back
    Top