Changes
Jump to navigation
Jump to search
Because we don't have a way to analyze the battle Items in grey are unused by field scripts yet, (some of these variables (even the unused ones) them may be used during battlesin battle scripts).
Bedtime for me
The variables are all stored in save files, with the save block starting at address 0xD10 on uncompressed PC saves. The parameter to access a variable in the game scripts is basically the offset from this point in the variable block. For example, getting main story progress (word 256, which is word 0x100 in hex) just gets the two bytes starting at address 0xD10 + 0x100 = 0xE10. The varmap is continuous in memory while the game is running as well. In the en-US version of the original and SE releases (and likely most other versions), the varblock begins at 0x18fe9b8. You can use [https://www.mediafire.com/?ucolf65ewq1yoty this Cheat Engine table] to track them as you play.
</noinclude>