![]() |
Friendship/Happiness
Has there been any research regarding friendship/happiness? I'd like to edit the amount of happiness decreased when fainting. Is it fairly easy? And can someone point me to the right direction?
|
It's fairly complex, but I did find a table somewhere. This table leads me to believe that Bulbapedia is somewhat inaccurate with their happiness effects.
In FR, there is a table at 0825DFF6. Each entry is three bytes long. All three bytes are SIGNED bytes (FF = -1), and they represent how happiness changes depending on current happiness. The first byte is if happiness is between 0 and 99, the second is for between 100 and 199 and the last one is for 200 and up. I think the 8th entry is for fainting, as it contains three FFs (-1) which is what Bulbapedia says is for fainting. However, I did find another happiness modifier in that same routine that subtracts 5, 5 or 10 for the respective stages - this seems to be level-dependent so it is kinda confusing. Anyway, this table seems to handle basically everything related to happiness. However, you are limited to a signed byte for the change. This means you can subtract up to 128 (0x80) or add up to 127 (0x7F). Keep in mind that these numbers are affected by the luxury ball (and I assume soothe bell) and they cannot get out of the range 0 - 255. This means happiness will not under- or overflow. The algorithm also seems to take into account catch location. I haven't tested this but it looks like if you are at the location you caught it, you get a small boost. |
| All times are GMT -8. The time now is 2:22 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.