• 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] Inverting Happiness Gain

220
Posts
13
Years
    • Seen Nov 29, 2021
    So there's this held item that, among other things, causes a Pokemon to lose happiness whenever they would gain it (to support moves like Frustration). Problem is, I have no idea how to even approach implementing it.

    Halp?
     
    1,682
    Posts
    8
    Years
    • Seen yesterday
    You should take a look at def changeHappiness in PokeBattle_Pokemon (v16.2).
    I only have like 2 minutes but the code has an example with the soothe bell increasing a positive gain.
    same thing.
     
    Back
    Top