• 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!
  • Akari, Selene, Mint, Solana - 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.

SyntaxError caused by changing code

  • 2
    Posts
    9
    Years
    • Seen Feb 13, 2016
    Heya everyone who's reading, I have a problem and honestly i'm not sure how to fix it.

    I tried to make it so that there'd be a script that would let me make it so a wild Pokemon couldn't be catchable, but I guess I did it wrong and now whenever I try to start up my game I get this.

    http ://imgur. com/a/gH45F (the bottom image is the error I receive)

    and on the top is what happens when I go there via the script editor. The thing is, there's nothing obviously wrong to me that i'm aware of. (then again i'm a noob at Pokemon Essentials so it could be that too)

    so my question is, how can I fix my game, and how can I make it so I can make a wild Pokemon uncatchable?

    (P.S the forum won't let me post links so I hard to do a little workaround, just remove the spaces I made and it should work. I know i'm probably breaking the rules but i'm obviously not a bot so i'd really appreciate some sympathy.)

    Thanks for reading, and sorry is this is hard to understand. It's my first time here tbh.
     
    You've deleted a bunch of ends that ought to be where the empty lines are in your picture.

    My advice is to look at that part of the code in a clean copy of Essentials, compare it to what you have, and fix it.
     
    You've deleted a bunch of ends that ought to be where the empty lines are in your picture.

    My advice is to look at that part of the code in a clean copy of Essentials, compare it to what you have, and fix it.

    I tried what you said, and here's what happened.

    So I got the ends back exactly as they appear in the clean Essentials-

    http ://imgur .com/a/jeEd9 (clean essentials)

    http ://imgur .com/a/oBZdv (broken essentials)

    http ://imgur .com/a/KO2vW (the error I get after putting the ends back, which I also noticed is where the last end is)

    Could you please look at these and tell me if you notice anything off in the broken essentials?
     
    If the error message points to a line which says end, then it's probably superfluous. Indenting the code is a good thing, because it shows you how many ends you need to close everything properly.

    Have a look at the code you've fiddled with, make sure it's all indented properly, and figure out if there are too many or too few ends lying around.

    Before you ask, my next suggestion is to start again with a clean copy of that code. You said you'd done something to it, and clearly that's what is causing a problem. If you can't locate the problem, do it from scratch and pay more attention.
     
    Back
    Top