• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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] [SOLVED] PokeBattle_Clauses having an unexpected error [ESSENTIALS V19.1]

theqwertyup7

theqwertyup7
  • 3
    Posts
    3
    Years
    I added a couple of moves to the code, (nothing serious beyond a move that behaves similarly to Sticky Web), and then when I try to boot a playtest, the following error pops up:

    Script '211:PokeBattle_Clauses:131' line in `<class: NameError occurred.
    undefined method `pbFailsAgainstTarget?' for class `PokeBattle_Move_067'

    At this point, I haven't even opened the PokeBattle_Clauses scripts, and I'd never even touched Skill Swap, which is the move this is referring to. None of the other moves in Clauses seem to have this issue, so I'm at a loss as to what's going on.
     
    Last edited by a moderator:
    I added a couple of moves to the code, (nothing serious beyond a move that behaves similarly to Sticky Web), and then when I try to boot a playtest, the following error pops up:

    Script '211:PokeBattle_Clauses:131' line in `<class: NameError occurred.
    undefined method `pbFailsAgainstTarget?' for class `PokeBattle_Move_067'

    At this point, I haven't even opened the PokeBattle_Clauses scripts, and I'd never even touched Skill Swap, which is the move this is referring to. None of the other moves in Clauses seem to have this issue, so I'm at a loss as to what's going on.

    I suspect those battle clauses are deprecated because they generate infinite issues (I had a similar error with a function that infinitely called itself).
    Unless you really really really want to use battle clauses, you should just comment the code for class PokeBattle_Move_067 in the file PokeBattle_Clauses (do NOT comment the class PokeBattle_Move_067 in any other file though).
     
    I suspect those battle clauses are deprecated because they generate infinite issues (I had a similar error with a function that infinitely called itself).
    Unless you really really really want to use battle clauses, you should just comment the code for class PokeBattle_Move_067 in the file PokeBattle_Clauses (do NOT comment the class PokeBattle_Move_067 in any other file though).

    This fixed it, thanks!
     
    :)
     
    Back
    Top