Skip to content
Tartt edited this page Apr 16, 2024 · 73 revisions

GSWF - Global Saved Work Flags

GSWF are global flags which persist between game reloads. They can be accessed directly by evt scripts, or by code through the swGet/swSet/swClear functions. GSWF 0-8191 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).

Flipside/Flopside/Pit + Miscellaneous

GSWF Description Evidence
2 Save block tutorial text seen
3 Never set, skips early Tippi dialogue?
4 Talking to Tinga for the first time
5 Talking to Inga for the first time
6 Talking to Merluvlee for the first time
7 Talking to Garson for the first time
8 Talking to Carson for the first time
9 Talking to any Howzit for the first time
10 Talking to Merlee in 2-2 (or Flopside with glitches) if the player's sequence < 126
11 Talking to Merlee in Flopside for the first time if sequence >= 126
12 Talking to Saffron for the first time
13 Talking to Dyllis for the first time
14 Talking to Flamm for the first time
15 Talking to Flimm in Flipside for the first time
16 Talking to Flimm when he restocks
17 Talking to Hoodin for the first time
18 Talking to Boodin for the first time
19 Talking to Boodin when he restocks
20 Talking to the InterNed for the first time
21 InterNed jukebox is active
23 Talking to Flimm in either Pit for the first time
24 Entering an Itty Bits shop for the first time
25-42 Garson's paid stories
43-56 Unused Garson paid story slots evt_shop_johoya_init
58-75 Garson's free stories - all reset to 0 after all that have been unlocked have been set to 1
76-89 Unused Garson free story slots evt_shop_johoya_init
91-106 Carson's paid stories
107-122 Unused Carson paid story slots evt_shop_ura_johoya_init
124-139 Carson's free stories - all reset to 0 after all that have been unlocked have been set to 1
140-155 Unused Carson free story slots evt_shop_ura_johoya_init
157-188 Items bought from Flipside Flimm
190-237 Treasure map treasures found evt_treasuremap_collect
255 Tracks whether all tracks have been played on the InterNed yet or not evt_shop_get_otoya_bgm
256-383 Corresponds to every track that the InterNed can play - these flags prevent the same track from being chosen more than once per beveragarium visit evt_shop_get_otoya_bgm
384 Whacka appears on screen
385 Responding "Far away, probably." to Norite, 5-1
386 3D tutorial text seen
387 "Defeat enemies to earn points" text seen, 1-1
389 Wracktail defeated, copy 1 dan.c
392 Mushroom text seen
393 Mega Star text seen
394 Fast Flower text seen
395 Slow Flower text seen
396 Happy Flower text seen
397 Zombie Shroom OR Ghoul Shroom text seen
398 Pal Pills text seen
399 Caught Card text seen
401 Squirps active (on save file load) nandmgr.c
402 Luvbi active (on save file load) nandmgr.c
403 Tippi active (on save file load) nandmgr.c
404 Floro Sprout active (on save file load) nandmgr.c
405 Unknown, InterNed-related
406 Talking to Saffron (Only after seeing Peach unconscious in Flipside; sequence = 61)
407 Hearing the item shop explanation for the first time
408 Talking to Notso for the first time
409 Wracktail defeated, copy 2 dan.c
410 Accepting Merlee's request to obtain a Crystal Ball from Merluvlee
411 Accepting Merluvlee's request to obtain the Training Machine from Bestovius
412 Accepting Bestovius' request to obtain the You-Know-What from Watchitt
413 Accepting Watchitt's request to obtain an Autograph from Merlumina
414 Receiving an Autograph from Merlumina
415 Receiving the You-Know-What from Watchitt
416 Receiving the Training Machine from Bestovius
417 Receiving the Crystal Ball from Merluvlee
418 Receiving the Random House Key from Merlee
419 Getting one free charm from Merlee after receiving the Random House Key
420 Low HP tutorial text seen
421 Chapter intro currently playing, disables Squirps' SOS
422 Room name displayed on HUD
423-430 Track which Flipside Arcade high score updates have occurred based on sequence position when viewing high scores
431 Return pipe tutorial text shown
433 Tippi card, Flipside Pit Floor 10
434 Thoreau card, Flipside Pit Floor 20
435 Boomer card, Flipside Pit Floor 30
436 Slim card, Flipside Pit Floor 40
437 Thudley card, Flipside Pit Floor 50
438 Carrie card, Flipside Pit Floor 60
439 Fleep card, Flipside Pit Floor 70
440 Cudge card, Flipside Pit Floor 80
441 Dottie card, Flipside Pit Floor 90
442 Dashell card, Flopside Pit Floor 10
443 Goombario card, Flopside Pit Floor 20
444 Kooper card, Flopside Pit Floor 30
445 Bombette card, Flopside Pit Floor 40
446 Parakarry card, Flopside Pit Floor 50
447 Bow card, Flopside Pit Floor 60
448 Watt card, Flopside Pit Floor 70
449 Sushie card, Flopside Pit Floor 80
450 Lakilester card, Flopside Pit Floor 90
451 Attempting to leave the Flipside Pit for the first time
452 Attempting to leave the Flopside Pit for the first time
453 Attempting to enter the Flipside Pit for the first time
454 Attempting to enter the Flopside Pit for the first time
455 Talking to Flamm when he restocks on maps
501 Flipside Pit barrier unlocked
502 Hitting the blue switch in Flipside B2 to reveal HP Plus chest
503 HP Plus Chest, Flipside B2
504 Hitting the yellow block in Flopside B2
505 Hitting the blue switch to reveal the Power Plus chest
506 Power Plus chest, Flopside B2
507 Yellow Block broken in Flopside B1 Outskirts
508 Mirror Hall barrier broken
509 Yellow Block broken in Flopside 1st Floor Outskirts to reveal red switch
510 Stepping on red switch to reveal Heart Pillar
511 Chapter 4 Heart Pillar spawned after ground pounding the posts in Flipside 2nd Floor
512 Tippi tells you what a save block is
513 Flipside 1st Floor crack blown up
514 Flipside 1st Floor rift fleeped
515 Blue switch is hit to unlock Mirror Hall path
516 Peach's hair is done by Bleu
517 Piccolo chest opened
518 Flopside Pit barrier unlocked
519 Yellow Block broken in Flopside 2nd Floor
520 The InterNed card chest
521 The InterChet card chest
522 Merluvlee card chest
523 Merlon card chest
524 Piccolo card, Flopside B1 Outskirts
525 Barry card, Flopside B2
526 Piccolo block in Flipside 3rd Floor disappears
527 Merlee card chest
528 Piccolo block in Flopside 3rd Floor disappears
529 Nolrem card chest
530 Welderberg's explanation (mac_05)
531 Welderberg's explanation (mac_12)
532 Welderberg's explanation (mac_15)
533 Blue Pipe built (mac_05 <-> mac_02)
534 Blue Pipe built (mac_12 <-> mac_02)
535 Blue Pipe built (mac_15 <-> mac_12)
536 Random House Key unlocks Piccolo chest house
537 Golden Card Chest
538-544 Revealing the block path to the Cooking Disk R chest in Flipside 3rd Floor
545-548 Revealing the block path between both sides of Flipside B2
549-563 Revealing the block path to the Cooking Disk W chest in Flopside 3rd Floor
564-568 Revealing the block path between both sides of Flopside B2
569 Revealing the platform underneath a pipe in Flopside 2nd Floor
570 Talking to the InterChet for the first time
571 Showing the InterChet the Golden Card
572 Using the Dining Specializer for the first time
573 Using Cooking Disk R in the Dining Specializer
574 Using Cooking Disk W in the Dining Specializer
575 Using Cooking Disk Y in the Dining Specializer
576 Using Cooking Disk B in the Dining Specializer
577 Using Cooking Disk G in the Dining Specializer
578 Using Cooking Disk PU in the Dining Specializer
579 Using Cooking Disk PI in the Dining Specializer (Unused, impossible without hacks)
580 Cooking Disk R chest
581 Cooking Disk W chest
582 Cooking Disk Y in Gertrude's house
583 Cooking Disk B chest
584 Cutscene of Merlon meeting Tiptron

