User:FrostTheFrozenFox/Flags

From Undertale Yellow Wiki
Jump to navigation Jump to search

Flags are a major internal mechanic in the game, used to track the player's progress. These are primarily separated by area, and can be accessed easily via the SAVE FILE.

Generic[edit | edit source]

Despite being labeled as "Generic flags", these are set with the flags for the Ruins, and are primarily Dark Ruins flags

Generic flags
Flag ID Purpose Valid ingame range(s) Value meanings
0 Lemonade collected 0-1
  • 0: Lemonade hasn't been obtained
  • 1: Lemonade has been obtained
1 First Dark Ruins switch puzzle completion 0-1
  • 0: Haven't completed puzzle
  • 1: Completed puzzle
2 First Dark Ruins light puzzle completion 0-1
  • 0: Haven't completed puzzle
  • 1: Completed puzzle
3 Dalv second cutscene completion status 0-1
  • 0: Haven't completed cutscene
  • 1: Completed cutscene
4 Pulled the lever immediately after the second Dalv monologue 0-1
  • 0: Haven't pulled lever
  • 1: Pulled lever
5 Pulled the lever in the corn maze 0-1
  • 0: Haven't pulled lever
  • 1: Pulled lever
6 Second Dark Ruins light puzzle completion 0-1
  • 0: Haven't completed puzzle
  • 1: Completed puzzle
7 Found the hidden entrance in rm_ruins_13 0-1
  • 0: Haven't found/interacted with
  • 1: Have found
8 Obtained Candy Corn 0-1
  • 0: Haven't picked up
  • 1: Have picked up
9 Killed the Intro Froggit (Note: Impossible to achieve legitimately) 0-1
  • 0: Alive
  • 1: Dead
10 Obtained Feather 0-1
  • 0: Haven't picked up
  • 1: Picked up
11 Obtained Corn Dog 0-1
  • 0: Haven't picked up
  • 1: Picked up
