Changes
Jump to navigation
Jump to search
! style="background:rgb(204,204,204)" | PC Save Address
|
| 0xE10
|
|
|
|
|
|
|
|
|
|
|
|
no edit summary
<noinclude>By [[User:Shard|Shard]].
Game variables can be accessed using the PSHM family of script functions, and can be written to by using the POPM family of functions. Which one you use depends on the size of the variable. 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) just gets the two bytes starting at address 0xD10 + 0x100 = 0xE10. I would assume the varmap is continuous in memory while the game is running as well.
</noinclude>
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" | Var type
! style="background:rgb(204,204,204)" | Var Number
! style="background:rgb(204,204,204)" | Description
|-
! align="left" | Word
| 84
| Last area visited. This is related to [[FF8/Field/Script/Opcodes/133_SETPLACE|SETPLACE]] somehow.<sub>4</sub>
|-
! align="left" | Word
| 256
| Main Story quest progress.
|-
! align="left" | Byte
| 266
| World map version? (3=Esthar locations unlocked)
|-
! align="left" | Byte
| 334
| Ultimecia Castle seals. See [[FF8/Field/Script/Opcodes/159_SEALEDOFF|SEALEDOFF]] for details.
|-
! align="left" | Byte
| 341
| Concert Crappiness (in FH).
|-
! align="left" | Byte
| 440
| "First time" dialogue flags. (+16 Nida)
|-
! align="left" | Byte
| 488
| Alternate Party Flags. Irvine +1/+16, Quistis +2/+32, Rinoa +4/+64, Zell +8/+128.<sub>1</sub>
|-
! align="left" | Byte
| 625
| Cutscene visited flags (+8 Zell's room)
|-
! align="left" | Byte
| 720
| Squall's costume (0=normal, 1=student, 2=SeeD, 3=Bandage on forehead)
|-
! align="left" | Byte
| 721
| Zell's Costume (0=normal, 1=student, 2=SeeD)
|-
! align="left" | Byte
| 722
| Selphie's costume (0=normal, 1=student, 2=SeeD)
|-
! align="left" | Byte
| 728
| Does lots of things.<sub>3</sub>
|-
! align="left" | Byte
| 730
| Joined Garden Festival committee (1=yes, 0=no)
|-
! align="left" | Byte
| 734
| Split Party Flags (+1 Zell, +2 Irvine, +4 Rinoa, +8 Quistis, +16 Selphie).<sub>2</sub>
|}