• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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.

[Error] NameError for something that wasn't edited

  • 11
    Posts
    5
    Years
    • Seen Sep 23, 2022
    EDIT: Problem resolved! There was just a few missing semicolons and an end statement.

    When I try to playtest I get this error:

    Script 'PokeBattle_Clauses' line 60: NameError occurred.
    undefined method 'pbUseMove' for class 'PokeBattle_Battler'

    I don't know what went wrong, since I never edited anything in PokeBattle_Clauses. Anyone have any idea what the issue could be?

    For reference, what I have been editing since the last successful playtest:
    1. added Ash-Greninja and Battle Bond, following the instruction in this thread: "ULTRA NECROZMA & GRENINJA-ASH" (apparently I'm not allowed to post links yet. Sorry.)
    2. Got a SyntacError in PokeBattle_Battler and fixed it by adding "end" to the very end (even though I'm not sure why it even needed an extra "end")
     
    Last edited:
    Try removing those two things you did and if it runs well, It means you've done something wrong within them.
     
    That second thing you did almost certainly is the cause of your problems. It sounds like you forgot an end inside one of the functions, and by putting it at the end you effectively deleted a load of functions including pbUseMove.
     
    That second thing you did almost certainly is the cause of your problems. It sounds like you forgot an end inside one of the functions, and by putting it at the end you effectively deleted a load of functions including pbUseMove.

    OH yes that thing is it.
     
    GOT IT!
    I just had to look back through everything and saw that I missed an end statement and a couple semicolons. Now it's all working AND I learned more about end statements. Thank, guys.
     
    Back
    Top