Chapter 1

GSWF Description Evidence
601 Talking to Green for the first time only before getting Watchitt's approval to pass, 1-2 (Sequence must be < 26)
602 Talking to Watchitt for the first time, 1-2 (Sequence must be < 26)
603 Goomba card behind pipe, 1-1
604 Koopa Troopa card chest, 1-1
605 Paratroopa card chest, 1-2
606 Squig card behind rock, 1-3
607 Courage Shell behind rock, 1-3
608 Ghost Shroom behind rock, 1-3
609 Life Shroom chest, 1-4
610 Boomboxer card on top of Watchitt's house, 1-2
611 Squiglet card on top of Bestovius' house, 1-1
612 Shroom Shake chest, 1-1
613 Buzzy Beetle card chest, 1-4
614 Shell Shock in Bestovius' house, 1-1
615 Fire Burst in Bestovius' house, 1-1
616 Shroom Shake in Bestovius' house, 1-1
617 Toggles Red Bridge sign text from "Bridge closed!" to "Only heroes may pass." (Only triggers if sequence >= 22 when entering he2_02 or he2_08)
618 Red & Green card in Green's house, 1-2
619 Ladder block next to floating door is hit, 1-2
620 Ladder block leading to clouds is hit, 1-2

Chapter 2

GSWF Description Evidence
701 Ladder block to right of mansion hit, 2-2
702 Entering the vault code, 2-3
703 Looting the vault, 2-3
704 Unlocking the VIP generator room, 2-3
705 Ladder Block leading to vault is hit, 2-3
706 Agreeing to farm electricity by hitting blocks, 2-3
707 Blowing up crack in Room 07, 2-4
708 Blowing up crack in Room 08, 2-4
709 Entering the VIP generator room for the first time, 2-3
710 Entering the block generator room for the first time, 2-3
711 Stationary mushroom trap activated, 2-2
712 Coin trap activated, 2-2
713 Spiked ceiling trap activated for the first time, 2-2
714 Moving mushroom trap activated, 2-2
715 Talking to Mimi for the first time, 2-2
716 Talking to Mimi, 2-2 (only if GSWF 715 & 713 = 0x1)
717 Talking to Mimi, 2-2 (only if GSWF 715 & 713 & 711 = 0x1)
718 Talking to Mimi, 2-2 (only if GSWF 715 & 713 & 711 & 712 = 0x1)
719 Slim chest opened, 2-3
720 Agreeing to pay Conn 100 Rubees for information, 2-3
721 Agreeing to pay Cap 1 Rubee for information, 2-3
722 Agreeing to pay Stock 10,000 Rubees for information, 2-3
723 Talking to the Ackpow in the VIP generator room for the first time, 2-3
724 Talking to the Ackpow in the Mushroom block room for the first time, 2-3
725 Receiving Rubees from the Ackpow in the VIP generator room, changes the mushroom sale text, 2-3
726 Shroom Shake in a hidden passageway, 2-4
727 Shlurp killed to permanently activate stationary mushroom trap exit, 2-2
729 Stop Watch chest, 2-2
730 Cursya card chest, 2-2
731 Boo card chest, 2-3
732 Shlurp card chest, 2-1
733 Swooper card chest, 2-1
734 Defeating the Squiglets & Squig to reveal chest, 2-1
735 Obtaining the key, 2-1
737 Blowing up crack to reveal hole in the wall, 2-1
738 Watchitt card chest, 2-1

