• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

Custom Ability LeechSeed

  • 5
    Posts
    9
    Years
    • Seen Dec 14, 2021
    Hey!!

    Im a total coding n00b! Could you please help me with creating a custom ability that when a pokemon enters the field he immidiatly leech seeds the opposing pokemon? The ability woud be called something like Garden Seeder.

    Thanks :)
     
    Last edited:
    Code:
    BattleHandlers::AbilityOnSwitchIn.add(:GARDENSEEDER,
      proc { |ability,battler,battle|
        battle.pbShowAbilitySplash(battler)
        battle.eachOtherSideBattler(battler.index) do |b|
          next if b.effects[PBEffects::LeechSeed]>=0
          next if b.pbHasType?(:GRASS)
          b.effects[PBEffects::LeechSeed] = battler.index
          battle.pbDisplay(_INTL("{1} was seeded!",b.pbThis))
        end
        battle.pbHideAbilitySplash(battler)
      }
    )

    i didn't test but it would be something like that
    honestly im fairly sure it'll have exploits, like u'll probably need to add more exceptions, i don't know if for example one of the terrains or magic guard, etc should protect the pokemon from being seeded
     
    Back
    Top