forked from crumblingstatue/FloweysTimeMachine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.js
1738 lines (1718 loc) · 77.7 KB
/
data.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// meta-info, state arrays
const basicBool = "checkbox",
simpleDogStates = [
"Initial state",
"Killed",
"Played fetch (Spared)"
],
killedBool = [
"Initial state",
"Killed"
];
// Save structure
const iniIDs = [
// Element ID, section, key
// TODO: Consider restructuring as {section: {key: id}} or [id, values] or whatever
// General
["ini-name", "General", "Name" ],
["ini-location", "General", "Room" ],
["ini-kills", "General", "Kills" ],
["ini-love", "General", "Love" ],
["ini-fun", "General", "fun" ],
["ini-gameover", "General", "Gameover"],
["ini-asgore-deaths", "Asgore", "KillYou" ],
["ini-dodged-credits", "reset", "s_key" ],
["ini-defeatedasriel", "F7", "F7" ],
["ini-true-reset", "reset", "reset" ],
// Deja vu
["ini-toriel-pie", "Toriel", "Bscotch" ],
["ini-papyrus-met", "Papyrus", "M1" ],
["ini-papyrus-spared", "Papyrus", "PS" ],
["ini-papyrus-dated", "Papyrus", "PD" ],
["ini-undyne-dated", "Undyne", "UD" ],
["ini-alphys-dated", "Alphys", "AD" ],
// Omega Flowey
["ini-omega-trapped", "FFFFF", "F" ],
["ini-omega-soul", "FFFFF", "P" ],
["ini-omega-deaths", "FFFFF", "D" ],
["ini-omega-beat", "FFFFF", "E" ],
// Sans
["ini-sans-met", "Sans", "M1" ],
["ini-papyrus-killed", "Papyrus", "PK" ],
["ini-sans-lv1", "Sans", "MeetLv1" ],
["ini-sans-lv2", "Sans", "MeetLv2" ],
["ini-sans-password", "Sans", "Pass" ],
["ini-sans-level", "Sans", "MeetLv" ],
["ini-sans-fights", "Sans", "F" ],
["ini-sans-midpoint", "Sans", "MP" ],
["ini-sans-dunk", "Sans", "SS" ],
["ini-sans-undunk", "Sans", "SS2" ],
["ini-sans-kill", "Sans", "SK" ],
// Flowey
["ini-flowey-met", "Flowey", "Met1" ],
["ini-toriel-killed", "Toriel", "TK" ],
["ini-toriel-spared", "Toriel", "TS" ],
["ini-flowey-lecture", "Flowey", "FloweyExplain1"],
["ini-flowey-geno", "Flowey", "truename"],
["ini-flowey-geno", "Flowey", "alter2" ], // I don't know if this works either
["ini-neutral-count", "General", "Won" ],
["ini-flowey-alter", "Flowey", "Alter" ],
["ini-asgore-suicide", "Flowey", "SK" ],
["ini-flowey-speech", "EndF", "EndF" ],
["ini-flowey-kill", "Flowey", "K" ],
["ini-flowey-gone", "Flowey", "SPECIALK"],
["ini-flowey-no-kills", "Flowey", "NK" ],
["ini-flowey-i-kill", "Flowey", "IK" ],
["ini-flowey-change", "Flowey", "CHANGE" ],
["ini-flowey-asg-kill", "Flowey", "AK" ],
["ini-alphys-date-fail", "Flowey", "AF" ],
["ini-flowey-extra", "Flowey", "EX" ],
// Speedrun strats (skipping certain scenes)
["ini-mett-opera", "Mett", "O" ],
["ini-mett-fought", "Mettaton", "BossMet"],
["ini-mett-essay", "MTT", "EssayNo"],
["ini-sans-met", "Sans", "EndMet" ],
["ini-under-tale", "General", "Tale" ]
],
flagOffset = 30, // UT flags start on line 31 and values[] is zero-indexed
flagCount = 512; // Counting 0; flag 512 isn't actually stored.
let fileStructure = [
[
"sav-name",
"sav-love",
"sav-hp",
"sav-en",
"sav-at",
"sav-weaponat",
"sav-df",
"sav-armordf",
"sav-speed",
"sav-exp",
"sav-gold",
"sav-kills"
// Additional entries added by loop below
],
"flags",
[
"sav-plotvalue",
"sav-haveitem",
"sav-havestat",
"sav-havecell",
"sav-music",
"sav-location",
"sav-time"
]
];
for (let i = 1; i <= 8; i++) {
fileStructure[0].push("sav-invslot" + i);
fileStructure[0].push("sav-cellslot" + i);
}
fileStructure[0].push("sav-weapon");
fileStructure[0].push("sav-armor");
// Items and stats
const items = [
"Empty",
"Monster Candy",
"Croquet Roll",
"Stick",
"Bandage",
"Rock Candy",
"Pumpkin Rings",
"Spider Donut",
"Stoic Onion",
"Ghost Fruit",
"Spider Cider",
"Butterscotch Pie",
"Faded Ribbon",
"Toy Knife",
"Tough Glove",
"Manly Bandana",
"Snowman Piece",
"Nice Cream",
"Puppydough Icecream",
"Bisicle",
"Unisicle",
"Cinnamon Bun",
"Temmie Flakes",
"Abandoned Quiche",
"Old Tutu",
"Ballet Shoes",
"Punch Card",
"Annoying Dog",
"Dog Salad",
"Dog Residue (1)",
"Dog Residue (2)",
"Dog Residue (3)",
"Dog Residue (4)",
"Dog Residue (5)",
"Dog Residue (6)",
"Astronaut Food",
"Instant Noodles",
"Crab Apple",
"Hot Dog...?",
"Hot Cat",
"Glamburger",
"Sea Tea",
"Starfait",
"Legendary Hero",
"Cloudy Glasses",
"Torn Notebook",
"Stained Apron",
"Burnt Pan",
"Cowboy hat",
"Empty Gun",
"Heart Locket",
"Worn Dagger",
"Real Knife",
"The Locket",
"Bad Memory",
"Dream",
"Undyne's Letter",
"Undyne Letter EX",
"Potato Chisps",
"Junk Food",
"Mystery Key",
"Face Steak",
"Hush Puppy",
"Snail Pie",
"temy armor",
"<invalid>"
],
weapons = {
// "0": "Empty",
"3": "Stick",
"13": "Toy Knife",
"14": "Tough Glove",
"25": "Ballet Shoes",
"45": "Torn Notebook",
"47": "Burnt Pan",
"49": "Empty Gun",
"51": "Worn Dagger",
"52": "Real Knife"
},
armors = {
// "0": "Empty",
"4": "Bandage",
"12": "Faded Ribbon",
"15": "Manly Bandana",
"24": "Old Tutu",
"44": "Cloudy Glasses",
"46": "Stained Apron",
"48": "Cowboy Hat",
"50": "Heart Locket",
"53": "The Locket",
"64": "temy armor"
},
weaponAts = {
"3": 0, // stick
"13": 3, // toy knife
"14": 5, // tough glove
"25": 7, // ballet shoes
"45": 2, // torn notebook
"47": 10, // burnt pan
"49": 12, // empty gun
"51": 15, // worn dagger
"52": 99 // Real Knife
},
armorAts = {
"48": 5, // cowboy hat
"64": 10 // temy armor
},
armorDfs = {
"4": 0, // bandage
"12": 3, // faded ribbon
"15": 7, // manly bandana
"24": 10, // old tutu
"44": 6, // clouded glasses
"46": 11, // stained apron
"48": 12, // cowboy hat
"50": 15, // heart locket
"53": 99, // The Locket
"64": 20 // temy armor
};
let cellOpts = { // Must be let to change to Papyrus and Undyne
"0": "Empty",
"201": "Say Hello",
"202": "Puzzle Help",
"203": "About Yourself",
"204": "Call Her \"Mom\"",
"205": "Flirt",
"206": "Toriel's Phone",
"210": "Papyrus's Phone",
"220": "Dimensional Box A",
"221": "Dimensional Box B"
};
// Big data
let rooms = [[], [], []];
rooms[2] = [
"Initializer [Dogchecked]",
"Introduction [Dogchecked]",
"Title [Dogchecked]",
"Menu [Dogchecked]",
"Ruins - Starting point",
"Ruins - Flowey spot",
"Ruins - Entrance [SAVE]",
"Ruins - Toriel stepping tile puzzle",
"Ruins - Switch puzzle",
"Ruins - Dummy room",
"Ruins - Spike puzzle",
"Ruins - Long corridor",
"Ruins - Leaf Pile [SAVE]",
"Ruins - Candy pillar",
"Ruins - Mandatory fall trapdoor",
"Ruins - First stone pushing puzzle",
"Ruins - Trapdoor corridor puzzle",
"Ruins - Talkback rock",
"Ruins - Mouse Hole [SAVE]",
"Ruins - Napstablook",
"Ruins - Spider Bake Sale",
"Ruins - 2 frogs",
"Ruins - Switch hidden under trapdoor puzzle",
"Ruins - 3 Pillars room 1",
"Ruins - 3 Pillars room 2",
"Ruins - 3 Pillars room 3",
"Ruins - 3 Pillars room 4",
"Ruins - Pillars room pit",
"Ruins - 3-way fork",
"Ruins - Toriel gossip frog",
"Ruins - Toy knife room",
"Ruins - Home [SAVE]",
"Toriel's House: Entrance",
"Toriel's House: Reading room",
"Toriel's House: Corridor",
"Toriel's House: Toriel's Room",
"Toriel's House: Your Room",
"Toriel's House: Kitchen",
"Toriel's Basement 1",
"Toriel's Basement 2",
"Toriel's Basement 3",
"Toriel's Basement: Toriel Boss Battle",
"Toriel's Basement: Corridor to Flowey",
"Toriel's Basement: Flowey",
"Snowdin - Ruin exit",
"Snowdin - Dark forest path",
"Snowdin - Box Road [SAVE]",
"Snowdin - Fishing rod",
"Snowdin - Papyrus' Sentry Station",
"Snowdin - Doggo",
"Snowdin - Compass sign",
"Snowdin - Snowman",
"Snowdin - Electricity Maze",
"Snowdin - Snow golf",
"Snowdin - 2 guard dog houses",
"Snowdin - Monster Kidz Word Search",
"Snowdin - Spaghetti [SAVE]",
"Snowdin - Warning: Dog Marriage",
"Snowdin - XO puzzle 1",
"Snowdin - XO puzzle 2",
"Snowdin - Color tile puzzle",
"Snowdin - Dog House [SAVE]",
"Snowdin - Snow Papyrus & Sans",
"Snowdin - Sliding XO puzzle",
"Snowdin - Teleporting Sans",
"Snowdin - Ice Cave entrance",
"Snowdin - Snow poffs (Greater Dog)",
"Snowdin - Gauntlet of Deadly Terror",
"Snowdin - Town [SAVE]",
"Snowdin Town: Ice haul wolf",
"Snowdin Town: Boat harbor",
"Snowdin Town: Inn lobby",
"Snowdin Town: Inn bedroom",
"Snowdin Town: Grillby's",
"Snowdin Town: Library",
"Snowdin Town: Papyrus's shed",
"Snowdin Town: Papyrus and Sans's house",
"Snowdin Town: Papyrus's room",
"Snowdin Town: Sans's room [Dogchecked]",
"Snowdin Town: Sans's room (dark) [Dogchecked]",
"Snowdin Town: Sans's basement [Dogchecked]",
"Snowdin - Papyrus Battle",
"Waterfall - Entrance",
"Waterfall - Checkpoint [SAVE]",
"Waterfall - Falling rocks",
"Waterfall - Tutu room",
"Waterfall - Hallway [SAVE]",
"Waterfall - Lily pad bridge",
"Waterfall - Lily pad vertical bridge",
"Waterfall - Quiche room",
"Waterfall - Telescope",
"Waterfall - Boat plank",
"Waterfall - Undyne Spear dodging 1",
"Waterfall - Bush after spear dodging",
"Waterfall - Crystal [SAVE]",
"Waterfall - Sans Telescope",
"Waterfall - Nice Cream Stand",
"Waterfall - Split Pathway",
"Waterfall - Ballet shoes",
"Waterfall - Duck",
"Waterfall - Onionsan",
"Waterfall - Artifact hub",
"Waterfall - Piano",
"Waterfall - Legendary Artifact",
"Waterfall - Rainy Statue",
"Waterfall - Umbrellas",
"Waterfall - Rainy Path 1",
"Waterfall - Rainy Path 2",
"Waterfall - Palace View",
"Waterfall - Umbrella ledge",
"Waterfall - Bridge [SAVE]",
"Waterfall - Bridge spear dodge",
"Waterfall - Bridge fall",
"Waterfall - Trash Zone Flower bed",
"Waterfall - Trash Zone [SAVE]",
"Waterfall - Training Dummy revenge",
"Waterfall - Quiet Area [SAVE]",
"Waterfall - Undyne's house entrance",
"Waterfall - Undyne's house interior",
"Waterfall - Twin Ghost houses",
"Waterfall - Napstablook's house interior",
"Waterfall - Hapstablook's house interior",
"Waterfall - Snail Farm",
"Waterfall - Pre Bird (Unused)",
"Waterfall - Turtle shop",
"Waterfall - River boat",
"Waterfall - 2 waterfalls",
"Waterfall - Mushroom maze",
"Waterfall - Temmie Village [SAVE]",
"Waterfall - Lamp maze",
"Waterfall - Behind you",
"Waterfall - More flowers",
"Waterfall - Cave bridge",
"Waterfall - Cave exit",
"Waterfall - Undyne area",
"Waterfall - Undyne area + 1",
"Waterfall - Hotland Welcome",
"Hotland - Entrance",
"Hotland - Water tank",
"Hotland - Laboratory Entrance [SAVE]",
"Hotland - River boat",
"Hotland - Laboratory Hub",
"Hotland - Laboratory Upper Floor",
"Hotland - Laboratory Exit",
"Hotland - Treadmills 1",
"Hotland - Magma Chamber [SAVE]",
"Hotland - Burnt Pan",
"Hotland - Lasers 1",
"Hotland - Puzzle Gate 1",
"Hotland - Left Boz Puzzle Entrance",
"Hotland - Left Box Puzzle",
"Hotland - Right Box Puzzle Entrance",
"Hotland - Right Box Puzzle",
"Hotland - Arrow bridge",
"Hotland - Kitchen",
"Hotland - Core View [SAVE]",
"Hotland - Elevator R1",
"Hotland - Elevator R2",
"Hotland - Hot Dog Stand",
"Hotland - Art Club Entrance",
"Hotland - Art Club",
"Hotland - Stained Apron",
"Hotland - Treadmill switch puzzle",
"Hotland - Arrow puzzle",
"Hotland - Bad Opinion Zone [SAVE]",
"Hotland - Bro guards",
"Hotland - Bombastic News report",
"Hotland - Upper Core View",
"Hotland - Elevator L2",
"Hotland - Elevator L3",
"Hotland - Spider Bake Sale",
"Hotland - F3 Puzzle Gate",
"Hotland - F3 South Puzzle Entrance",
"Hotland - F3 South Puzzle",
"Hotland - F3 North Puzzle Entrance",
"Hotland - F3 North Puzzle",
"Hotland - Spider Entrance [SAVE]",
"Hotland - Spider Room",
"Hotland - Mettaton Poster",
"Hotland - Theater Stage",
"Hotland - Colored Tile Maze 2",
"Hotland - Nice Cream Stand",
"Hotland - Hotel Entrance",
"Hotland - Hotel Lobby [SAVE]",
"Hotland - Hotel Restaurant",
"Hotland - Hotel Cordidor",
"Hotland - Hotel Alley",
"Hotland - Elevator R3",
"Hotland - Core Entrance",
"Hotland - Core Elevator",
"Hotland - Core Pit",
"Hotland - Core North of Elavator",
"Hotland - Core Wrong order lasers",
"Hotland - Core Crossroads",
"Hotland - Core Dead End",
"Hotland - Core Power Laser Puzzle",
"Hotland - Core Branch [SAVE]",
"Hotland - Core Ice Deposit",
"Hotland - Core West Puzzle Entrance",
"Hotland - Core West Puzzle Entrance + 1",
"Hotland - Core West Puzzle Entrance + 2",
"Hotland - Core East Money Trash Bin Entrance",
"Hotland - Core End - 3",
"Hotland - South of 100G Trash Can",
"Hotland - Core End - 4",
"Hotland - Core Get Lost",
"Hotland - Core West Puzzle",
"Hotland - Core Glamburger Trash Can",
"Hotland - Core 100G Trash Can",
"Hotland - Core Battle Bridge",
"Hotland - Core End - 1",
"Hotland - Core End [SAVE]",
"Hotland - Core Mettaton Room",
"Hotland - Core Final Elevator Entrance",
"Hotland - Elevator L1",
"Hotland - Core Final Elevator",
"Castle Elevator [SAVE]",
"Castle - Another Elevator",
"Castle - Dark Path",
"New Home [SAVE]",
"New Home - Entrance",
"New Home - Reading Room",
"New Home - Corridor",
"New Home - Asgore's Room",
"New Home - Your Room",
"New Home - Kitchen",
"New Home - Basement 1",
"New Home - Basement 2",
"New Home - Basement 3",
"New Home - Basement 4",
"New Home - Elevator",
"Last Corridor [SAVE]",
"Throne Entrance [SAVE]",
"Throne Entrance - Stairs Down",
"Throne Entrance - Coffins",
"Throne Room [SAVE]",
"The End [SAVE]",
"Barrier",
"Flowey post-battle",
"Neutral credits [Dogchecked]",
"Path to outside [Dogchecked]",
"Outside [Dogchecked]",
"Laboratory Elevator",
"True Lab - Elevator",
"True Lab - Elevator Entrance",
"True Lab - South Corridor",
"True Laboratory [SAVE]",
"True Lab - West Corridor 1",
"True Lab - West Sinks",
"True Lab - West red key slot",
"True Lab - North Corridor 1",
"True Lab - Bedroom [SAVE]",
"True Lab - Northeast Corridor",
"True Lab - Northeast blue key slot",
"True Lab - North Corridor 2",
"True Lab - Green key",
"True Lab - Northwest skull [SAVE?]",
"True Lab - Yellow Key Slot + TV",
"True Lab - Northwest refrigerators",
"True Lab - Green Key Slot",
"True Lab - Fans",
"True Lab - Elevator 2",
"True Lab - Power room corridor",
"True Lab - Power room",
"Gaster Room",
"Snowdin - Ice Cave 1",
"Snowdin - Developer Room [Dogchecked]",
"room2 [Dogchecked]",
"Waterfall - Mysteryman hallway [Dogchecked]",
"Waterfall - Mysteryman room [Dogchecked]",
"Snowdin - Sound Test Room [Dogchecked]",
"TESTROOM [Dogchecked]",
"Waterfall - Redacted [Dogchecked]",
"Waterfall - Cut Bridge Puzzle [Dogchecked]",
"room_overworld [Dogchecked]",
"room_overworld3 [Dogchecked]",
"Bullet Test [Dogchecked]",
"room_water16A [Dogchecked]",
"Pacifist credits [Dogchecked]",
"Pacifist credits - Highway [Dogchecked]",
"Pacifist credits - Beach [Dogchecked]",
"Pacifist credits - Mettaton performance [Dogchecked]",
"Pacifist credits - School entrance [Dogchecked]",
"Pacifist credits - Mount Ebott [Dogchecked]",
"Pacifist credits - Special Thanks [Dogchecked]",
"Pacifist credits - Bedroom [Dogchecked]",
"Pacifist credits - The End [Dogchecked]",
"Sprite Test [Dogchecked]",
"Settings menu [Dogchecked]",
"Control test room [Dogchecked]",
"Omega Flowey - Initializer [Dogchecked]",
"Omega Flowey - Fake intro [Dogchecked]",
"Omega Flowey - Fake menu [Dogchecked]",
"Omega Flowey - Fake save point [Dogchecked] [SAVE?]",
"Omega Flowey [Dogchecked]",
"Omega Flowey - Respawn mocking [Dogchecked]",
"room_fire4 [Dogchecked]",
"room_fire10_old [Dogchecked]",
"room_fire10A_old [Dogchecked]",
"Snowdin - Ice Puzzle [Dogchecked]",
"Ruins - Rock Candy [Dogchecked]",
"Snowdin - Growing snowball [Dogchecked]",
"Waterfall - Torch puzzle [Dogchecked]",
"Waterfall - Meet Undyne (Unused) [Dogchecked]",
"Waterfall - Rooted mushroom [Dogchecked]",
"room_monsteralign_test [Dogchecked]",
"Battle room [Dogchecked]",
"Flowey battle room [Dogchecked]",
"\"Fast\" battle room [Dogchecked]",
"New Home - Story battle room [Dogchecked]",
"Game Over [Dogchecked]",
"Snowdin Town - Shop [Dogchecked]",
"Waterfall - Gerson's shop [Dogchecked]",
"Hotland - Bratty and Catty [Dogchecked]",
"Hotland - Burgerpants [Dogchecked]",
"Waterfall - Tem Shop [Dogchecked]",
"River person transition room [Dogchecked]",
"Papyrus date [Dogchecked]",
"Alphys date [Dogchecked]",
"Omega Flowey - Wilting [Dogchecked]",
"Flowey's pacifist speech [Dogchecked]",
"room_empty [Dogchecked]",
"room_emptywhite [Dogchecked]",
"room_emptyblack [Dogchecked]",
"Genocide - The Nothingness [Dogchecked]",
"Snowdin - Title [Dogchecked]",
"Dogcheck room",
"Hotland - Quiz battle (Unused) [Dogchecked]",
"Pre-Asriel scene (Unused) [Dogchecked]",
"Pre-Asriel scene 2 (Unused) [Dogchecked]",
"Asriel appears [Dogchecked]",
"Asriel room [Dogchecked]",
"Asriel flashbacks [Dogchecked]",
"Asriel animation test [Dogchecked]",
"Asriel phase 2 animation test [Dogchecked]",
"Snowdin - Dog Shrine [Dogchecked]"
];
const plotValues = { // Unobtainable values are commented out; this may change to be similar to rooms
// "0": "New game",
// "1": "Flowey intro complete",
"2": "First save",
"3": "Stepping tile puzzle complete",
"4": "Toriel waiting at switch puzzle",
"4.5": "First switch flipped",
"5": "Switch puzzle complete",
"5.5": "Toriel waiting at dummy",
// "6": "Dummy defeated",
"7": "Toriel at spike puzzle",
// "7.5": "Crossing spike puzzle",
"8": "Spike puzzle complete",
// "8.5": "Unnecessary Tension",
"9": "Toriel left",
"9.2": "Received Toriel puzzle call",
"9.4": "Received Toriel preference call",
"9.6": "Received Toriel confirmation call",
"9.8": "Received Toriel allergies call",
// "10.3": "Napstablook spared",
// "10.35": "Battle exited",
// "10.4": "And some dialogue", // needs better desc.
"11": "Napstablook defeated",
"12": "Received Toriel pockets call",
"13": "Just one switch puzzle solved",
"14": "Blue switch flipped",
"15": "Red switch flipped",
"16": "Green switch flipped",
"17": "Met Toriel at Ruins end",
"18": "Toriel waiting at bedrooms",
"19": "Toriel reading",
"19.1": "Received sleep suggestion",
"19.2": "\"I have always wanted to be a teacher.\"",
// "19.3": "Receiving snail fact",
"19.4": "Received snail fact",
// "19.9": "\"I have to do something\"",
// "20": "Toriel standing up",
"21": "Toriel in basement",
"22": "Toriel in Basement 2",
"23": "Toriel in Basement 3",
"24": "Toriel at Ruins Exit",
// It goes back to 11 for a moment here, fwiw. Copy-paste.
"25": "Toriel defeated",
// "28": "Flowey judgment complete",
// "30": "Exited Ruins",
// "36": "Met Sans and Papyrus, Sans hasn't left",
"37": "Sans/Papyrus intro complete",
"40": "Papyrus rock scene complete",
// "41": "Doggo defeated, still in battle",
"42": "Doggo defeated",
"43": "Invisible Maze complete",
"47": "Crossword complete",
"49": "Undersnow switch complete",
// "50": "Dogi defeated, still in battle",
"51": "Dogi defeated",
"53": "Small XO puzzle complete",
"54": "Large XO puzzle started",
"56": "Large XO puzzle complete",
"57": "XO puzzles complete (Genocide)",
"58": "Papyrus's tile puzzle complete",
"63": "Icy XO puzzle complete",
// "60": "Greater Dog defeated, still in battle",
// "61": "Greater Dog spared",
"65": "Greater Dog defeated",
"67": "Gauntlet of Deadly Terror complete",
// "100": "Papyrus defeated, in post-battle cutscene",
"101": "Papyrus defeated",
"106": "Undyne intro complete",
"107": "Bridge Seed puzzles complete", // technically when you get Papyrus's call, or don't get it as the case may be, but this seems more apt.
"108": "Hidden door opened",
// "109": "", // Something about that unused torch puzzle in room_water7_older? Inaccessible anyway.
"110": "Undyne spear-throwing scene complete",
"111": "Shyren defeated",
"112": "Monster Kid crouching",
"113": "Climbed ledge",
"115": "Undyne bridge spears scene complete (entered dump)",
"116": "Mad Dummy defeated",
"117": "Received Napstablook's directions/Glad Dummy defeated", // verify
"118": "\"Behind you.\" scene complete",
"119": "Pre-Undyne the Undying", // Set by a trigger in room_water19. The trigger also causes the Flowey echo flower and "Shouldn't proceed yet" on Genocide.
"120": "Final Monster Kid scene complete",
"121": "Received Undyne speech",
"122": "Undyne defeated",
// "126": "Quiz show complete, phone not upgraded",
"127": "Quiz show complete (Neutral/Pacifist)",
"130": "Received Alphys hangup",
"131": "Received Alphys laser explanation",
"132": "Received Alphys shooter puzzle explanation",
"133": "First shooter puzzle complete", // triggers on door opening
"133.5": "Received Alphys unnecessary puzzle explanation",
// "134": "Ingredients collected",
"135": "Cooking show complete",
"137": "Received Alphys CORE explanation",
"139": "Received Alphys three-switches explanation",
"140": "Three-switches puzzle complete",
"143": "Received Alphys bathroom call",
"146": "Royal Guards defeated (Neutral/Pacifist)",
"160": "Mettaton intro complete (Genocide)",
"161": "News show complete",
"162": "\"With your human soul, you can pass through the barrier!\"",
"163": "\"Let's be friends on UnderNet!\"",
"164": "Second shooter puzzle complete/Royal Guards defeated (Genocide)",
"165": "Muffet defeated (Neutral/Pacifist)",
// "167": "Opera scene complete",
"168": "Mettaton's tile puzzle complete",
"176": "Spotted mercenaries",
"177": "Received Alphys elevator call",
"179": "First Madjick battle complete",
"180": "Received Alphys laser order call",
"181": "Received Alphys apology call",
"182": "\"Try heading to the right!\"",
"184": "Reactivating lasers bridge complete",
"185": "\"This doesn't look like my map at all\"/Muffet defeated (Genocide)",
// "193": "Mettaton defeated, Alphys scene incomplete",
"199": "Mettaton defeated",
"201": "True Lab (Pacifist)/Last Corridor (Neutral/Genocide) complete",
"206": "Asgore intro complete",
"207": "\"A visit to the dentist\"",
"208": "Pre-Asgore",
"999": "Pacifist epilogue"
};
let flags = {
// Format of [name (String), description (String), options (Object)]
// 0-3 are unused
4: ["undyne_trigger_override", "Debug variable. Allows Undyne to give her Pacifist speech even if one (but only one) monster is killed.", basicBool],
5: ["fun", "The fun value. See above list for effects."],
6: ["hardmode", "Hard Mode.", basicBool],
7: ["true_pacifist", "In the Pacifist epilogue.", basicBool],
8: ["disable_random_encounters", "Self-explanatory. Set at the start of the Undyne's Letter quest or after defeating Mettaton NEO.", basicBool],
9: ["flowey_seen_stalking", "Unaccessed. Tracks how often you backtracked to catch Flowey."],
10: ["spared_last", "Whether you spared the previous enemy.", basicBool],
11: ["escaped_last", "Whether you fled the previous battle.", basicBool],
12: ["killed_last", "Whether you killed the previous enemy.", basicBool],
13: ["bored_last", "Intended for Dummy. Copied to all Ruins enemies.", basicBool],
14: ["status_dummy", "What you did to that poor, poor Dummy.", [
"Escaped from",
"Killed",
"Talked to",
"Bored"
]],
15: ["in_battle", "Whether you are in a battle.", basicBool],
16: ["type_heart_transition", "Whether you are entering a 'quick' battle.", basicBool],
17: ["menu_disabled", "Whether you cannot access your menu due to an overworld event (e.g. Undyne chasing you).", basicBool],
18: ["view_rotated", "Whether the view is rotated. Only used for Undyne's speech.", basicBool],
// no 19
20: ["animation_index", "Certain enemies' current animation frame."],
21: ["cooked_noodles", "Whether you are cooking the Instant Noodles. Makes the text unskippable in battle.", basicBool],
22: ["name_color", "Color of the names of spareable enemies.", [
"Yellow",
"White",
"Pink"
]],
23: ["spares", "How many enemies you have spared."],
24: ["escapes", "How many enemies you have fled from."],
25: ["dialogues_skipped", "How many textboxes you have skipped."],
26: ["murderlevel_override", "Debug variable. Overrides the Genocide Route progress. Normally, each level also requires all previous levels to be met.", {
0: "No murder level",
1: "20 Ruins kills",
2: "Toriel",
3: "Doggo",
4: "Dogi",
5: "Greater Dog",
6: "Snowdrake",
7: "16 Snowdin kills",
8: "Papyrus",
9: "Shyren",
10: "Glad Dummy",
11: "18 Waterfall kills",
12: "Undyne",
13: "Royal Guards",
14: "Muffet",
15: "40 Hotland kills",
16: "Mettaton",
50: "Level 50 (Debug)"
}],
27: ["spared_specific", "Whether you spared certain bosses or minibosses, aborting the Genocide Route.", basicBool],
28: ["fast_text_skip", "Debug variable. Makes [C] skip most text very fast.", basicBool],
// no 29
30: ["tutorial_froggit_met", "Whether you have fought the scripted Froggit.", basicBool],
31: ["pushed_rock_1", "Whether you have pushed the middle rock.", basicBool],
32: ["pushed_rock_2", "Whether you have pushed the top rock.", basicBool],
33: ["pushed_rock_3", "Whether you have completed the second rock-pushing puzzle.", basicBool],
34: ["candy_taken", "How much Monster Candy you have taken.", [
"None",
"One piece",
"Two pieces",
"Three pieces",
"Four pieces, you Monster."
]],
35: ["pushed_rock_4", "Whether you have completed the first rock-pushing puzzle.", basicBool],
36: ["spared_napstablook", "Tracks your interaction with Napstablook in the Ruins.", [
"Inital state",
"Spared",
"Spared, met in hole"
]],
37: ["dog_call_status", "Tracks the Toriel phone calls when waiting, especially about the Annoying Dog.", [
"Initial state",
"Dog has Toriel's phone",
"Toriel's phone recovered"
]],
// 38, 39 unused
40: ["greeted_toriel", "How many times you have called Toriel to say hello."],
41: ["flirted_toriel", "How many times you have called Toriel to flirt with her."],
42: ["call_mom_toriel", "Whether you have called Toriel 'mom'.", basicBool],
43: ["ruins_switches_pressed", "When greater than 25, changes the displayed text upon pressing a switch."],
44: ["disobeyed_toriel", "How many times Toriel had to return you upstairs."],
45: ["status_toriel", "Self-explanatory.", {
0: "Initial state",
1: "In basement",
3: "Fled from",
4: "Killed",
5: "Spared"
}],
46: ["choice_flavor", "Your choice for Toriel's pie flavor.", [
"Cinnamon",
"Butterscotch"
]],
47: ["status_creepy_tundra", "Partly handles progress through the 'creepy' part of Sans's introduction scene.", {
"0": "Initial state",
"2": "Stick broken",
"3": "Sans spotted",
"-1": "Scene complete",
}],
// no 48, 49
50: ["know_water_sausage", "Read about water sausages in Toriel's room. Makes you recognize the plant in Toriel's living room.", basicBool],
51: ["wrong_switches_pressed", "Gives you a hint after two failures."],
52: ["status_doggo", "Self-explanatory.", simpleDogStates],
53: ["status_dogcouple", "Self-explanatory.", simpleDogStates],
54: ["status_greaterdog", "Self-explanatory.", [
"Inital state",
"Killed",
"Played fetch (Spared)",
"Ignored"
]],
55: ["status_lesserdog", "Self-explanatory.", [
"Initial state",
"Killed",
"Continued petting [Yellow credit]"
]],
56: ["status_snowman", "Status of the snowman in Snowdin Forest (Neutral/Pacifist).", {
0: "Initial state",
1: "Have a Snowman Piece",
2: "Have a second Snowman Piece",
4: "Ate the Piece in front of him",
5: "Talked to him after"
}],
57: ["status_snowdrake", "Self-explanatory.", [
"Initial state",
"Laughed at joke [Yellow credit]",
"Killed"
]],
58: ["choice_harder_puzzle", "Which puzzle you told Sans and Papyrus was harder.", [
"Junior Jumble",
"Crossword"
]],
59: ["spider_donations_total", "How much money you've given to either Spider Bake Sale."],
60: ["nicecream_donations_total", "How much money you've spent on Nice Cream (+1 for talking to him at all)."],
// no 61
62: ["choice_ate_left_spaghetti", "What you told Papyrus you did with his spaghetti. Affects phone dialogue in the spaghetti room.", [
"Initial state",
"Ate it",
"Left it"
]],
63: ["xoxo_resets", "How many times you failed the second XO puzzle. Affects Sans's dialogue in the room."],
64: ["toggled_snow_switch", "Status of the hidden switch puzzle in the Dogi/Lesser Dog room.", {
"-1": "Moved the snow",
"0": "Initial state",
"1": "Pressed switch w/o moving snow or on Genocide"
}],
65: ["got_snowpoff_gold", "Self-explanatory.", basicBool],
66: ["flirted_papyrus_fight", "Self-explanatory. Changes his hangout to a date.", basicBool],
67: ["status_papyrus", "Self-explanatory.", {
"-3": "Lost to thrice",
"-2": "Lost to twice",
"-1": "Lost to once",
"0": "Initial state",
"1": "Killed"
}],
68: ["fought_papyrus", "Self-explanatory. Basically used for the cutscene to tell if the fight is done. Reset each refight.", basicBool],
69: ["bpants_alt_dialogue", "Debug variable. Slightly alters Burgerpants's dialogue in old versions of the game; appears intended to track being in shops before. Unused in newer versions.", basicBool],
70: ["progress_tundra_battles", "Loosely, how many Snowdin encounters you've had. Guarantees you encounter a variety of enemies.", {
0: "Initial state",
1: "Encountered Snowdrake",
2: "Encountered Ice Cap",
4: "Encountered Lesser Dog"
}],
// no 71
72: ["status_inn", "Tracks your interaction with the innkeep.", [
"Initial state",
"Stayed a night",
"Stayed a night with no money"
]],
73: ["in_inn", "Whether you are currently sleeping in the inn.", basicBool],
74: ["betrayed_gyftrot", "Whether you cruelly added another decoration to Gyftrot. Unaccessed.", basicBool],
75: ["armor_papyrus_inquiry", "The armor you were wearing when Papyrus called to ask.", {
0: "Initial state",
4: "Bandage",
12: "Faded Ribbon",
15: "Manly Bandana",
24: "Old Tutu",
44: "Cloudy Glasses (impossible)",
46: "Stained Apron (impossible)",
48: "Cowboy Hat (impossible)",
50: "Heart Locket (impossible)",
53: "The Locket (impossible)",
64: "temy armor (impossible)"
}],
76: ["choice_papyrus_inquiry", "What you told Papyrus about your armor.", [
"Truth",
"Lied"
]],
77: ["armor_undyne_saw", "The armor Undyne saw you wearing. Affect's Papyrus's call about it.", {
0: "Initial state",
4: "Bandage",
12: "Faded Ribbon",
15: "Manly Bandana",
24: "Old Tutu",
44: "Cloudy Glasses (impossible)",
46: "Stained Apron (impossible)",
48: "Cowboy Hat (impossible)",
50: "Heart Locket (impossible)",
53: "The Locket (impossible)",
64: "temy armor (impossible)"
}],
78: ["strong_tough_glove", "Whether you tore up a Punch Card in the current battle, strengthening the Tough Glove.", basicBool],
79: ["nicecream_business", "Whether you interacted with Nice Cream Guy in Waterfall.", {
0: "Initial state",
8: "Interacted"
}],
80: ["punchcards_bought", "The amount of Punch Cards in the Punch Card Box."],
81: ["status_shyren", "Self-explanatory.", [
"Initial state",
"Killed",
"Continued humming [Yellow credit]"
]],
82: ["papyrus_sink_event_occurred", "Self-explanatory.", basicBool],
83: ["got_couch_gold", "Self-explanatory.", basicBool],
84: ["mushroom_talk_progress", "Your status with the inaccessible NPC in room_water_mushroom.", {
0: "Initial state",
2: "Accepted request",
3: "Returned (impossible)",
4: "Said it was different",
5: "Said it was the same"
}],
85: ["have_umbrella", "Self-explanatory.", basicBool],
86: ["music_statue_on", "Whether you've given the music statue an umbrella.", basicBool],
// no 87
88: ["dated_papyrus", "Tracks progress through Papyrus's date.", [
"Initial state",
"Spared Papyrus",
"Papyrus in house",
"Unlocked Papyrus's room",
"Date/hangout complete"
]],
89: ["dated_sans1", "Tracks progress through the Grillby's hangout", [
"Initial state",
"In Grillby's",
"Hangout complete"
]],
90: ["choice_mkid_umbrella", "Tracks Monster Kid's knowledge of your umbrella habits.", [
"Initial state",
"Met without umbrella",
"Met with umbrella",
"Put umbrella back"
]],
91: ["trash_save_mkid_pos", "Tracks progress through the Monster Kid following sequence... and interacting with the Garbage Dump save point.", {
0: "Initial state",
1: "'Undyne is sooooooo cool.'/Interacted with save",
3: "'How COOL would it be if UNDYNE came to school!?'",
4: "'She's too cool to ever hurt an innocent person!'",
6: "Seen castle",
10: "Scene complete"
}],
92: ["status_stable", "Tracks the status of the unused stable and its key.", [
"Initial state",
"[redacted] in stable (impossible)",
"Interacted with [redacted]",
"Key acquired",
"Stable unlocked (impossible)"
]],
93: ["dated_napstablook", "Tracks progress through Napstablook's house.", {
0: "Initial state",
1: "Have been introduced",
3: "Felt like garbage",
9: "Did not feel like garbage"
}],
94: ["current_napstablook_song", "Which of Napstablook's songs is currently playing. Setting this value outside of the area might cause problems (but most of these do that).", [
"Initial state",
"Spooktune",
"Spookwave",
"Ghouliday"
]],
95: ["aaron_woshua_event", "Whether you encountered Aaron and Woshua while one of Napstablook's songs was playing. Necessary for Aaron's yellow credit.", basicBool],
96: ["conversation_emblem", "How much you've talked with Gerson about the Delta Rune.", [
"Initial state",
"'That emblem'",
"'Emblem's meaning'",
"'The prophecy'"
]],
97: ["creepy_friend_seen", "Whether the NPC in room_water_prebird saw your creepy friend. The room is unused.", basicBool],
98: ["saved_mkid", "What you did to Monster Kid.", [