Binary ROM HackingNeed a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.
I'd like to be able to give players randomized Eevee eggs, like the egg you get from Mr. Pokemon. But examining his script doesn't really give me any insight on how to do that- Neither how he gives you an egg at all, nor how I would change the species to an Eevee.
If anyone could help that would be wonderful, thank you!
Your problem is probably that Mr. Pokemon doesn't give you an actual egg, he just gives you a key item named "Mystery Egg". The Togepi egg script is in the Violet City mart.
If you want an example script, this is the give egg script for the Riolu egg in Sacred Gold:
Spoiler:
Script #1
PlayFanfare 0x5DC
LockAll
FacePlayer
SetVariableHero 0x0
Message 0x0
CheckPartyNumber 0x800C
If 0x800C 0x6
CompareLastResultJump 0x1 Function_#5
Message 0x2
PlaySound 0x4B0
FadeDefaultMusic
008A 0x1BF 0xA // This part actually gives the player the egg. 0x1BF is species index number, not sure what the other two byes are.
SetFlag [flag number]
Message 0x3
WaitButton
CloseMessageOnKeyPress
ReleaseAll
End
Function #5
Message 0x1
WaitButton
CloseMessageOnKeyPress
ReleaseAll
End