• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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.

Turning Leftovers into an ability?

  • 19
    Posts
    10
    Years
    • Seen Aug 23, 2015
    I want to try making a ability that heals the user at the end of each turn. Like rain dish, but without the need for weather. Figure I can use Leftovers code to work something out. I can make new abilities just fine, but I get confused on where in the scripts to put them sometimes. If I made one like this that heals the user every turn would I put it in the same area as rain dish, or somewhere else?
     
    I don't think there's a point in mimicking leftovers as a base instead of using similar abilities like rain dish, as you said.
    All you need to do is copy the same structure of rain dish and tweak it so to remove the need for rain to be taking place, I guess.
     
    I want to try making a ability that heals the user at the end of each turn. Like rain dish, but without the need for weather. Figure I can use Leftovers code to work something out. I can make new abilities just fine, but I get confused on where in the scripts to put them sometimes. If I made one like this that heals the user every turn would I put it in the same area as rain dish, or somewhere else?

    It's really simple to change Rain Dish so it does what you want it to. Place this under Rain Dish in PokeBattle_Battle. You can change the "/16" to "/8" "/4" "/2" anything like that.

    Code:
          # Heal Each Turn
          if isConst?(i.ability,PBAbilities,:HEALSELF)
            hpgain=i.pbRecoverHP((i.totalhp/16).floor,true)
            pbDisplay(_INTL("{1} restored its HP a little!",i.pbThis)) if hpgain>0
          end
     
    Back
    Top