• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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!
  • 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
    8
    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:

    [PokeCommunity.com] PokeBattle_Battle Syntax Error


    Here's what the area looks like:

    [PokeCommunity.com] 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?
     
    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.
     
    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?
     
    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