• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
    4
    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!
     

    HeroesFightingFear

    "The Champion of Alon"
  • 99
    Posts
    4
    Years
    One of my other unique ideas, going off the Friend Ball code:

    Code:
    BallHandlers::OnCatch.add(:GLEAMBALL,proc{|ball,battle,pokemon|
       pokemon.makeShiny
    })
     
  • 20
    Posts
    5
    Years
    • Seen Jun 30, 2023
    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!
     

    WolfPP

    Spriter/ Pixel Artist
  • 1,309
    Posts
    5
    Years
    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