Giga Universe
Working on a tool.
- 121
- Posts
- 17
- Years
- South Africa
- Seen Sep 30, 2012
Ok, so I've been creating these for a while now. They're pretty useful (at least to me) and I've given some out to others already. So I'll post all my header files for XSE here, and then give an explanation to each one.
How to use a Header File:
Variable RAM Addresses (FireRed/LeafGreen):
This header file contains the RAM Addresses to the location where the data in a variable is stored. This file contains addresses for ALL the variables. Probably more useful for ASM hackers, it is nevertheless useful to oridnary scripters - especially when copying data from a variable to another RAM Address (that isn't a variable)
Example:
Applymovement Numbers (All Versions):
This header file contains numbers to help you easily plan applymovement commands.
If you have any header files you think are useful, post them here and I'll add them to this post (Remember to specify whether they are for FireRed/LeafGreen, Ruby/Sapphire or Emerald). Also, when I find mine I'll add them as well.
Please post any you have, remember to include a description, what game its for, a download link, and a example script (in a spoiler)
How to use a Header File:
1. Download the ZIP file attached to this post.
2. Unzip and extract the contents to the directory where XSE is installed.
3. Then, whenever you need to use the header file, in your script, type #include "name of header file".rbh (without the quotes)
4. Then you can use the contents of the file in that script.
2. Unzip and extract the contents to the directory where XSE is installed.
3. Then, whenever you need to use the header file, in your script, type #include "name of header file".rbh (without the quotes)
4. Then you can use the contents of the file in that script.
Variable RAM Addresses (FireRed/LeafGreen):
This header file contains the RAM Addresses to the location where the data in a variable is stored. This file contains addresses for ALL the variables. Probably more useful for ASM hackers, it is nevertheless useful to oridnary scripters - especially when copying data from a variable to another RAM Address (that isn't a variable)
Link: *image removed*
Example:
Spoiler:
#dynamic 0x800000
#include stdvariableaddresses.rbh //(Change to the name of your header file. This is the default name.)
//This script copies the contents of LASTRESULT to 0x3005537 and 0x3005538 three times,
//In three different ways
#org @start
//Copies contents of LASTRESULT to 0x3005537 and 0x3005538
copyvar 0x3005537 0x202E5B2
copyvar 0x3005538 0x202E5B3
//Same function as above
copyvar 0x3005537 VAR_800D
copyvar 0x3005538 VAR2_800D
//Same function as above
copyvar 0x3005537 VAR_LASTRESULT
copyvar 0x3005538 VAR2_LASTRESULT
end
#include stdvariableaddresses.rbh //(Change to the name of your header file. This is the default name.)
//This script copies the contents of LASTRESULT to 0x3005537 and 0x3005538 three times,
//In three different ways
#org @start
//Copies contents of LASTRESULT to 0x3005537 and 0x3005538
copyvar 0x3005537 0x202E5B2
copyvar 0x3005538 0x202E5B3
//Same function as above
copyvar 0x3005537 VAR_800D
copyvar 0x3005538 VAR2_800D
//Same function as above
copyvar 0x3005537 VAR_LASTRESULT
copyvar 0x3005538 VAR2_LASTRESULT
end
Applymovement Numbers (All Versions):
This header file contains numbers to help you easily plan applymovement commands.
Link: Download Here
Credits: Larsie13If you have any header files you think are useful, post them here and I'll add them to this post (Remember to specify whether they are for FireRed/LeafGreen, Ruby/Sapphire or Emerald). Also, when I find mine I'll add them as well.
Please post any you have, remember to include a description, what game its for, a download link, and a example script (in a spoiler)
Last edited: