• 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!
  • Cyndy, May, Hero (Conquest), or Wes - 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.

[Scripting Question] Syntax Errors. [Self Solved]

  • 1
    Posts
    13
    Years
    • Seen May 18, 2021
    So, I am trying to make hm moves into items and all the tutorials that exist online are for older versions of essentials because all the code the fiddle around with is different from the code I am seeing. I tried following some tutorials to the best of my ability with what I could and I am getting a Syntax error at specifically the "End" point of this chunk:

    Code:
    def Kernel.pbRockSmash
      move = getID(PBMoves,:ROCKSMASH)
      movefinder = Kernel.pbCheckMoves(move)
      if !pbCheckHiddenMoveBadge(BADGEFORROCKSMASH,false) || (!$DEBUG && !$PokemonBag.pbQuantity(PBItems::KNUCKLE)>0
        Kernel.pbMessage(_INTL("It's a rugged rock, but a Pokémon may be able to smash it."))
        return false
      end


    I tried changing moves and move into item and items but that didn't really change anything.

    I am attaching a screenshot of the exact message I get, important to say that where "end" is is on the 619th line.

    I would really appreciate any help I can get with this.



    EDIT: I have noticed at a later point that all code I add, whereever I add it, comes out as a syntax error for some reason.


    EDIT 2: Ignore, I have, on my own figured it out.
     

    Attachments

    • [PokeCommunity.com] Syntax Errors. [Self Solved]
      twe.PNG
      3.1 KB · Views: 7
    Last edited:
    Back
    Top