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

[Scripting Question] isHealingMove? error with triage.

37
Posts
5
Years
    • Seen Jul 25, 2020
    i'm trying to script the triage ability but when i use a healing move the game gives me this error.

    Code:
    Message: undefined method `isHealingMove?' for #<PokeBattle_Battle:0xecfb718>
    PokeBattle_Battle:1338:in `pbPriority'
    PokeBattle_Battle:1323:in `each'
    PokeBattle_Battle:1323:in `pbPriority'
    PokeBattle_Battle:2965:in `pbAttackPhase'
    PokeBattle_DynamicBattle:198:in `pbStartBattleCore'
    PokeBattle_DynamicBattle:197:in `logonerr'
    PokeBattle_DynamicBattle:197:in `pbStartBattleCore'
    PokeBattle_DynamicBattle:185:in `loop'
    PokeBattle_DynamicBattle:206:in `pbStartBattleCore'
    PokeBattle_Battle:2606:in `pbStartBattle'
    Exception: NoMethodError
    Message: undefined method `isHealingMove?' for #<PokeBattle_Battle:0xecfb718>
    PokeBattle_Battle:1338:in `pbPriority'
    PokeBattle_Battle:1323:in `each'
    PokeBattle_Battle:1323:in `pbPriority'
    PokeBattle_Battle:3158:in `__clauses__pbEndOfRoundPhase'
    PokeBattle_Clauses:42:in `pbEndOfRoundPhase'
    PokeBattle_DynamicBattle:202:in `pbStartBattleCore'
    PokeBattle_DynamicBattle:201:in `logonerr'
    PokeBattle_DynamicBattle:201:in `pbStartBattleCore'
    PokeBattle_DynamicBattle:185:in `loop'
    PokeBattle_DynamicBattle:206:in `pbStartBattleCore'
    Exception: NoMethodError
    Message: undefined method `isHealingMove?' for #<PokeBattle_Battle:0xea62368>
    PokeBattle_Battle:1338:in `pbPriority'
    PokeBattle_Battle:1323:in `each'
    PokeBattle_Battle:1323:in `pbPriority'
    PokeBattle_Battle:2965:in `pbAttackPhase'
    PokeBattle_DynamicBattle:198:in `pbStartBattleCore'
    PokeBattle_DynamicBattle:197:in `logonerr'
    PokeBattle_DynamicBattle:197:in `pbStartBattleCore'
    PokeBattle_DynamicBattle:185:in `loop'
    PokeBattle_DynamicBattle:206:in `pbStartBattleCore'
    PokeBattle_Battle:2606:in `pbStartBattle'
    Exception: NoMethodError
    Message: undefined method `isHealingMove?' for #<PokeBattle_Battle:0xea62368>
    PokeBattle_Battle:1338:in `pbPriority'
    PokeBattle_Battle:1323:in `each'
    PokeBattle_Battle:1323:in `pbPriority'
    PokeBattle_Battle:3158:in `__clauses__pbEndOfRoundPhase'
    PokeBattle_Clauses:42:in `pbEndOfRoundPhase'
    PokeBattle_DynamicBattle:202:in `pbStartBattleCore'
    PokeBattle_DynamicBattle:201:in `logonerr'
    PokeBattle_DynamicBattle:201:in `pbStartBattleCore'
    PokeBattle_DynamicBattle:185:in `loop'
    PokeBattle_DynamicBattle:206:in `pbStartBattleCore'
     

    Poq

    144
    Posts
    6
    Years
    • Seen Aug 28, 2021
    So, the very beginning of the error tells you what the problem is. Your script includes the method "isHealingMove?" In the PokeBattle_Battle script section, but that method is never defined with a
    Code:
    def isHealingMove?
    script. Look at the script for
    Code:
    def isSoundBasedMove?
    and reverse engineer it.
     
    Back
    Top