The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script How to activate the in-game events in Emerald and FireRed through ROM Hacking instead of cheats?

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 July 4th, 2018 (3:37 PM). Edited July 4th, 2018 by Foxes.
Foxes's Avatar
Foxes Foxes is offline
 
Join Date: Sep 2015
Gender: Male
Posts: 59
So currently I've got a script in FireRed that, upon talking to an NPC, will give you the Mysticticket and Auroraticket, but I've heard that just having the items is not enough to trigger the event. I also can't find the item code for the Old Sea Map in Emerald anywhere, so I can't complete my script for that.

1) Does anyone know of a way to activate the events without cheats since they don't work by just having the items?

2) Does anyone know the XSE item code for the Old Sea Map in Emerald, or how I can find it out (like using a cheat to obtain it and then finding it by looking through the save file or something like that)?

EDIT: I found the item code for the Old Sea Map, now I just need to know how to enable the event without using cheats.

Script:
Spoiler:
Code:
#dynamic 0x37F320

#org @start
lock
faceplayer
checkflag 0x1201
if 0x1 goto @nomore
msgbox @talk1 0x6
giveitem 0x113 0x1 0x0
giveitem 0x172 0x1 0x0
giveitem 0x173 0x1 0x0
giveitem 0x178 0x1 0x0
setflag 0x1201
release
end

#org @nomore
msgbox @talk2 0x6
release
end

#org @talk1
= Hey, I've got some neat stuff for \nyou!

#org @talk2
= For my own POKéMON, I give them\nperfectly suited nicknames!\pIt's my expression of, uh[.]\noriginality, yes, that's it!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 4th, 2018 (4:07 PM).
tkim's Avatar
tkim tkim is offline
 
Join Date: May 2011
Posts: 232
setflag 0x84A and setflag 0x84B for FireRed.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 4th, 2018 (5:20 PM).
Foxes's Avatar
Foxes Foxes is offline
 
Join Date: Sep 2015
Gender: Male
Posts: 59
Quote:
Originally Posted by tkim View Post
setflag 0x84A and setflag 0x84B for FireRed.
Thanks man. I'm assuming this script should work for FR?

Spoiler:
Code:
#dynamic 0x71B167

#org @start
lock
faceplayer
checkflag 0x1201
if 0x1 goto @nomore
msgbox @talk1 0x6
giveitem 0x172 0x1 0x0
giveitem 0x173 0x1 0x0
setflag 0x1201
setflag 0x84A
setflag 0x84B
release
end

#org @nomore
msgbox @talk2 0x6
release
end

#org @talk1
= Hey, I've got some neat stuff for \nyou!

#org @talk2
= A POKéMON becomes easier to \ncatch if it has a status problem.\pSleep, poison, burn, or paralysis[.]\nThose are all effective.\pBut catching POKéMON is never\na sure thing!


Also, do you happen to know what to do for the Eon Ticket, Mystic Ticket, Aurora Ticket and Old Sea Map in Emerald? Would the flags for the Mystic Ticket and Aurora Ticket be the same?
I found this when looking at the script for the ferry person in Lilycove, and I assume that the "compare" parts are related to the events, but I'm not entirely sure what I'd do with it. Again, thanks for any help.

