• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
6
Years
    • Seen Jan 30, 2021
    I recently add these scripts.

    I've used scripts and resources from this thread: https://www.pokecommunity.com/showthread.php?t=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:
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    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