- 1
- Posts
- 3
- Years
- Seen Jul 7, 2023
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.
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.