Lunos
Random Uruguayan User
- 3,170
- Posts
- 16
- Years
- Montevideo (Uruguay)
- Seen yesterday
Following your lead, that was pretty easy to do.[Pokeemerald] Hidden Power type in summary screen
What's left to do:
- Add support to show the right type inside a battle
Make the game read the dynamic type of Hidden Power in battles (Em)
To be honest, this is something I already tried to look into, but none of the things I tried worked.
After seeing Jirachii's post, I decided to take a stab at it once more and learning from their implementation, I was able to successfully pull it off.
The changes are done in the
We calculate Hidden Power's dynamic type normally, store the result in a variable called
The changes can be checked in this commit:
https://github.com/LOuroboros/pokeemerald/commit/508d93d956191cdc9339d53d24b8a901e8f5dcb0
And that's pretty much it.
To be honest, this is something I already tried to look into, but none of the things I tried worked.
After seeing Jirachii's post, I decided to take a stab at it once more and learning from their implementation, I was able to successfully pull it off.
The changes are done in the
MoveSelectionDisplayMoveType
function located in the src/battle_controller_player.c
file.We calculate Hidden Power's dynamic type normally, store the result in a variable called
type
and then copy the Type Name string of said type instead of the Type Name string of its true type.![[PokeCommunity.com] Simple Modifications Directory [PokeCommunity.com] Simple Modifications Directory](https://media.discordapp.net/attachments/369552511557697537/804133280827703366/Untitled3190.png)
The changes can be checked in this commit:
https://github.com/LOuroboros/pokeemerald/commit/508d93d956191cdc9339d53d24b8a901e8f5dcb0
And that's pretty much it.