• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Pokemons can't use any moves

  • 58
    Posts
    7
    Years
    • Seen Jan 30, 2021
    I recently add these scripts.

    I've used scripts and resources from this thread: https://www.pokecommunity.com/threads/387706
    Other than these packs, I added nothing that can affect moves.

    Everything worked but later during battle, after choosing the move.

    This error occured
    Code:
    [Pok?mon Essentials version 17]
    Exception: ArgumentError
    Message: wrong number of arguments(0 for 1)
    PokeBattle_Move:373:in `hasWorkingAbility'
    PokeBattle_Move:373:in `pbTypeModifier'
    PokeBattle_Battler:2558:in `pbSuccessCheck_ebs'
    EliteBattle_0:467:in `pbSuccessCheck'
    PokeBattle_Battler:2837:in `pbProcessMoveAgainstTarget_ebs'
    PokeBattle_Battler:2833:in `each'
    PokeBattle_Battler:2833:in `pbProcessMoveAgainstTarget_ebs'
    EliteBattle_0:475:in `pbProcessMoveAgainstTarget'
    PokeBattle_Battler:3317:in `pbUseMove_ebs'
    PokeBattle_Battler:3297:in `loop'

    And now Pokemons can't use any moves.

    Here are the scripts that are the cause of the error
    https://pastebin.com/GVicNkYQ

    I have written #this line for the particular lines.

    Method of contact :
    You can DM me.
    or you can simply post on this thread.
    Here is my discord tag: Pokemonspecialist#5473
     
    Last edited:
    That error makes sense. hasWorkingAbility what? Like the error says you have to pass an ability to it, because it checks if the Pok?mon has a particular ability. Look around for other examples of how it's used.
     
    Back
    Top