• 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!
  • Dawn, Gloria, Juliana, or Summer - 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] Making a peaceful Leftovers item?

  • 18
    Posts
    5
    Years
    • Seen Jul 13, 2020
    Hey guys,
    I'm trying to make an item that will work like Leftovers, but will heal the pokemon only if it didn't deal any damage this turn.
    Sounds simple enough but I've been struggling with it for quite a while.
    Anyone can try and make that item?
    Thanks!!
     
    Just copy the leftovers code, and make the effect only work if this: if !((Pokemon object).lastMoveUsed.isDamageMove)

    Brilliant!
    It didn't work out exactly as you wrote it though, but after a few manipulations I got it to work with this:
    move = PokeBattle_Move.pbFromPBMove(@battle,PBMove.new(self.lastMoveUsed))
    if !move.pbIsDamaging?


    Thank you! You truly saved the day!
     
    Back
    Top