You are not logged in.
Hi everyone, i search pointers for Ghost sprite appears in Lavander Tower. I know sprite itself is at 366B5. I know pointers for Kabutops fossile (id = B6) is at 154F and for Aerodactyl fossile (id = B7) is at 155F but i can't find where are pointers for Ghost (id = B8). I also found bytes at 1558 corresponding of adress where Ghost sprite is located but when i tried to change it, nothing happened. If anyone knows hex address where is stored this pointer can help, it would be much appreciated. Thanks.
Last edited by stvoo (2017-10-18 20:22:59)
As you mentioned, the ghost pic is at 0D:66B5 (0x366B5).
There are two pointers to this address.
In the function GetMonHeader (at addresses 0x1537) there is this line:
ld de,GhostPic ; 11 B5 66 - at address 0x1557
The other pointer to GhostPic is in a function named InitWildBattle (at address 0F:6F8B (0x3EF8B)), which contains this line:
ld bc, GhostPic ; 01 B5 66 - at address 0x3EFA8
Is there any particular reason you are hex editing your hack?
You should strongly consider using the disassembly instead.
From there, the GetMonHeader function is in home.asm and the InitWildBattle function is in engine/battle/core.asm