• 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.
  • 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!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Triage ability not working

eggonyofase

Pokémon Invasion Director
  • 12
    Posts
    8
    Years
    I'm trying to add in Triage from Sun and Moon. I get no error messages when testing it, but the move does not get increased priority. Here is my code in Pokebattle_Battler under pbSuccessCheck:

    p=thismove.priority

    if USENEWBATTLEMECHANICS

    p+=1 if user.hasWorkingAbility(:PRANKSTER) && thismove.pbIsStatus?

    p+=3 if user.hasWorkingAbility(:TRIAGE) && thismove.isHealingMove?

    p+=1 if user.hasWorkingAbility(:GALEWINGS) && isConst?(thismove.type,PBTypes,:FLYING)

    end

    I've tried this using Heal Pulse, Heal Order, and Rest. None of them have worked. If any of you think it's necessary to try other moves, I will, but I doubt they will work. Thank you in advance.
     
    Last edited:
    the method "isHealingMove?" in PokeBattle_Move, does nothing and always returns false. did you edit it?
    edit: actually I noticed pbSuccessCheck happens AFTER choosing moves priority.
    you need to put your code in PokeBattle_Battle, in pbPriority method, where prankster& gale-wings check is.
     
    Last edited:
    the method "isHealingMove?" in PokeBattle_Move, does nothing and always returns false. did you edit it?
    edit: actually I noticed pbSuccessCheck happens AFTER choosing moves priority.
    you need to put your code in PokeBattle_Battle, in pbPriority method, where prankster& gale-wings check is.

    Works great. Thank you!
     
    Back
    Top