The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Legendary Encounter Script issues

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 28th, 2018 (9:41 PM). Edited May 1st, 2018 by BirdstarCat13.
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
(original post info, outdated but keeping it makes the early replies make sense):
Spoiler:
I'm trying to set up a battle in Pokémon FireRed that lets the player get Mew, and I've got a script made from an example I saw in a video, but I don't know if this is correct or what exactly everything does. I'm also wanting to use Mewtwo's theme as a placeholder (I am not smart enough to make custom music for MEw and Mewtwo is close enough)

I haven't tested it yet (because I'm deathly afraid of crashes and I also don't know how) but here's what I already have:


#org @start
lock
faceplayer
checkflag 0x1213
if 0x01 goto $done
cry 0x97 0x2
#raw 0x33
pause 0x30
message @cry 0x6
playsong 0x156 0x0
waitkeypress
setwildbattle 0x97 0x55 0x0
setflag 0x1213
release
end

#org $done
message @mewkeeper 0x6
release
end

#org @cry
= Myuuu!!

#org @mewkeeper
= You've already earned my\ntrust, [player]. No need\nfor more fighting!


Any tips?


Updates:

I'm trying to set up a battle in Pokémon FireRed that lets the player get Mew, and I've got a script made from an example I saw in a video, with tweaks so it works in new versions of XSE. I'm wanting to use music from RSE (which is still in the FR ROM, but not even AdvanceMap knows how to view it) to make it more customized and unique, but The music is the only thing that doesn't work. I've got the script functioning - I got it imported and I get the Mew encounter, and even hacked the offset that makes Mew act like a teenager with his random naps, ignoring, and slapping himself for no reason not obey the player (I don't remember the thread or the offset, sorry :( ) and on top of that, edited the shiny spawn rate to make a shinyhunted mew reasonable for casual players, but I still can't make the music work. When I use the playsong command with a valid ID (I've tried both of the music pieces for Deoxys, I've tried Pallet Town's theme, I've tried all four generic encounter themes, etc.) it still uses the wild encounter music. I have not gotten it to play any other music. My current script uses Deoxys' theme and I even used a "special" command that people in this thread said should work. It didn't and it still uses the wild theme no matter what order I put things in relative to the playsong command, or what ID I put on it.

Here's my current script, that I have in my ROM right now:

Spoiler:

'---------------
#org 0x800023
lock
faceplayer
checkflag 0x1213
if 0x0 goto 0x8800039
msgbox 0x8800065 MSG_NORMAL '"You've already earned my trust,\n[..."
release
end

'---------------
#org 0x800039
cry 0x97 0x0
playsong 0x3028 0x0
msgbox 0x880005B MSG_NORMAL '"Myuuu!!"
wildbattle 0x97 0x55 0x0
special 0x138
playsong 0x157 0x0
setflag 0x1213
textcolor 0xED

'---------
' Strings
'---------
#org 0x800065
= You've already earned my trust,\n[player]. No need for more fighting!

#org 0x80005B
= Myuuu!!


Any ideas as to what dumb noob mistake I'm making? :P I'm honestly completely stuck here.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old April 30th, 2018 (3:28 PM).
xizqu's Avatar
xizqu xizqu is offline
 
Join Date: Feb 2018
Location: California
Gender: Male
Nature: Adamant
Posts: 82
Could be wrong here but why not open the script that is run when you encounter mewtwo? You could theoretically copy the code, change a few things and be done?
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old April 30th, 2018 (4:23 PM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
Quote:
Originally Posted by xizqu View Post
Could be wrong here but why not open the script that is run when you encounter mewtwo? You could theoretically copy the code, change a few things and be done?
Yeah, I saw that as a suggestion with Mew's script in Emerald while looking for methods of customizing the music and making flags/pointers work...after I already got most of it working, and was able to make the actual battle work correctly. At the current moment all I have to do to get the script just as I want it is the music, but

a) I just refuses to be different from the regular wild Pokémon theme, even if I use something 100% random like the GB heal theme, it still uses the regular wild encounter music.
b) I can't find the values for RSE music anywhere (as they are ID'd in FRLG) - no one has made a list showing all of FRLG's music yet. (There are a lot of claims, but they are only the FRLG stuff, they don't show the unused RSE music)
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old May 2nd, 2018 (9:57 AM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
So...apparently..."setwildbattle" DOES work...and is the command you need to make the custom music work...
__________________
-------------------------
I hate signatures that are just a line of text without any clear division. You weirdos know who you are ;)
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old July 15th, 2018 (4:35 PM). Edited July 15th, 2018 by gerff.
gerff's Avatar
gerff gerff is offline
 