Chapter 3

GSWF Description Evidence
801 Talking to Barry for the first time, 3-1
802 Cat guardian's left key slot is unlocked, 3-4
803 Cat guardian's right key slot is unlocked, 3-4
804 Cat guardian spawns the door to Francis' room, 3-4
805 Cat guardian detects both keys and starts dialogue for the first time, 3-4
806 Left hanging door falls to ground, 3-4
807 Right hanging door falls to ground, 3-4
808 2828 SecuriMeow accepts password and creates door, 3-4
809 2323 SecuriMeow accepts password and creates elevator, 3-4
810 Gray bridge spawns, 3-4
811 2828 key obtained, 3-4
812 2323 key obtained, 3-4
816 Blue/pink switch toggle, 3-3 (0 = blue, 1 = pink)
817 Yellow post in inner tree ground-pounded to spawn ladder, 3-3
818 Barry obtained, 3-1
819 Yellow post in lower tree ground-pounded to spawn platform, 3-3
820 Piranha Plant card chest, 3-1
821 Catch Card SP in background, 3-1
822 Catch Card SP hiding behind pipe, 3-1 (ta1_06)
823 Gold Bar chest, 3-2
825 Ice Storm in background, 3-1
826 Magikoopa card chest, 3-1 (ta1_07)
827 Defeating Chain Chomps to reveal chest, 3-3 (ta3_07)
828 Peach (2) card chest
829 Dimentio says "Can you pierce this... illusion?", 3-3 (Also triggers when Dimentio duplicates himself in 8-3, but nothing happens)
830 Prison puzzle solved, 3-4
831 Ladder Block leading to high-up door is hit, 3-1
832 Thunder Rage chest in Blomeba room, 3-1
833 Defeating the Blomeba to spawn a pipe, 3-1