Spoiler:
Code:
#org 0x21E00F
lock
faceplayer
checkflag 0x864
if 0x0 goto 0x821E54D
call 0x821E194
call 0x821E1C6
call 0x821E1F8
call 0x821E22A
call 0x821E25C
call 0x821E2A6
compare 0x400C 0x2
if 0x1 goto 0x821E350
compare 0x400B 0x1
if 0x1 goto 0x821E2F0
compare 0x400B 0x2
if 0x1 goto 0x821E320
compare 0x400B 0x4
if 0x1 goto 0x821E350
compare 0x400B 0x8
if 0x1 goto 0x821E41D
compare 0x400B 0x0
if 0x5 goto 0x821E44D
goto 0x821E080
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old July 6th, 2018 (5:29 PM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
You can also just write a script to give the player the items...
__________________
-------------------------
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 6th, 2018 (6:28 PM). Edited July 6th, 2018 by Foxes.
Foxes's Avatar
Foxes Foxes is offline
 
Join Date: Sep 2015
Gender: Male
Posts: 59
Quote:
Originally Posted by BirdstarCat13 View Post
You can also just write a script to give the player the items...
Did you read the post? At all? Just having the items is not enough to trigger the event. I needed to know what the flags were that would allow the event to be activated, and I know them now for both FireRed and Emerald.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old July 7th, 2018 (6:05 AM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
Quote:
Originally Posted by Gameskiller01 View Post
Did you read the post? At all? Just having the items is not enough to trigger the event. I needed to know what the flags were that would allow the event to be activated, and I know them now for both FireRed and Emerald.
Additionally, you can also just make your own wild encounters for the respective legendaries and just make a quick hex edit that forces them to obey (in case of something like Mew/Deoxys)
__________________
-------------------------
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 7th, 2018 (6:27 AM).
Foxes's Avatar
Foxes Foxes is offline
 
Join Date: Sep 2015
Gender: Male
Posts: 59
Quote:
Originally Posted by BirdstarCat13 View Post
Additionally, you can also just make your own wild encounters for the respective legendaries and just make a quick hex edit that forces them to obey (in case of something like Mew/Deoxys)
I don't need to anymore. I've got scripts for both FireRed and Emerald that allows the events themselves to be accessed from within the game.

FireRed:
Spoiler:
Code:
'---------------
#org 0x71B167
lock
faceplayer
checkflag 0x1201
if 0x1 goto 0x871B19E
msgbox 0x871B1A9 MSG_NORMAL '"Hey, I've got some neat stuff for ..."
giveitem 0x172 0x1 MSG_OBTAIN
giveitem 0x173 0x1 MSG_OBTAIN
setflag 0x1201
setflag 0x84A
setflag 0x84B
release
end

'---------------
#org 0x71B19E
msgbox 0x871B1D3 MSG_NORMAL '"A POKéMON becomes easier to \ncatc..."
release
end


'---------
' Strings
'---------
#org 0x71B1A9
= Hey, I've got some neat stuff for \nyou!

#org 0x71B1D3
= A POKéMON becomes easier to \ncatch if it has a status problem.\pSleep, poison, burn, or paralysis[.]\nThose are all effective.\pBut catching POKéMON is never\na sure thing!


Emerald:
Spoiler:
Code:
'---------------
#org 0x37F40B
givecoins 0xE7
buffertrainerclass 0xE8 0xFFAB
lock
faceplayer
checkflag 0x1201
if 0x1 goto 0x837F467
msgbox 0x837F472 MSG_NORMAL '"Hey, I've got some neat stuff for ..."
giveitem 0x113 0x1 MSG_OBTAIN
giveitem 0x172 0x1 MSG_OBTAIN
giveitem 0x173 0x1 MSG_OBTAIN
giveitem 0x178 0x1 MSG_OBTAIN
setflag 0x8B3
setflag 0x8D5
setflag 0x8D6
setflag 0x8E0
setflag 0x1201
release
end

'---------------
#org 0x37F467
msgbox 0x837F49C MSG_NORMAL '"For my own POKéMON, I give them\np..."
release
end


'---------
' Strings
'---------
#org 0x37F472
= Hey, I've got some neat stuff for \nyou!

#org 0x37F49C
= For my own POKéMON, I give them\nperfectly suited nicknames!\pIt's my expression of, uh[.]\noriginality, yes, that's it!
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old March 5th, 2021 (5:02 AM). Edited March 8th, 2021 by pakrett-bm.
pakrett-bm pakrett-bm is offline
 
Join Date: Jan 2009
Posts: 2
Quote:
Originally Posted by Gameskiller01 View Post
I don't need to anymore. I've got scripts for both FireRed and Emerald that allows the events themselves to be accessed from within the game.

FireRed:
Spoiler:
Code:
'---------------
#org 0x71B167
lock
faceplayer
checkflag 0x1201
if 0x1 goto 0x871B19E
msgbox 0x871B1A9 MSG_NORMAL '"Hey, I've got some neat stuff for ..."
giveitem 0x172 0x1 MSG_OBTAIN
giveitem 0x173 0x1 MSG_OBTAIN
setflag 0x1201
setflag 0x84A
setflag 0x84B
release
end

'---------------
#org 0x71B19E
msgbox 0x871B1D3 MSG_NORMAL '"A POKéMON becomes easier to \ncatc..."
release
end


'---------
' Strings
'---------
#org 0x71B1A9
= Hey, I've got some neat stuff for \nyou!

#org 0x71B1D3
= A POKéMON becomes easier to \ncatch if it has a status problem.\pSleep, poison, burn, or paralysis[.]\nThose are all effective.\pBut catching POKéMON is never\na sure thing!


Emerald:
Spoiler:
Code:
'---------------
#org 0x37F40B
givecoins 0xE7
buffertrainerclass 0xE8 0xFFAB
lock
faceplayer
checkflag 0x1201
if 0x1 goto 0x837F467
msgbox 0x837F472 MSG_NORMAL '"Hey, I've got some neat stuff for ..."
giveitem 0x113 0x1 MSG_OBTAIN
giveitem 0x172 0x1 MSG_OBTAIN
giveitem 0x173 0x1 MSG_OBTAIN
giveitem 0x178 0x1 MSG_OBTAIN
setflag 0x8B3
setflag 0x8D5
setflag 0x8D6
setflag 0x8E0
setflag 0x1201
release
end

'---------------
#org 0x37F467
msgbox 0x837F49C MSG_NORMAL '"For my own POKéMON, I give them\np..."
release
end


'---------
' Strings
'---------
#org 0x37F472
= Hey, I've got some neat stuff for \nyou!

#org 0x37F49C
= For my own POKéMON, I give them\nperfectly suited nicknames!\pIt's my expression of, uh[.]\noriginality, yes, that's it!
What I need to change to make this script compatible with fire red french version ?

Edit: I understood how it works, here is my adaptation for "rouge feu". The flags are the same so it was easy port. I give this script to a rocket grunt.

Spoiler:
Code:
#org 0x7106B0
lock
faceplayer
checkflag 0x1201
if 0x1 goto 0x87106F0
msgbox 0x8710700 MSG_NORMAL
giveitem 0x172 0x1 MSG_OBTAIN
giveitem 0x173 0x1 MSG_OBTAIN
setflag 0x1201
setflag 0x84A
setflag 0x84B
release
end

#org 0x7106F0
msgbox 0x8710790 MSG_NORMAL
release
end

#org 0x710700
= La TEAM ROCKET est en mauvaise \nposture, je quitte le navire.\pJ'ai fouillé l'ENTREPOT avant de \npartir, regardes ce que j'ai trouvé!

#org 0x710790
= Gardes ça pour toi, \nce sera notre petit secret.
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old July 18th, 2021 (7:03 AM).
Super Versekr Dark Super Versekr Dark is offline
 
Join Date: Jan 2017
Gender: Male
Posts: 79
#dynamic 0xX00000

#org @inicio
msgbox @msg msg_normal
checkflag 0x3D8
if 0x0 goto 0x8488EB5
checkflag 0x84A
if 0x0 goto 0x8489689
checkflag 0x84B
if 0x0 goto 0x84894B9
msgbox @msg1 msg_normal
release
end


#org @msg
= Welcome to the mystery event\nsystem.

#org @msg1
= There are still events to\ndiscover.
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old February 25th, 2022 (11:09 PM).
GildedSpirit GildedSpirit is offline
 
Join Date: Sep 2021
Posts: 5
Quote:
Originally Posted by Gameskiller01 View Post
So currently I've got a script in FireRed that, upon talking to an NPC, will give you the Mysticticket and Auroraticket, but I've heard that just having the items is not enough to trigger the event. I also can't find the item code for the Old Sea Map in Emerald anywhere, so I can't complete my script for that.

1) Does anyone know of a way to activate the events without cheats since they don't work by just having the items?

2) Does anyone know the XSE item code for the Old Sea Map in Emerald, or how I can find it out (like using a cheat to obtain it and then finding it by looking through the save file or something like that)?

