The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script HeartGold: Give egg script?

Notices
For all updates, view the main page.

Binary ROM Hacking Need 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.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old November 19th, 2017 (8:50 PM).
AmoraChinchilla's Avatar
AmoraChinchilla AmoraChinchilla is offline
 
Join Date: Oct 2017
Posts: 5
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!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 20th, 2017 (1:14 PM).
Buffel Saft's Avatar
Buffel Saft Buffel Saft is offline
 
Join Date: Sep 2013
Gender: Male
Posts: 1,550
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
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:16 AM.