Chapter 4

GSWF Description Evidence
901 Entering Twinkle Mart for the first time
902 Squeezing Squirps into the left or right hole in sp3_02 (0 = left, 1 = right, only has an effect if sequence = 155 or 156)
903 Squirps dialogue on returning to Chapter 4 after beating it, any level but 4-4
904 Hitting the blue switch to reveal brown block platforms, 4-2
905 Piccolo card chest, 4-4 (Only possible by hacking the player into sp4_09)
906 Foton card behind rock, 4-1
907 Catch Card SP behind rock, 4-1
908 Ultra Shroom Shake hidden in chasm, 4-2
909 Space Food hidden behind pipe, 4-2
910 Shooting Star hidden behind brick blocks, 4-3
911 Ghost Shroom hidden behind brick blocks, 4-3
912 Catch Card SP hidden within brick blocks, 4-3
916 All enemies defeated in sp4_09, chest revealed, 4-4 (Only possible by hacking the player into sp4_09, triggers immediately since no enemies exist)
917 Squirps dialogue on returning to Chapter 4 in endgame, GSWF 903 dialogue takes priority, any level but 4-4

Chapter 5

GSWF Description Evidence
1001 Talking to Jasperoid for the first time before solving the first block puzzle, 5-1
1002 Saying no to Jasperoid after saying "please" 5 times, 5-1
1003 After Jasperoid tells you the second block puzzle code for the first time, 5-1
1004 Water Tablet collected, 5-2
1005 Stone Tablet collected, 5-2
1006 Fire Tablet collected, 5-2
1007 Hitting the blue switch to reveal platforms to the Fire Tablet room, 5-2
1008 Ladder Block leading to the stone pillars is hit, 5-2
1009-1012 Brick Blocks covering a blue switch, 5-2
1013 Stone Tablet spawn triggered
1014 Fleeping a rift to reveal a blue switch, 5-2
1015 Hitting the blue switch to reveal platforms to a TV, 5-2
1016 Revealing the Fire Tablet
1017 After cutscene with Cragley and either Hornfels or Monzo
1018 Blowing up a rock to reveal a door in an unused 5-3 map (gn3_02)
1019 Blowing up a crack in the floor to reveal a pipe, 5-3 (gn3_03)
1020 Talking to Hornfels during 5-3
1021 Ladder Block is hit in the Hornfels room, 5-3
1022 Talking to Monzo during 5-3
1023-1026 Brick Blocks in the Monzo room, 5-3
1027 Hammering the yellow block to the far left of the Mega Star room, 5-3
1028 Hammering the yellow block blocking the door to the end of the level, 5-3
1029 Hammering the yellow block to the far right of the Mega Star room, 5-3
1030 Floro Cragnien Scanner cutscene seen
1031 Crack blown up below King Croacus the Fourth painting, 5-4
1032 Crack blown up below King Croacus the Third painting, 5-4
1033 Crack blown up below Queen Croacus the Second painting, 5-4
1034 Crack blown up below King Croacus the First painting, 5-4
1035 Cooking Disk G chest, 5-1
1036 Moon Cleft card, 5-1
1037 Primordial Fruit, 5-2
1038 Mighty Tonic, 5-2
1039 Spania card, 5-3
1040 POW Block, 5-4
1041 Floro Cragnien card, 5-4
1042 Stone Buzzy card chest, 5-2
1043 After agreeing to help the Cragnons and leaving Marbald's house, 5-1
1044 Killing the 5-1 Shlorps
1045 Bowser (2) chest, 5-1
1046 Ladder block is hit, 5-3
1047 Blowing up a rock to reveal a door, 5-3
1048 Hammering the yellow block obstructing door to the rightmost minecart room, 5-3
1049 Hammering the yellow block in gn3_05
1050 Shroom Shake chest in gn3_05
1051-1052 Brick Blocks in the Monzo room, 5-3
1053 Ultra Shroom Shake, 5-2

Chapter 6

GSWF Description Evidence
1101 Walking on Jade Blooper's stage for the first time in postgame
1102 Obtaining the cards from King Sammer
1103 Entering 6-3 in postgame
1104 Entering 6-4 in postgame
1105 Entering 6-2 in postgame
1106 Entering the Chapter 6 door in postgame