EDIT: I found the item code for the Old Sea Map, now I just need to know how to enable the event without using cheats.

Script:
Spoiler:
Code:
#dynamic 0x37F320

#org @start
lock
faceplayer
checkflag 0x1201
if 0x1 goto @nomore
msgbox @talk1 0x6
giveitem 0x113 0x1 0x0
giveitem 0x172 0x1 0x0
giveitem 0x173 0x1 0x0
giveitem 0x178 0x1 0x0
setflag 0x1201
release
end

#org @nomore
msgbox @talk2 0x6
release
end

#org @talk1
= Hey, I've got some neat stuff for \nyou!

#org @talk2
= For my own POKéMON, I give them\nperfectly suited nicknames!\pIt's my expression of, uh[.]\noriginality, yes, that's it!
How do I use this?
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old February 25th, 2022 (11:09 PM).
GildedSpirit GildedSpirit is offline
 
Join Date: Sep 2021
Posts: 5
Quote:
Originally Posted by Super Versekr Dark View Post
#dynamic 0xX00000

#org @inicio
msgbox @msg msg_normal
checkflag 0x3D8
if 0x0 goto 0x8488EB5
checkflag 0x84A
if 0x0 goto 0x8489689
checkflag 0x84B
if 0x0 goto 0x84894B9
msgbox @msg1 msg_normal
release
end


#org @msg
= Welcome to the mystery event\nsystem.

#org @msg1
= There are still events to\ndiscover.
How do I use this code?
Reply With Quote
  #12   Link to this post, but load the entire thread.  
Old February 26th, 2022 (2:07 AM).
Super Versekr Dark Super Versekr Dark is offline
 
Join Date: Jan 2017
Gender: Male
Posts: 79
Quote:
Originally Posted by GildedSpirit View Post
How do I use this code?
just put it on an npc
Reply With Quote
  #13   Link to this post, but load the entire thread.  
Old February 27th, 2022 (3:02 AM).
Tacobell24's Avatar
Tacobell24 Tacobell24 is offline
 
Join Date: Nov 2018
Posts: 232
Pretty sure you can jut use Advance Map to change an existing item script to get the items you want instead.
Or else just change a warp to end up on Faraway Island etc .
__________________
Praise the Solrock
Reply With Quote
  #14   Link to this post, but load the entire thread.  
Old February 28th, 2022 (12:16 AM).
Hiroshi Sotomura's Avatar
Hiroshi Sotomura Hiroshi Sotomura is offline
Ashe – House of Blue Lions
 
Join Date: Nov 2002
Location: Melbourne, Australia
Gender: Male
Nature: Quirky
Posts: 18,639
Just gonna point out that the answer is there in posts #2 and #7, and it doesn’t need to be repeated ad nauseam that just giving the item does not work.

Anyone needing script help should check out Avara’s excellent scripting tutorial for answers on how to put scripts together, compile them, and apply them to NPCs and triggers.
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:19 AM.