• 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] The Mirage Ball

HeroesFightingFear

"The Champion of Alon"
  • 99
    Posts
    5
    Years
    I want to do something like this, but for Legendaries and Mythicals.

    Code:
    BallHandlers::ModifyCatchRate.add(:NETBALL,proc{|ball,catchRate,battle,battler|
       catchRate*=3 if battler.pbHasType?(:BUG) || battler.pbHasType?(:WATER)
       next catchRate
    })

    If anyone can help, that'd be great!
     
    One of my other unique ideas, going off the Friend Ball code:

    Code:
    BallHandlers::OnCatch.add(:GLEAMBALL,proc{|ball,battle,pokemon|
       pokemon.makeShiny
    })
     
    I want to do something like this, but for Legendaries and Mythicals.

    Code:
    BallHandlers::ModifyCatchRate.add(:NETBALL,proc{|ball,catchRate,battle,battler|
       catchRate*=3 if battler.pbHasType?(:BUG) || battler.pbHasType?(:WATER)
       next catchRate
    })

    If anyone can help, that'd be great!

    You could do something like this:
    Code:
    BallHandlers::ModifyCatchRate.add(:MIRAGEBALL,proc{|ball,catchRate,battle,battler|
       catchRate*=3 if battler.pbHasSpecies?(:CELEBI) || battler.pbHasSpecies?(:MEWTWO) || battler.pbHasSpecies?(:ENTEI)
       next catchRate
    })

    You'd have to individually add each legendary and mythical pokemon you wanted the ball to have a higher catch rate on, but it would get the job done, I hope this helps!
     
    Or set by Habitat (all legendaries nor mythicals are Rare into their Habitats IIRC. If so, remember to put an exception for Unown).
     
    Back
    Top