Chapter 7

GSWF Description Evidence
1205 Ladder Block in water switch room, 7-1
1206 Luvbi runs to locked door after Dorguy the 1st
1207 Luvbi runs to Dorguy the 2nd
1208 Luvbi runs to locked door after Dorguy the 2nd
1209 Luvbi runs to Dorguy the 3rd
1210 Luvbi runs to Star Block (Unused/impossible without hacks, only occurs if sequence < 325 when entering an2_09)
1211 Talking to Dorguy the 1st for the first time
1212 Talking to the D-Men guarding Bowser's door for the first time
1213 Talking to Dorguy the 2nd for the first time
1214 Talking to Hagra for the first time
1215 Talking to Hagitha for the first time
1216 Talking to Hagnes for the first time
1217 Accepting Hagitha's quest
1218 Talking to the D-Man that Hagitha wants a show recording from
1219 Talking to Hagitha afterward
1220 Finish listening to Hagnes' story
1221 Talking to Cyrrus for the first time
1222 7-4 elevator position (0 is grounded, 1 is midair)
1223 Talking to Novbi (elevator operator) for the first time
1224 Freeing Monbi from ice
1225 Freeing Sprinbi from ice
1226 Freeing Saturbi from ice
1227 Freeing Wenbi from ice
1228 Freeing Fribi from ice
1229 Freeing Winbi from ice
1230 Freeing Thurbi from ice
1231 Freeing Rainbi from ice
1232 Freeing Sumbi from ice
1233 Freeing Janbi from ice
1234 Freeing Blubi from ice
1235 Obtaining the Blue Orb
1236 Obtaining the Yellow Orb
1237 Obtaining the Red Orb
1238 Opening the big chest to find a hiding Nimbi
1239 Blue Orb placed in altar
1240 Red Orb placed in altar
1241 Yellow Orb placed in altar
1242 Hitting the blue switch to spawn pipe between an3_15 <-> an3_02
1243 Using the elevator to go up for the first time
1244-1267 Brick Blocks in the water switch room, 7-1
1268 Super Shroom Shake on pipe, 7-1
1269 Long Last Shake behind rock, 7-1
1270 Shroom Shake chest, 7-3
1271 Rawbus card chest, 7-3
1272 Ruff Puff card chest, 7-3
1273 Thunder Rage chest, 7-3
1274 Gold Bar chest, 7-3
1275 Shooting Star, 7-4
1276 Ultra Shroom Shake chest, 7-4
1277 Spiky Skellobit card chest, 7-4
1278 Skellobit card chest, 7-4
1279 Skellobomber card chest, 7-4
1280 Ghost Shroom card chest, 7-3
1281 Dark Boo card chest, 7-2
1282 Dry Bones card chest, 7-1
1283-1284 Gray blocks in water switch room pushed to the floor
1285 Gigabyte killed to reveal chest, 7-1
1286 Peach (3) card chest
1287 Gigabyte killed to reveal chest, 7-4
1288 Cooking Disk (PU) chest
1289 Long Last Shake chest, 7-3
1290 Life Shroom chest, 7-3
1291 Entering the room full of coins for the first time, 7-2

Chapter 8

GSWF Description Evidence
1301 Trying to go through the far-left door in ls1_03 during the Pre-Chapter 2 Peach intermission
1302 Trying to go back through the far-right door in ls1_03 during the Pre-Chapter 2 Peach intermission
1303 Long Last Shake chest, 8-1
1304 Ultra Shroom Shake chest, 8-2
1305 Shooting Star chest, 8-4
1306 Super Shroom Shake chest, 8-4
1307 Ultra Shroom Shake chest, 8-4
1308 Thunder Rage in room with 4 pipes, 8-2
1309 Stop Watch chest, 8-1
1310 Courage Shell chest, 8-2
1311 Life Shroom chest, 8-2
1312 Ice Storm chest, 8-3
1313 Thunder Rage chest, 8-3
1315 Unused; probably meant to be set when hitting the blue switch in ls3_08. Setting it to 1 manually prevents the blue switch from spawning again.
1316 Hogarithm room puzzle solved, 8-3
1317 Skellobit room puzzle solved, 8-3
1318-1327 10 individual Cooking Mistakes, only accessible by selecting that option when fake Merlee asks her third question in 8-2