Skip to content
L edited this page Apr 15, 2024 · 24 revisions

GSW - Global Saved Work

GSW are global integers which persist between game reloads. GSW 0 is 32-bit, and all others are 8-bit. They can be accessed directly by evt scripts, or by code through the swByteGet/swByteSet functions. GSW 0-2047 exist.

Descriptions

Values thought to be unreferenced by the game aren't listed here - please let me know if you think any are missing. Values used as arrays can be grouped as x-y (inclusive) in the first column. Anyone is free to document values they discover, preferrably with some evidence (description of an observation, or a link to code).

GSW Description Evidence
0 Story sequence position Documentation
1 Pit of 100 Trials Floor, 0-99 Flipside and 100-199 Flopside dan.c
2 Tracks the amount of maps Flamm has in stock
21 Controls save block dialogue
22 Tracks the amount of times you've hit the Whacka
23 Character selected (on save file load) nandmgr.c
24 Number of times entering Shadoo's room dan.c
25-54 Card ids available in Flopside shop, 2 bytes per card evt_shop_init_flopside_cards
151 Tracks if you've interacted with Red in 3D in 1-2
153-182 Coin tracking swdrv.c
201-204 Tracks debt amount in 2-3
205-208 Tracks rubee count in 2-3
209 Set to 0 when Mimi's spider form appears in 2-4 after entering a room, set to 1 when you leave a room and set to 5 when Mimi is defeated at the end of the chapter
210 Part of a timer controlling when Mimi's spider form appears in 2-4 after entering a room
211 Part of a timer controlling when Mimi's spider form appears in 2-4 after entering a room
212 Part of a timer controlling when Mimi's spider form appears in 2-4 after entering a room
213 Part of a timer controlling when Mimi's spider form appears in 2-4 after entering a room
214 Part of a timer controlling when Mimi's spider form appears in 2-4 after entering a room
215 Part of a timer controlling when Mimi's spider form appears in 2-4 after entering a room
216 Part of a timer controlling when Mimi's spider form appears in 2-4 after entering a room
217 Part of a timer controlling when Mimi's spider form appears in 2-4 after entering a room
218-247 Coin tracking swdrv.c
251 Tracks the amount of times you've looked at Tippi through the 3-4 keyhole
252 Tracks the amount of times you've looked at Francis through the 3-4 keyhole
253-282 Coin tracking swdrv.c
301-330 Coin tracking swdrv.c
351 Tracks the tablet placed in the far left stone in 5-2
352 Tracks the tablet placed in the middle stone in 5-2
353 Tracks the tablet placed in the far right stone in 5-2
354 Tracks how many of the filmmakers Mario has talked to in 5-3
358-387 Coin tracking swdrv.c
401-430 Coin tracking swdrv.c
451-480 Coin tracking swdrv.c
501 Number of times talked to fake Merlon in 8-2
502 Stores the answer to fake Merlee's first question in 8-2
503 Stores the answer to fake Merlee's second question in 8-2
504 Stores the answer to fake Merlee's third question in 8-2
505-534 Coin tracking swdrv.c
Clone this wiki locally