12 Gate lever activated (Shortcut from Dalv's house to the second light puzzle) 0-1
  • 0: Haven't pulled lever
  • 1: Pulled lever
13 Unused
14 Obtained Pebbles ammo 0-1
  • 0: Haven't picked up
  • 1: Picked up
15 Decibat fate 0-3
  • 0: Haven't fought
  • 1: Spared through silence
  • 2: Spared otherwise
  • 3: Killed
16 Watched Decibat sentinel of silence cutscene 0-1
  • 0: Haven't watched
  • 1: Have watched
17 Dalv fate 0-4
  • 0: Haven't fought
  • 1: Spared
  • 2: Killed
  • 3: Spared in Genocide, Decibat spared
  • 4: Spared in Genocide, Decibat dead
18 Micro Froggit fate 0-2
  • 0: Haven't fought
  • 1: Spared
  • 2: Killed
19 Obtained Golden Pear 0-1
  • 0: Haven't picked up
  • 1: Picked up
20 Dark Ruins Clover wakeup cutscene 0-1
  • 0: Haven't seen cutscene
  • 1: Have seen cutscene
21 Hurt Dalv during battle? (Never set in the code, influences some cutscenes) 0-1
  • 0: Didn't attack Dalv
  • 1: Attacked Dalv
22 Unused; Set in an unused script, where it appears to be a tracker for saving after fully completing the Dark Ruins in genocide 0-1
  • 0: Haven't completed
  • 1: Have Completed
23 Rescue Ending rope status 0-2
  • 0: Haven't left room, no rope.
  • 1: Rope appeared
  • 2: Left room, Rope won't appear
24 Flowey introduction progress 0-3
  • 0: Haven't started cutscene
  • 1: Completed dodging tutorial
  • 2: Seen SAVE Point
  • 3: Cutscene complete
25 Dalv meeting cutscene 0-1
  • 0: Haven't completed cutscene
  • 1: Completed cutscene
26 Tracks completion of the Dalv cutscene outside his house 0-1
  • 0: Haven't completed cutscene
  • 1: Completed cutscene
27 Tracks completion of the cutscene surrounding the Dalv fight (Both the pre-fight and post-spare cutscenes) 0-1
  • 0: Haven't completed cutscene
  • 1: Completed cutscene
28 Spoken to Dalv in his house 0-1
  • 0: Haven't spoken to
  • 1: Have spoken to
29 Dalv board destruction cutscene. When 1, Ruins NPCs are able to appear in Snowdin after backtracking. 0-2
  • 0: Haven't completed cutscene
  • 1: Completed cutscene on Pacifist
  • 2: Completed cutscene on Neutral

Ruins[edit | edit source]

Ruins flags
Flag ID Purpose Valid ingame range(s) Value meanings
0 Progress in the first Ruins room 0-2
  • 0: Haven't done the first Froggit
  • 1: Meeting Toriel cutscene
  • 2: Finished the Toriel meeting cutscene
1 Tracks Toriel walking through the first Ruins room.

Also set if you manage to kill the first Froggit

0-2
  • 0: Unset
  • 1: Toriel left the room
2 Tutorial Puzzle progress 0-1
  • 0: Unset
  • 1: Middle Road puzzle complete
3 Unused; Intended to track if you've completed the Switch puzzle or not

Dark Ruins[edit | edit source]

Note: None of these flags are ever called ingame, nor are these saved.

Dark Ruins flags
Flag ID Purpose Valid ingame range(s) Value meanings
3 Flier defeated 0-1
  • 0: Haven't defeated
  • 1: Have defeated
7 Penilla defeated 0-1
  • 0: Haven't defeated
  • 1: Have defeated
8 Sweet Corn defeated 0-1
  • 0: Haven't defeated
  • 1: Have defeated
12 Rorrim defeated 0-1
  • 0: Haven't defeated
  • 1: Have defeated
14 Crispy Scroll defeated 0-1
  • 0: Haven't defeated
  • 1: Have defeated

Snowdin flags[edit | edit source]

Snowdin flags
Flag ID Purpose Valid ingame range(s) Value meanings
0 Tracks completion of the first Flowey cutscene 0-1
  • 0: Haven't seen Flowey in Snowdin
  • 1: Have seen Flowey in Snowdin
1 Tracks whether you've given the map to the Snowdin adventurers 0-2
  • 0: Haven't given map
  • 1: Waiting for map
  • 2: Have given map
2 Tracks completion of the first rock puzzle in Snowdin 0-2
  • 0: Haven't completed
  • 1: Completed once
  • 2: Completed twice, bars are open
3 Spoke to Slurpy 0-2
  • 0: Haven't spoke to Slurpy
  • 1: Spoke to Slurpy
  • 2: Freed Slurpy
4 Ice Pellet tree status 0-2
  • 0: Haven't interacted with
  • 1: Interacted with, pellets waiting
  • 2: Collected pellets
5 Snowdin Mo cutscene 0-2
  • 0: Haven't seen
  • 1: Have seen, Mo is waiting
  • 2: Mo sold out
6 Unused
7 Mail Whale meeting status 0-1
  • 0: Haven't met Mail Whale
  • 1: Met Mail Whale
8 Shuffler status 0-6
  • 0: Haven't met Shufflers
  • 1: Attempted to fight Shuffler
  • 2: Said "No" to understanding the rules
  • 3: Said "Yes" to understanding the rules
  • 4: Beat Shufflers (Or failed too many times), Shufflers are moving
  • 5: Shufflers out of the way
  • 6: Shufflers no longer present (Through completing the kill count or unlocking fast travel)
9 Tracks whether you've returned the mitten to the NPC.

When 2, gives unique dialogue to the glover NPC's aunt at the Dunes

0-2
  • 0: Haven't spoken to
  • 1: Waiting for mitten
  • 2: Received mitten
10 Golden Coffee collected 0-1
  • 0: Haven't collected
  • 1: Have collected
11 Disabled swinging bridge 0-1
  • 0: Bridge pieces still swinging
  • 1: Bridge swinging stopped
12 Tracks completion of the second rock puzzle in Snowdin 0-2
  • 0: Haven't completed
  • 1: Completed once
  • 2: Completed twice, bars are open
13 Martlet status 0-3
  • 0: Haven't fought
  • 1: Spare
  • 2: Defeat Violently
  • 3: Fought on Genocide
14 Martlet plot value 0-5
  • 0: Not finished battle with Martlet
  • 1: Finished battle with Martlet
  • 2: Martlet/Flowey finished their speech at the dock
  • 3: We told Martlet we don't trust her
  • 4: We told Martlet we trust her but don't want to leave yet
  • 5: We told Martlet we're going off
15 Which name has Clover chosen 1-2
  • 1: Gun-Hat
  • 2: Clover
16 Tracks whether the Martlet cutscene at the first rock puzzle was seen 0-1
  • 0: Haven't watched
  • 1: Have watched
17 Tracks whether the Martlet bridge cutscene was watched 0-1
  • 0: Haven't watched
  • 1: Have watched
18 Dialogue progress with the NPC in Honeydew who comes from the Dunes 0-2
  • 0: Haven't spoken to
  • 1: Spoken to in Snowdin
  • 2: Spoken to in the Dunes after Snowdin
19 Stolen from Honeydew 0-1
  • 0: Haven't stolen from
  • 1: Stolen from
20 Honeydew Shop talk progress 0-2
  • 0: Haven't asked about Resort/Mo yet
  • 1: Asked about resort (Pre-Martlet fight) / Said "No, Mo" (Post-Martlet fight, loops with 2)
  • 2: Asked about Mo (Post-Martlet fight)
21 Martlet status (Genocide) 0-1
  • 0: Spared or haven't fought
  • 1: Defeated violently/Betrayed
22 Entered "Secret to Everyone" room 0-1
  • 0: Haven't entered
  • 1: Have entered

Dunes flags[edit | edit source]

Dunes flags
Flag ID Purpose Range Meaning
0 Entered Dunes via raft 0-1
  • 0: Haven't entered Dunes before
  • 1: Have entered Dunes
7 Gave the miner NPC their hardhat

Affects the True Pacifist credits scene of the mines

0-2
  • 0: Have not given the hardhat
  • 1: Have given the hardhat, cannot interact with NPC
  • 2: Have given the hardhat, can interact with NPC
10 Ridden the Dunes minecart before

Controls whether the minecart in-between cutscene can be skipped

0-1
  • 0: Have not ridden minecart
  • 1: Have ridden minecart at least once
24 How the Starlo fight ended 0-2
  • 0: Not encountered
  • 1: Spared
  • 2: Killed
25 Whether the player has beaten Mew Mew Love Blaster (does not affect anything in-game) 0-1
  • 0: Not beaten
  • 1: Beaten at least once
26 How the El Bailador fight ended 0-3
  • 0: Not encountered
  • 1: Spared but not watched the cutscene
  • 2: Spared and watched the cutscene / Not encountered due to exhausted kill count
  • 3: Killed
40 How the Genocide Ceroba fight ended 0-1
  • 0: Not encountered
  • 1: Killed

Additional Dunes flags[edit | edit source]

Dunes "Extra" Flags
Flag ID Purpose Valid ingame range(s) Value meanings
0 Mooch dialogue progress (While on break) 0-8
  • 0: Haven't spoken to
  • 1: Spoken to once (Break 1)
  • 2: Spoken to twice (Break 1)
  • 3: Haven't spoken to (Break 2)
  • 4: Spoken to once (Break 2)
  • 5: Spoken to twice (Break 2)
  • 6: Haven't spoken to (Break 3)
  • 7: Spoken to once (Break 3)
  • 8: Spoken to twice (Break 3)
1 Moray dialogue progress (While on break) 0-3
  • 0: Haven't spoken to
  • 1: Spoken to once (Break 1)
  • 2: Haven't spoken to (Break 2)
  • 3: Spoken to once (Break 2)
2 Ace dialogue progress (While on break) 0-5
  • 0: Haven't spoken to
  • 1: Spoken to once (Break 1)
  • 2: Spoken to twice (Break 1)
  • 3: Haven't spoken to (Break 2)
  • 4: Spoken to once (Break 2)
  • 5: Spoken to twice (Break 2)
3 Ed dialogue progress (While on break) 0-4
  • 0: Haven't spoken to
  • 1: Spoken to once (Break 1)
  • 2: Spoken to twice (Break 1)
  • 3: Haven't spoken to (Break 2)
  • 4: Spoken to once (Break 2)
4 Spoken to Martlet while in jail 0-1
  • 0: Haven't spoken to
  • 1: Have spoken to
5 Spoken to Mail Whale at the saloon 0-1
  • 0: Haven't spoken to
  • 1: Have spoken to
6 Ceroba dialogue progress (While on break) 0-5
  • 0: Haven't spoken to
  • 1: Spoken to once (Break 1)
  • 2: Spoken to twice (Break 1)
  • 3: Haven't spoken to (Break 2)
  • 4: Spoken to once (Break 2)
  • 5: Spoken to twice (Break 2)
  • 6: Spoken to thrice (Break 2)

Steamworks flags[edit | edit source]

Steamworks flags
Flag ID Purpose Valid ingame range(s) Value meanings
0 Tracks progress with initial room dialogue and generator ?
  • 0: No progress
  • 1: Seen "keep up" dialogue, OR seen generator cutscene in Neutral/Genocide
  • 2: Seen "see something" dialogue
  • 3: Seen Ceroba generator cutscene
  • 4: Reactivated generator power
20 How the Guardener fight ended 0-3
  • 0: Not encountered
  • 1: Spared but not watched the cutscene
  • 2: Spared and watched the cutscene
  • 3: Killed
  • 4: Aborted Pacifist by killing
21 Tracks completion of Ceroba "two paths" door cutscene 0-1
  • 0: Not completed
  • 1: Completed
26 Steamworks ID status 0-2
  • 0: No ID
  • 1: Arrived at ID room
  • 2: Got ID
31 How the Axis fight ended 0-4
  • 0: Not encountered
  • 1: Spared but not watched the cutscene
  • 2: Spared and watched the cutscene
  • 3: Killed before turn 8
  • 4: Killed on or after turn 8
41 Killed a robot in the Steamworks during Pacifist (Prevents Ceroba from commenting on it twice) 0-1
  • 0: No robots killed
  • 1: Killed a robot
44 Overworld sprite used for the custom robot 0-6
  • 0: Mettaton lookalike
  • 1: Pile of boxes
  • 2: Trashcan bot with bow
  • 3: Trashcan bot without bow
  • 4: Tall bot with googly eyes
  • 5: Tall bot without eyes
  • 6: Just a bow and googly eyes
58 Aborted Pacifist on Axis 0-1
  • 0: Spared/Other
  • 1: Killed

Hotland flags[edit | edit source]

Flags for New Home are also tracked here.

Hotland flags
Flag ID Purpose Valid ingame range(s) Value meanings
0 Flowey alleyway cutscene 0-2
  • 0: Haven't started
  • 1: First cutscene done
  • 2: Finished
1 Rooftop cutscene (Pacifist) 0-1
  • 0: Haven't completed rooftop cutscene yet
  • 1: Have completed rooftop cutscene
2 Ceroba fight phase tracker 0-3
  • 0: Phase 1
  • 1: Phase 2
  • 2: Phase 3
  • 3: Phase 4
3 Ceroba status (Pacifist) 0-1
  • 0: Spared
  • 1: Killed
4 Asked about Hotland at Bits and Bites 0-2
  • 0: Haven't asked
  • 1: Asked once
  • 2: Asked twice
5 Asked about Toriel at Bits and Bites 0-2
  • 0: Haven't asked
  • 1: Asked once
  • 2: Asked twice
6 Tracks if you've entered the elevator to Hotland before.

Also determines "Slurpy letter 2", "Ceroba (Important)", and "MAIL???" letters on Neutral or Pacifist routes, and Flowey's comment at the end of the Steamworks in Genocide

0-1
  • 0: Haven't used the elevator
  • 1: Have used the elevator
7 "Handlord" NPC informing you that the elevator is open after the rooftop cutscene (Pacifist) 0-1
  • 0: Haven't received the dialogue yet
  • 1: Have received the dialogue already
8 Geno narration progress 0-4
  • 0: None
  • 1: Steamworks, looking for exit
  • 2: Steamworks pre-elevator
  • 3: Outside UG Apartments
  • 4: Alley narration
9 Zenith phase tracker. 0-3
  • 0: Phase 1, intro cutscene
  • 1: Phase 1, cutscene done
  • 2: Phase 2, intro cutscene
  • 3: Phase 2, cutscene done. Also causes Flowey to not appear at save points.
10 Tracks whether the post-Ceroba fight cutscene was finished (Flawed Pacifist) 0-1
  • 0: Haven't finished cutscene
  • 1: Finished cutscene
11 Stolen from Bits & Bites 0-1
  • 0: Haven't stolen from
  • 1: Have stolen from
12 Rooftop cutscene (Neutral) 0-1
  • 0: Haven't done rooftop cutscene yet
  • 1: Have done rooftop cutscene; Skips to Flowey fight
13 Handles Martlet's dialogue upon interacting with a locked door in New Home (Pacifist, also applies on Neutral if you somehow get there)

The effects of this flag also apply if Flag 10 is set

0-1
  • 0: Haven't interacted with a locked door yet
  • 1: Have interacted with a locked door
14 Martlet interaction in Bits and Bites 0-1
  • 0: Haven't spoken to yet
  • 1: Have spoken to
15 Controls the prompt in Pacifist, before heading to the rooftop 0-1
  • 0: Haven't chosen to continue yet
  • 1: Chosen continue

GenoComplete flags[edit | edit source]

These flags store completion of the Genocide route. These flags are strictly true or false; When 1, the game will act as if the kill count for the area is complete, regardless of if it has been or not. All areas have a kill count of 20.

GenoComplete flags
Flag ID Corresponding area
1 Dark Ruins
2 Snowdin
3 The Dunes
4 Steamworks
5 Unused (Assigned to UG Apartments)

"Extra" flags[edit | edit source]

These flags exclusively track Mo's shops in Snowdin and the Dunes.

Extra flags
Flag ID Purpose Valid ingame range(s) Value meanings
1 Mo Hot Pop status 0-1
  • 0: Haven't bought
  • 1: Have bought
2 Mo Lukewarm Pop status 0-1
  • 0: Haven't bought
  • 1: Have bought
3 Mo Cold Pop status 0-1
  • 0: Haven't bought
  • 1: Have bought
4 Mo Ice Tea status 0-1
  • 0: Haven't bought
  • 1: Have bought
5 Mo Green Tea status 0-1
  • 0: Haven't bought
  • 1: Have bought
6 Mo Sea Tea status 0-1
  • 0: Haven't bought
  • 1: Have bought
7 Mo Moss Salad status 0-1
  • 0: Haven't bought
  • 1: Have bought
8 Mo Grassy Fries status 0-1
  • 0: Haven't bought
  • 1: Have bought
9 Mo Flower Stew status 0-1
  • 0: Haven't bought
  • 1: Have bought

Mail flags[edit | edit source]

Unlike other flags, these are all strictly true or false; When these values are 0, they'll be checked for eligibility when you go to a mail station. These check other flags as well when checking eligibility.

Mail flags
Flag ID Associated mail Additional requirements
1 Slurpy Letter
  • Freed Slurpy
  • Defeated Martlet
2 Mo Letter
  • Entered Dunes (Dunes flag 0)
3 Dalv Letter
  • Pacifist route
  • Starlo defeated
  • Dalv spared
4 Shufflers Letter
5 Starlo Update
6 Starlo (Urgent)
7 Slurpy Letter 2
  • Freed Slurpy
  • Reached Hotland
8 Ceroba (Important)
  • Neutral route
  • Reached Hotland
9 MAIL???
  • Spared Axis
  • Reached Hotland