• 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.

Trainer Pokemon not attacking

OliveCopper

Captain of Olive Kappa
306
Posts
11
Years
    • Seen Nov 29, 2016
    WHAT FIXES?

    I'm having a very serious problem. I'm making a game, and one of the Gym Leaders has a Kricketune that doesn't attack. I have no clue what's causing this glitch. I mean, The same trainer's Shelmet can use a move, but not Kricketune. How am I supposed to fix this? Anyone?
     
    1,224
    Posts
    10
    Years
  • WHAT FIXES?

    It's a link with some fixes for a few moves in the AI, what do you mean?

    As for your problem, if you had read the thread, you would see it was already explained how you can at least get an error report out of this. From that it can be figured out what is causing your problem. Help us help you.
     

    OliveCopper

    Captain of Olive Kappa
    306
    Posts
    11
    Years
    • Seen Nov 29, 2016
    It's a link with some fixes for a few moves in the AI, what do you mean?

    As for your problem, if you had read the thread, you would see it was already explained how you can at least get an error report out of this. From that it can be figured out what is causing your problem. Help us help you.

    Kricketune can't have ANY of those moves/abilities. None of those fixes will work. Those would only work on Pokémon with those moves/abilities, Kricketune would be unnaffected by those codes, and still won't attack.
     
    1,224
    Posts
    10
    Years
  • Kricketune can't have ANY of those moves/abilities. None of those fixes will work. Those would only work on Pokémon with those moves/abilities, Kricketune would be unnaffected by those codes, and still won't attack.

    As I have already said, turn your internal flag on and tell us what error report shows up(you can press Ctrl+C to copy it when it appears). There's thousands of lines in the battle system, it's pretty hard to pinpoint one small bug without it.
     

    OliveCopper

    Captain of Olive Kappa
    306
    Posts
    11
    Years
    • Seen Nov 29, 2016
    As I have already said, turn your internal flag on and tell us what error report shows up(you can press Ctrl+C to copy it when it appears). There's thousands of lines in the battle system, it's pretty hard to pinpoint one small bug without it.

    What internal flag? How do I turn it on?
     

    OliveCopper

    Captain of Olive Kappa
    306
    Posts
    11
    Years
    • Seen Nov 29, 2016
    Bottom of the Debug Menu (press F9) is an option to toggle the Internal Flag. This will print out error reports instead of just skipping turns when the flag is on.

    Got it. Here's the report.

    ---------------------------
    Pokemon Bearberry
    ---------------------------
    Exception: NoMethodError

    Message: undefined method `*' for nil:NilClass

    PokeBattle_AI:2770:in `pbBetterBaseDamage'

    PokeBattle_AI:2559:in `pbGetMoveScore'

    PokeBattle_AI:3625:in `pbChooseMoves'

    PokeBattle_AI:3623:in `each'

    PokeBattle_AI:3623:in `pbChooseMoves'

    PokeBattle_AI:4044:in `pbDefaultChooseEnemyCommand'

    PokeBattle_ActualScene:2686:in `pbChooseEnemyCommand'

    PokeBattle_Battle:2343:in `pbCommandPhase'

    PokeBattle_Battle:2338:in `each'

    PokeBattle_Battle:2338:in `pbCommandPhase'

    PokeBattle_Battle:2286:in `pbStartBattleCore'

    PokeBattle_Battle:2285:in `logonerr'

    PokeBattle_Battle:2285:in `pbStartBattleCore'

    PokeBattle_Battle:2275:in `loop'

    PokeBattle_Battle:2298:in `pbStartBattleCore'

    PokeBattle_Battle:2099:in `pbStartBattle'

    PokemonTrainers:428:in `pbTrainerBattle'

    PokemonTrainers:427:in `pbSceneStandby'

    PokemonTrainers:429:in `pbTrainerBattle'

    PokemonTrainers:426:in `pbBattleAnimation'

    PokemonTrainers:426:in `pbTrainerBattle'

    PokemonDebug:786:in `pbDebugMenu'

    PokemonDebug:297:in `loop'

    PokemonDebug:824:in `pbDebugMenu'

    PokemonDebug:958:in `main'


    Where's the undefined class?

    NVM, just had to mess with the script in the Echoed Voice AI. Maybe IT was the problem. Hopefully, a Pokémon WILL attack if it knows Echoed Voice.
     
    Last edited:
    1,224
    Posts
    10
    Years
  • Got it. Here's the report.

    ---------------------------
    Pokemon Bearberry
    ---------------------------
    Exception: NoMethodError

    Message: undefined method `*' for nil:NilClass

    PokeBattle_AI:2770:in `pbBetterBaseDamage'

    PokeBattle_AI:2559:in `pbGetMoveScore'

    PokeBattle_AI:3625:in `pbChooseMoves'

    PokeBattle_AI:3623:in `each'

    PokeBattle_AI:3623:in `pbChooseMoves'

    PokeBattle_AI:4044:in `pbDefaultChooseEnemyCommand'

    PokeBattle_ActualScene:2686:in `pbChooseEnemyCommand'

    PokeBattle_Battle:2343:in `pbCommandPhase'

    PokeBattle_Battle:2338:in `each'

    PokeBattle_Battle:2338:in `pbCommandPhase'

    PokeBattle_Battle:2286:in `pbStartBattleCore'

    PokeBattle_Battle:2285:in `logonerr'

    PokeBattle_Battle:2285:in `pbStartBattleCore'

    PokeBattle_Battle:2275:in `loop'

    PokeBattle_Battle:2298:in `pbStartBattleCore'

    PokeBattle_Battle:2099:in `pbStartBattle'

    PokemonTrainers:428:in `pbTrainerBattle'

    PokemonTrainers:427:in `pbSceneStandby'

    PokemonTrainers:429:in `pbTrainerBattle'

    PokemonTrainers:426:in `pbBattleAnimation'

    PokemonTrainers:426:in `pbTrainerBattle'

    PokemonDebug:786:in `pbDebugMenu'

    PokemonDebug:297:in `loop'

    PokemonDebug:824:in `pbDebugMenu'

    PokemonDebug:958:in `main'


    Where's the undefined class?

    That would make sense, Kricketune gets Fury Cutter at level 10

    That line says
    Code:
    basedmg<<=(attacker.effects[PBEffects::FuryCutter]-1)
    when it should say
    Code:
    basedmg[COLOR="Red"]*[/COLOR]=(attacker.effects[PBEffects::FuryCutter]-1)
    if I'm not mistaken.
     
    Back
    Top