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

[Scripting Question] isHealingMove? error with triage.

  • 37
    Posts
    6
    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'
     
    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