The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script [Emerald] Static legendary encounter help

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 April 1st, 2020 (6:01 AM).
dearman4's Avatar
dearman4 dearman4 is offline
 
Join Date: Nov 2017
Location: Michigan
Age: 30
Gender: Male
Nature: Quirky
Posts: 620
Trying to make the legendaries respawn if knocked out so you can try again to catch them, is this possible?
__________________
My ROM hack, Pokemon Emerald Final:
https://www.pokecommunity.com/showthread.php?p=9898603
My beginner's devkit tutorial:
https://www.pokecommunity.com/showthread.php?t=411844
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old April 1st, 2020 (10:59 AM). Edited April 2nd, 2020 by Pyxal.
Pyxal's Avatar
Pyxal Pyxal is offline
It's pronounced pixel.
 
Join Date: Jul 2019
Location: Pakistan
Age: 17
Posts: 987
Quote:
Originally Posted by dearman4 View Post
Trying to make the legendaries respawn if knocked out so you can try again to catch them, is this possible?
I believe a slight change in the script is all that is needed.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old April 1st, 2020 (1:21 PM).
dearman4's Avatar
dearman4 dearman4 is offline
 
Join Date: Nov 2017
Location: Michigan
Age: 30
Gender: Male
Nature: Quirky
Posts: 620
Quote:
Originally Posted by Pikachu37 View Post
I believe a slight change in the script I see all that is needed.
..............very specific lol, any chance you know where to make such a change and what is it that is actually being changed?
__________________
My ROM hack, Pokemon Emerald Final:
https://www.pokecommunity.com/showthread.php?p=9898603
My beginner's devkit tutorial:
https://www.pokecommunity.com/showthread.php?t=411844
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old April 2nd, 2020 (12:47 AM). Edited April 12th, 2020 by Pyxal.
Pyxal's Avatar
Pyxal Pyxal is offline
It's pronounced pixel.
 
Join Date: Jul 2019
Location: Pakistan
Age: 17
Posts: 987
Quote:
Originally Posted by dearman4 View Post
..............very specific lol, any chance you know where to make such a change and what is it that is actually being changed?
I will try to tell you this as soon as possible. I just need to check the scripts of the areas and legendaries. But I am working on my hack too, so it MAY take awhile (and working on life too). Maybe edit something else until I respond, or just search the web. Really sorry for inconvenience.

EDIT: Okay. I have not even LOOKED at Emerald in a LONG time. So... for your question I choose Rayquaza. Here is the Rayquaza script:
Spoiler:

'---------------
#org 0x239722
lockall
checksound
cry 0x196 0x2
pause 0x28
waitcry
setwildbattle 0x196 0x46 0x0
setflag 0x8C1
special 0x13A
waitstate
clearflag 0x8C1
special2 LASTRESULT 0xB7
compare LASTRESULT 0x1
if 0x1 goto 0x8239768
compare LASTRESULT 0x4
if 0x1 goto 0x8239771
compare LASTRESULT 0x5
if 0x1 goto 0x8239771
setflag 0x1C0
releaseall
end

'---------------
#org 0x239768
setflag 0x1C0
goto 0x823977C

'---------------
#org 0x239771
setvar 0x8004 0x196
goto 0x8239785

'---------------
#org 0x23977C
fadescreen3 0x1
hidesprite LASTTALKED
fadescreen3 0x0
releaseall
end

'---------------
#org 0x239785
fadescreen3 0x1
hidesprite LASTTALKED
fadescreen3 0x0
bufferpokemon 0x0 0x8004
msgbox 0x8273204 MSG_KEEPOPEN '"The [buffer1] flew away!"
releaseall
end


'---------
' Strings
'---------
#org 0x273204
= The [buffer1] flew away!


Now I think regarding your question, Rayquaza flies away and does not come back? So here you can remove "setflag 0x8C1" & "clearflag 0x8C1", compile the script and put it in Rayquaza. This will solve the problem, I believe. The player will have too leave the map and come back, using this warp:
Spoiler:
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:18 AM.