The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Confused about flags and variables

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 22nd, 2017 (8:46 PM).
Puffle754's Avatar
Puffle754 Puffle754 is offline
 
Join Date: May 2011
Location: Ridge Island
Gender: Male
Nature: Timid
Posts: 48
I've been trying to get my head around scripting. I looked up what variables and flags would be safe to use, but I'm getting really confused.

I've read through multiple guides, and they all seem to say that, In Fire Red, variables 0x4011-0x40FF are safe, and flags 200-2FF are safe.

The thing is, I'm seeing people use variables such as 6010, and flags such as 1016, and they seem to work just fine.

I'm I just missing something obvious?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old March 23rd, 2017 (6:17 AM).
Pleasure's Avatar
Pleasure Pleasure is offline
 
Join Date: Apr 2015
Gender: Male
Nature: Timid
Posts: 113
They probably expanded the number of safe flags using this.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old March 23rd, 2017 (9:26 AM).
Anthroyd's Avatar
Anthroyd Anthroyd is offline
Professor
 
Join Date: May 2016
Location: United States
Gender: Male
Posts: 210
You're not missing anything. A lot of hacks will use flags and variables that aren't safe to use, and happen to get lucky. That's just how it is. Keeping your range between [0x4011, 0x40FF] and [200, 2FF] is best practice.

Another reason you may see other hacks using seemingly random values is because they are reusing old variables and flags from the vanilla game's person events (still unstable) or they've expanded the amount of values usable using the guide Pleasure linked to above ^^.
__________________
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:17 AM.