• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Selene, Mint, Solana - 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.

Adding a Seventh Growth Rate for shiny Pokémon

  • 132
    Posts
    10
    Years
    Specifically for shiny pokémon. I've studied the formulae used for levels above 100, and tried going off of that to make something like this:
    [PokeCommunity.com] Adding a Seventh Growth Rate for shiny Pokémon

    and so on.

    When getting a pokémon, I get the exception error:

    'pbGetExpInternal'undefined local variable method
    'pokemon' for PBExperience:Module


    So the method doesn't seem to be agreeing with pokemon.isShiny?, or something is wrong with pokemon.isShiny? in general. So either I could make a new growth rate specifically for shiny pokémon or I could keep struggling with making a new formula. Anyone have any ideas?
     
    The reason you're having a problem is because the function pbGetExpInternal doesn't work on a Pokemon. It's there so the game can figure out what the lowest EXP is for a certain growth rate at a certain level.

    Now I'm sitting here trying to figure out how to apply the growth rate for shinies...
     
    You are correct. Thanks for leading me in the right direction! PBExperience is NOT where I want to be, but rather PokeBattle_Battle. At this point, I've managed to replace the lucky egg item effects with the script because putting the script elsewhere didn't seem to work.

    [PokeCommunity.com] Adding a Seventh Growth Rate for shiny Pokémon


    Normally, it would say something along the lines of
    exp=(exp*3/2).floor if isConst?(thispoke.itemInitial,PBItems,:LUCKYEGG)
    Of course, replacing this sacrifices the lucky egg item until I find another place to put the script, but that's fine by me.
     
    You don't need to replace the line, just put it below the other one. One line multiplies the EXP by 3/2 (one and a half), the other multiplies it by 4. The two are not mutually exclusive, and can even stack with each other.
     
    Back
    Top