• 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!
  • 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] Increasing Mart Items' Cost based on a Variable

  • 17
    Posts
    9
    Years
    • Seen Mar 31, 2025
    So, I'm trying to balance the Game's Economy here (Its ridiculous how you struggle to buy 10 Potions in the beginning but can buy 50 Hyper Potions easily by the time you reach the League) & I'm thinking of doing that by making items cost more as the game progresses. (I know that we can achieve this by 1-line scripts like setPrice but its kinda tiring to do that for ALL the items in the Mart, 1 at a time.)

    To put into simpler words, I'm looking for a Custom Script which increases both the Purchase & Selling Prices (or maybe just the Purchase Prices only) of all Items by a certain percentage. The percentage is given by a formula that makes use of a value from a variable. Maybe even make the script be turned on/off by a switch? That would help too :P

    For an example, say the formula is this: (100+(x*5))%
    where x is... say, the number of Gym Badges. (I am aware that the number of Gym Badges is already stored elsewhere & not in a user-defined variable, but just assume this case for the sake of the example) Thus, the items are 40% costlier by the time you finish Gym 8, but only 25% when you finish Gym 5 & so on.

    So, any help here? Thanks in advance! :)
     
    There is no "quick" solution, you will have to line script regardless, not all items individually, but line script nonetheless. Sorry.
     
    Back
    Top