The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script First romhack -Fire red Hidesprite 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 March 7th, 2022 (8:10 PM).
BH1642 BH1642 is offline
 
Join Date: Mar 2022
Posts: 1
Hi, I am hoping someone may be able to help.
I am creating my first ROM Hack in Fire Red as a proposal for my partner ( Little cliché and done before, I know)

I am having trouble with the following code
I am trying to give the player a pokemon on then have the NPC disappear, it is set to trigger after defeating each gym leader (Brock for this example)
I cannot get this to work, either the NPC continues to give the pokemon and infinate amount of times or disappears before that point or the games crashes.
I having been working on this for days and cannot get it right. I'm sure it is the stupidest little thing but I am lost.

#org 0x803DE0
lock
faceplayer
checkflag 0x254
if 0x0 goto 0x8803E12
checkflag 0x1202
if 0x1 goto 0x8803E1D
msgbox 0x8803E4C MSG_YESNO '"YOU DID IT!\nCould you really be t..."
compare LASTRESULT 0x1
if 0x1 goto 0x8803E23
msgbox 0x8803E8F MSG_NORMAL '"Oh no! What ever will we do now!"
release
end

'---------------
#org 0x803E12
msgbox 0x8803FC7 MSG_NORMAL '" SHHHHHHH! NOT NOW!\nDefeat him fi..."
release
end

'---------------
#org 0x803E1D
hidesprite 0x4
setflag 0x1203
release
end

'---------------
#org 0x803E23
msgbox 0x8803EB2 MSG_NORMAL '"I knew it was you!\nPlease look af..."
givepokemon 0xFC 0xA 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8803FB0 MSG_NORMAL '"[player] recieved a UNOWN!"
waitfanfare
setflag 0x1202
release
end

Any help or suggestions would be greatly appreciated.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old March 8th, 2022 (12:06 AM).
Tacobell24's Avatar
Tacobell24 Tacobell24 is offline
 
Join Date: Nov 2018
Posts: 232
So, I'm not too sure about the code, sorry.

But can I suggest fixing the typos at least?
Specifically: "received an Unown

and

"What ever will we do now?!"

Have you also checked the header script of the map? There may be something in that that is causing the issue, maybe
__________________
Praise the Solrock
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
Thread Tools

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.