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

[Scripting Question] Going Back to an Old Evolution Method

sonicfan7895

Just a dude, I guess
  • 120
    Posts
    14
    Years
    Code:
      when PBEvolution::KOCreation
        return poke if pokemon.isFainted? && if pokemon.level=level

    So I'm going back to this evolution method that my team and I devised in early January of this year, except now that my team and I are much farther along in development, I am now getting a syntax error at my current line 940 in Pokemon_Evolution, which is where Custom3 would be located in my team's game.

    But so far I don't know what could be causing the syntax error... If need be I can provide the section of code where it's giving me a syntax error for visual reference, but if anyone could help me out, it would be much appreciated!

    I think it may have something to do with something in the previous bits of the code, but I am having trouble finding out where it is though...

    Again, many thanks if anyone can help me and my team out!
     
    Try changing

    Code:
    if pokemon.isFainted? && if pokemon.level=level

    to

    Code:
    if pokemon.isFainted? && pokemon.level=level


    Another possibility is that an end is missing.
     
    Back
    Top