The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Run level script each time map is entered

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 November 15th, 2015 (12:35 PM). Edited November 15th, 2015 by Uncommon.
Uncommon's Avatar
Uncommon Uncommon is offline
Oozma Kappa
 
Join Date: Jun 2015
Location: Johto
Nature: Careful
Posts: 192
Hey all,

Hopefully simple question. I’ve got a script that I want to activate each time I enter a map. I’ve inserted it by following diego’s level script tutorial - works beautifully. However, it’ll only run the first time I enter the map, because it increments the flag variable. To try to get it to activate every time, I tried removing the line where the variable is incremented. Now, when I enter the map, the script runs correctly, but I’m stuck in place. The music keeps playing but my character is frozen.

I’m wondering if there’s something obvious I’m doing wrong or there’s a better way to do this.

I’ve also tried using script type 03 (on entering map/not on menu close), but now when I enter the map I just get a black screen. Is script type 03 limited in the commands it can use?

I’ve also been pretty thoroughly through cooley’s tutorial but I’m still not seeing a way to do this.

Thanks in advance to anyone who can provide a little insight on this!


P.S. cross-referencing my post asking the same question in the Quick Questions thread
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 15th, 2015 (5:22 PM).
C me's Avatar
C me C me is offline
Creator of Pokemon League Of Legends
 
Join Date: Jan 2014
Age: 26
Gender: Male
Posts: 681
Ok firstly, go back to using script type 2 for these kind of level scripts.

Don't know about FireRed but in Emerald he are variables which get reset like 0x4000 and 0x4001. They're used for the same reaosn you want to use them, to have a repeating level script.

Simply change your variable to 0x4000 or 0x4001 (for Emerald, again unsure about firered) and it will work.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 15th, 2015 (6:14 PM).
Uncommon's Avatar
Uncommon Uncommon is offline
Oozma Kappa
 
Join Date: Jun 2015
Location: Johto
Nature: Careful
Posts: 192
Quote:
Originally Posted by C me View Post
Ok firstly, go back to using script type 2 for these kind of level scripts.

Don't know about FireRed but in Emerald he are variables which get reset like 0x4000 and 0x4001. They're used for the same reaosn you want to use them, to have a repeating level script.

Simply change your variable to 0x4000 or 0x4001 (for Emerald, again unsure about firered) and it will work.
Thanks so much for your help! Confirming that this also works for FireRed.
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:10 AM.