The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other E4 flag questions

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 August 7th, 2014 (3:49 PM).
TheRabbit TheRabbit is offline
Banned
 
Join Date: Jul 2014
Gender: Male
Posts: 69
I'm trying to script a couple of things I that I want to happen after the E4 is beaten (on FireRed).

1) Where in the world can I place the setflags? For example, I want to move the setflag that opens the Cerulean Cave to when the E4 is beaten, but neither of the last 2 rooms are showing any editable scripts.

2) How do I distinguish between trips through the E4? I want certain events to happen after beating it the first time, then different events to trigger after the second time.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 7th, 2014 (5:59 PM). Edited August 7th, 2014 by DJTiki.
DJTiki's Avatar
DJTiki DJTiki is offline
absolutely should have never given me the internet
 
Join Date: Mar 2014
Location: Florida, USA
Gender: Male
Nature: Adamant
Posts: 1,256
1) Setflags don't work like that. Setflags are just there to tell the game, if a script happened or not. So you probably want to use setmaptile, if that's the problem. Or use warps.

2) This is where you would use setflags, mainly on the script after the Champion, saves time. Just have a few checkflags, to distinguish the first, second time etc.

EDIT: Just realized what you meant by the first question.*facepalm
Just add it before the Hall of Fame. It's easy, Cerulean Cave should open by itself, just remove the setflag for when it opens orignally, I believe by Oak.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 7th, 2014 (9:26 PM).
TheRabbit TheRabbit is offline
Banned
 
Join Date: Jul 2014
Gender: Male
Posts: 69
Quote:
Originally Posted by DJTiKi View Post
1) Setflags don't work like that. Setflags are just there to tell the game, if a script happened or not. So you probably want to use setmaptile, if that's the problem. Or use warps.

2) This is where you would use setflags, mainly on the script after the Champion, saves time. Just have a few checkflags, to distinguish the first, second time etc.

EDIT: Just realized what you meant by the first question.*facepalm
Just add it before the Hall of Fame. It's easy, Cerulean Cave should open by itself, just remove the setflag for when it opens orignally, I believe by Oak.
I can't though...that's why I'm asking. In the last 2 rooms (champion battle and hall of fame), the scripts are not view-able or editable. So where do I put it?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old August 7th, 2014 (9:30 PM).
DJTiki's Avatar
DJTiki DJTiki is offline
absolutely should have never given me the internet
 
Join Date: Mar 2014
Location: Florida, USA
Gender: Male
Nature: Adamant
Posts: 1,256
Quote:
Originally Posted by TheRabbit View Post
I can't though...that's why I'm asking. In the last 2 rooms (champion battle and hall of fame), the scripts are not view-able or editable. So where do I put it?
They are level scripts. So when you enter the room, it'll start the script. So you should find it there. :)
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old August 8th, 2014 (6:03 AM).
iv0's Avatar
iv0 iv0 is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 145
You can go to the Header > Map script. The vs. gary battle address is this:
162B76 and champion room this: 162D70
__________________

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:21 AM.