Join Date: Mar 2018
Posts: 43
Quote:
Originally Posted by BirdstarCat13 View Post
So...apparently..."setwildbattle" DOES work...and is the command you need to make the custom music work...


Did you ever figure it out? I'm having the same problem but whatever I do, nothing works, the sprite never goes away.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old July 16th, 2018 (5:38 AM). Edited July 16th, 2018 by BirdstarCat13.
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
Quote:
Originally Posted by gerff View Post
Did you ever figure it out? I'm having the same problem but whatever I do, nothing works, the sprite never goes away.
LMFAO! This isn't a script that is meant to make the NPC leave, as you can tell by the segment where you can talk to it after the battle lol
__________________
-------------------------
I hate signatures that are just a line of text without any clear division. You weirdos know who you are ;)
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old July 17th, 2018 (6:01 PM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
Quote:
Originally Posted by Petuuuhhh View Post
Try special 0x03B
playsong 0x157 0x0
before wildbattle
and remove special 0x138
What's the difference on th specials?
__________________
-------------------------
I hate signatures that are just a line of text without any clear division. You weirdos know who you are ;)
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old July 17th, 2018 (11:30 PM).
Zeturic's Avatar
Zeturic Zeturic is offline
 
Join Date: Mar 2007
Posts: 787
Quote:
Originally Posted by BirdstarCat13 View Post
What's the difference on th specials?
https://www.pokecommunity.com/showthread.php?t=184273
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old July 18th, 2018 (8:38 AM). Edited July 18th, 2018 by BirdstarCat13.
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
Thanks for the info! Here's the newest version of what I've come up with - purpose is the same (encountering Mew) but the order of the sections has been changed to try to resolve the double encounter glitch while taking the advice above into account:

Code:
'---------------
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x1213
if 0x1 goto @encountered
cry 151 0x0
msgbox @fight_me_rattata MSG_NORMAL '"Myuuu!!"
special 138
playsong 154 0x0
setwildbattle 151 13 0xC8
setflag 0x1213
release
end

'---------
' Strings
'---------
#org @encountered
= You've already earned my trust,\n[player]. No need for more fighting!

#org @fight_me_rattata
= Myuuu!!
Edit: XSE keeps replacing the first MSG box with a "braille2" command, which crashes. Maybe don't replace my commands with different ones that crash? (yes I'm on the latest version)
__________________
-------------------------
I hate signatures that are just a line of text without any clear division. You weirdos know who you are ;)
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old July 19th, 2018 (1:04 AM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
Quote:
Originally Posted by Petuuuhhh View Post
Did you try not using special 0x138 with your current script?
that's the one that was already there...
__________________
-------------------------
I hate signatures that are just a line of text without any clear division. You weirdos know who you are ;)
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old July 20th, 2018 (6:06 PM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
Quote:
Originally Posted by Petuuuhhh View Post
I'm saying:

special 138
playsong 154 0x0
setwildbattle 151 13 0xC8

Isn't that going to make two battles happen because setwildbattle calls a wild battle? I don't know right off hand.
Well, using the order of the commands that you suggested, using special 138, did fix the double encounter glitch, but trying to talk to the NPC after the battle still doesn't work...
__________________
-------------------------
I hate signatures that are just a line of text without any clear division. You weirdos know who you are ;)
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:20 AM.