-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path[15964] ~Hack~ Smash Remix.rascript
More file actions
6148 lines (5716 loc) · 262 KB
/
[15964] ~Hack~ Smash Remix.rascript
File metadata and controls
6148 lines (5716 loc) · 262 KB
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
// ~Hack~ Smash Remix
// #ID = 15964
// ----------------------------------------------------------------------------------------------------
// Dynamic Addresses
Mem_Bonus12RecordData = 0x4A2CA7
// v1.5.2 - 0x48BCF0
// v1.1.0 - 0x45034C
// Bonus 1 / Bonus 2 - Records (new Characters - Normal) [1600 Bytes; 32 Bytes per Character ID]
// +16 | Bonus 1 - Record Time (32bit)
// +23 | Bonus 1 - Target Record
// +24 | Bonus 2 - Record Time (32bit)
// +31 | Bonus 2 - Platform Record
Mem_RulesData = 0x4617A8
// v1.5.2 - 0x452888
// v1.1.0 - 0x452880
Mem_HighscoreOn = 0x4E79D0
// v1.5.2 - 0x4C9BE0
Mem_BattleSetting = 0x453748
// v1.5.2 - 0x4462C8
Mem_GameMode = 0x4E9C94
// v1.5.2 - 0x4CBD04
// v1.1.0 - 0x4752BC
// Game Mode
// 00 | 1P Game
// 01 | Race to the Finish
// 02 | Multi-Man Mode
// 03 | Cruel Multi-Man Mode
// 04 | 1P Remix
// 05 | All-Star Mode
// 06 | Home-Run Contest
Mem_12CharacterStocks = 0x4F6D10
// v1.5.2 - 0x4D7618
// v1.1.0 - 0x47E91C
// 12-Character Battle - Set Stocks [32bit]
Mem_HomerunDistance = 0x4F00A0
// v1.5.2 - 0x4D1DB0
// v1.1.0 - 0x479694
// Home-Run Contest - Distance (Graphic) [32bit]
Mem_FreeModeComboData = 0x4E5360
// v1.5.2 - 0x4C7780
// v1.1.0 - 0x4715AC
// Free-for-All - 1P - Combo [16 Bytes]
// +00 | Combo against 1P
// +04 | Combo against 2P
// +08 | Combo against 3P
// +12 | Combo against 4P
Mem_PlayerTagStart = 0x468D9F
// v1.5.2 - 0x4590DB
// Array that stores Player Tags
Mem_GallerySounds = 0x5139AC
// Gallery - Sound Mode [32bit]
Mem_SonicVariation = 0x559F90
// Sonic Variation currently played by Player [4 Bytes; 8bit each]
Mem_KirbyHatOption = 0x584160
// v1.5.2 - 0x546178
// Option for Pre-Selected Kirby Hat [16 Bytes; 32bit each]
Mem_1PGameNewScores = 0x4A2CA0
// 1P Game - Highscore Data - Master Hand [32 Bytes]
Mem_Remix1PScores = 0x4A3750
// Remix 1P - Highscore Data - Mario [32 Bytes]
Mem_MultiManScores = 0x4A5170
// Multi-Man Mode - Highscore Data - Mario [4 Bytes]
Mem_HomeRunScores = 0x4A5650
// Home-Run Contest - Highscore Data - Mario [4 Bytes]
Mem_KingOfTheHillZone = 0x500C64
// King of the Hill - Frames in Zone [16 Bytes; 32bit each]
Val_WarioComplain = 0x8053DE80
// v1.5.2 - 0x8050E910
// v1.1.0 - 0x8049BCE4
// Wario's Idle Animation [32bit]
// ----------------------------------------------------------------------------------------------------
// Static Addresses
Mem_CurrentMusicTrack = 0x096710
Mem_VSRecordsOldChars = 0x0A44E0
Mem_NormalModeData = 0x0A4938
Mem_1PGameOldScores = Mem_NormalModeData + 0x4
Mem_FreeModeData = 0x0A4D0E
Mem_GameState = 0x0A4AD3
Mem_PointerPlayerData = 0x130D84
Mem_Bonus12Data = 0x1313FF
Mem_ContinueState = 0x13433C
Mem_TrainingSelectData = 0x1385A0
Mem_NormalSelectData = 0x138F08
Mem_MultiManKills = 0x1936A0
Mem_World1_1Progress = 0x1313E0
Mem_CameraData = 0x131460
Mem_VSMode = Mem_12CharacterStocks - 0x9F8
Mem_SmashketballData = Mem_HomerunDistance + 0x12088
// ----------------------------------------------------------------------------------------------------
// ID, Name, New Character, Species
Characters = [
[0x00, "Mario", false, "Mario"],
[0x01, "Fox", false, "Fox"],
[0x02, "Donkey Kong", false, "Donkey Kong"],
[0x03, "Samus", false, "Samus"],
[0x04, "Luigi", false, "Luigi"],
[0x05, "Link", false, "Link"],
[0x06, "Yoshi", false, "Yoshi"],
[0x07, "Captain Falcon", false, "Captain Falcon"],
[0x08, "Kirby", false, "Kirby"],
[0x09, "Pikachu", false, "Pikachu"],
[0x0A, "Jigglypuff", false, "Jigglypuff"],
[0x0B, "Ness", false, "Ness"],
[0x0C, "Master Hand", true, "Master Hand"],
[0x0D, "Metal Mario", true, "Metal Mario"],
[0x0E, "Polygon Mario", true, "Polygon"],
[0x0F, "Polygon Fox", true, "Polygon"],
[0x10, "Polygon Donkey Kong", true, "Polygon"],
[0x11, "Polygon Samus", true, "Polygon"],
[0x12, "Polygon Luigi", true, "Polygon"],
[0x13, "Polygon Link", true, "Polygon"],
[0x14, "Polygon Yoshi", true, "Polygon"],
[0x15, "Polygon Captain Falcon", true, "Polygon"],
[0x16, "Polygon Kirby", true, "Polygon"],
[0x17, "Polygon Pikachu", true, "Polygon"],
[0x18, "Polygon Jigglypuff", true, "Polygon"],
[0x19, "Polygon Ness", true, "Polygon"],
[0x1A, "Giant Donkey Kong", true, "Giant Donkey Kong"],
[0x1B, "", false, ""],
[0x1C, "", false, ""],
[0x1D, "Falco", true, "Falco"],
[0x1E, "Ganondorf", true, "Ganondorf"],
[0x1F, "Young Link", true, "Young Link"],
[0x20, "Dr. Mario", true, "Dr. Mario"],
[0x21, "Wario", true, "Wario"],
[0x22, "Dark Samus", true, "Dark Samus"],
[0x23, "EU Link", true, "Link"],
[0x24, "JP Samus", true, "Samus"],
[0x25, "JP Ness", true, "Ness"],
[0x26, "Lucas", true, "Lucas"],
[0x27, "JP Link", true, "Link"],
[0x28, "JP Captain Falcon", true, "Captain Falcon"],
[0x29, "JP Fox", true, "Fox"],
[0x2A, "JP Mario", true, "Mario"],
[0x2B, "JP Luigi", true, "Luigi"],
[0x2C, "JP Donkey Kong", true, "Donkey Kong"],
[0x2D, "EU Pikachu", true, "Pikachu"],
[0x2E, "JP Jigglypuff", true, "Jigglypuff"],
[0x2F, "EU Jigglypuff", true, "Jigglypuff"],
[0x30, "JP Kirby", true, "Kirby"],
[0x31, "JP Yoshi", true, "Yoshi"],
[0x32, "JP Pikachu", true, "Pikachu"],
[0x33, "EU Samus", true, "Samus"],
[0x34, "Bowser", true, "Bowser"],
[0x35, "Giga Bowser", true, "Giga Bowser"],
[0x36, "Mad Piano", true, "Mad Piano"],
[0x37, "Wolf", true, "Wolf"],
[0x38, "Conker", true, "Conker"],
[0x39, "Mewtwo", true, "Mewtwo"],
[0x3A, "Marth", true, "Marth"],
[0x3B, "Sonic", true, "Sonic"],
[0x3C, "Sandbag", true, "Sandbag"],
[0x3D, "Super Sonic", true, "Super Sonic"],
[0x3E, "Sheik", true, "Sheik"],
[0x3F, "Marina", true, "Marina"],
[0x40, "King Dedede", true, "King Dedede"],
[0x41, "Goemon", true, "Goemon"],
[0x42, "Peppy", true, "Peppy"],
[0x43, "Slippy", true, "Slippy"],
[0x44, "Banjo & Kazooie", true, "Banjo & Kazooie"],
[0x45, "Metal Luigi", true, "Metal Luigi"],
[0x46, "Ebisumaru", true, "Ebisumaru"],
[0x47, "Dragon King", true, "Dragon King"],
[0x48, "Crash", true, "Crash"],
[0x49, "Peach", true, "Peach"],
[0x4A, "Roy", true, "Roy"],
[0x4B, "Dr. Luigi", true, "Dr. Luigi"],
[0x4C, "Lanky Kong", true, "Lanky Kong"],
[0x4D, "Polygon Wario", true, "Polygon"],
[0x4E, "Polygon Lucas", true, "Polygon"],
[0x4F, "Polygon Bowser", true, "Polygon"],
[0x50, "Polygon Wolf", true, "Polygon"],
[0x51, "Polygon Dr. Mario", true, "Polygon"],
[0x52, "Polygon Sonic", true, "Polygon"],
[0x53, "Polygon Sheik", true, "Polygon"],
[0x54, "Polygon Marina", true, "Polygon"],
[0x55, "Polygon Falco", true, "Polygon"],
[0x56, "Polygon Ganondorf", true, "Polygon"],
[0x57, "Polygon Dark Samus", true, "Polygon"],
[0x58, "Polygon Marth", true, "Polygon"],
[0x59, "Polygon Mewtwo", true, "Polygon"],
[0x5A, "Polygon King Dedede", true, "Polygon"],
[0x5B, "Polygon Young Link", true, "Polygon"],
[0x5C, "Polygon Goemon", true, "Polygon"],
[0x5D, "Polygon Conker", true, "Polygon"],
[0x5E, "Polygon Banjo & Kazooie", true, "Polygon"],
[0x5F, "Polygon Peach", true, "Polygon"],
[0x60, "Polygon Crash", true, "Polygon"],
]
function GetCharID(name) {
for character in Characters {
if(character[1] == name) {
return character[0]
}
}
}
// ID, Name
Stages = [
[0x00, "Peach's Castle"],
[0x01, "Sector Z"],
[0x02, "Congo Jungle"],
[0x03, "Planet Zebes"],
[0x04, "Hyrule Castle"],
[0x05, "Yoshi's Island"],
[0x06, "Dream Land"],
[0x07, "Saffron City"],
[0x08, "Mushroom Kingdom"],
[0x09, "Dream Land Beta 1"],
[0x0A, "Dream Land Beta 2"],
[0x0B, "How to Play"],
[0x0C, "Mini Yoshi's Island"],
[0x0D, "Meta Crystal"],
[0x0E, "Duel Zone"],
[0x0F, "Racing to the Normal Finish"],
[0x10, "Final Destination"],
[0x11, "Breaking the Targets of Mario and Metal Mario"],
[0x12, "Breaking the Targets of Fox and Peppy"],
[0x13, "Breaking the Targets of Donkey Kong and Lanky Kong"],
[0x14, "Breaking the Targets of Samus"],
[0x15, "Breaking the Targets of Luigi and Metal Luigi"],
[0x16, "Breaking the Targets of Link"],
[0x17, "Breaking the Targets of Yoshi"],
[0x18, "Breaking the Targets of Captain Falcon and Dragon King"],
[0x19, "Breaking the Targets of Kirby"],
[0x1A, "Breaking the Targets of Pikachu"],
[0x1B, "Breaking the Targets of Jigglypuff"],
[0x1C, "Breaking the Targets of Ness"],
[0x1D, "Boarding the Platforms of Mario and Metal Mario"],
[0x1E, "Boarding the Platforms of Fox and Peppy"],
[0x1F, "Boarding the Platforms of Donkey Kong and Lanky Kong"],
[0x20, "Boarding the Platforms of Samus"],
[0x21, "Boarding the Platforms of Luigi and Metal Luigi"],
[0x22, "Boarding the Platforms of Link"],
[0x23, "Boarding the Platforms of Yoshi"],
[0x24, "Boarding the Platforms of Captain Falcon and Dragon King"],
[0x25, "Boarding the Platforms of Kirby"],
[0x26, "Boarding the Platforms of Pikachu"],
[0x27, "Boarding the Platforms of Jigglypuff"],
[0x28, "Boarding the Platforms of Ness"],
[0x29, "Deku Tree"],
[0x2A, "First Destination"],
[0x2B, "Ganon's Tower"],
[0x2C, "Gym Leader Castle"],
[0x2D, "Pokemon Stadium"],
[0x2E, "Tal Tal Heights"],
[0x2F, "Glacial River"],
[0x30, "WarioWare, Inc."],
[0x31, "Battlefield"],
[0x32, "Flat Zone"],
[0x33, "Dr. Mario"],
[0x34, "Cool Cool Mountain"],
[0x35, "Dragon King"],
[0x36, "Great Bay"],
[0x37, "Fray's Stage"],
[0x38, "Tower of Heaven"],
[0x39, "Fountain of Dreams"],
[0x3A, "Muda Kingdom"],
[0x3B, "Mementos"],
[0x3C, "Showdown"],
[0x3D, "Spiral Mountain"],
[0x3E, "N64"],
[0x3F, "Mute City DL"],
[0x40, "Mad Monster Mansion"],
[0x41, "Mushroom Kingdom DL"],
[0x42, "Mushroom Kingdom Ω"],
[0x43, "Bowser's Stadium"],
[0x44, "Peach's Castle II"],
[0x45, "Delfino Plaza"],
[0x46, "Corneria"],
[0x47, "Kitchen Island"],
[0x48, "Big Blue"],
[0x49, "Onett"],
[0x4A, "Crateria"],
[0x4B, "Frosty Village"],
[0x4C, "Smashville"],
[0x4D, "Breaking the Targets of Dr. Mario and Dr. Luigi"],
[0x4E, "Breaking the Targets of Ganondorf"],
[0x4F, "Breaking the Targets of Young Link"],
[0x50, "Battlefield DL"],
[0x51, "Breaking the Targets of Dark Samus"],
[0x52, "Breaking the Targets of Polygon Team and Mad Piano"],
[0x53, "Breaking the Targets of Falco and Slippy"],
[0x54, "Breaking the Targets of Wario"],
[0x55, "Hyrule Temple"],
[0x56, "Breaking the Targets of Lucas"],
[0x57, "Boarding the Platforms of Ganondorf"],
[0x58, "New Pork City"],
[0x59, "Boarding the Platforms of Dark Samus"],
[0x5A, "Smashketball"],
[0x5B, "Boarding the Platforms of Dr. Mario and Dr. Luigi"],
[0x5C, "Norfair"],
[0x5D, "Raid Blue"],
[0x5E, "Congo Falls"],
[0x5F, "Pigmask Fortress"],
[0x60, "Yoshi's Story"],
[0x61, "World 1-1"],
[0x62, "Flat Zone II"],
[0x63, "Gerudo Valley"],
[0x64, "Boarding the Platforms of Young Link"],
[0x65, "Boarding the Platforms of Falco and Slippy"],
[0x66, "Boarding the Platforms of Polygon Team and Mad Piano"],
[0x67, "Hyrule Castle DL"],
[0x68, "Hyrule Castle Ω"],
[0x69, "Congo Jungle DL"],
[0x6A, "Congo Jungle Ω"],
[0x6B, "Peach's Castle DL"],
[0x6C, "Peach's Castle Ω"],
[0x6D, "Boarding the Platforms of Wario"],
[0x6E, "Fray's Stage - Night"],
[0x6F, "Goomba Road"],
[0x70, "Boarding the Platforms of Lucas"],
[0x71, "Sector Z DL"],
[0x72, "Saffron City DL"],
[0x73, "Yoshi's Island DL"],
[0x74, "Planet Zebes DL"],
[0x75, "Sector Z Ω"],
[0x76, "Saffron City Ω"],
[0x77, "Yoshi's Island Ω"],
[0x78, "Dream Land Ω"],
[0x79, "Planet Zebes Ω"],
[0x7A, "Breaking the Targets of Bowser and Giga Bowser"],
[0x7B, "Boarding the Platforms of Bowser and Giga Bowser"],
[0x7C, "Bowser's Keep"],
[0x7D, "Rith Essa"],
[0x7E, "Venom"],
[0x7F, "Breaking the Targets of Wolf"],
[0x80, "Boarding the Platforms of Wolf"],
[0x81, "Breaking the Targets of Conker"],
[0x82, "Boarding the Platforms of Conker"],
[0x83, "Windy"],
[0x84, "dataDyne Central"],
[0x85, "Planet Clancer"],
[0x86, "Jungle Japes"],
[0x87, "Breaking the Targets of Marth and Roy"],
[0x88, "Game Boy Land"],
[0x89, "Breaking the Targets of Mewtwo"],
[0x8A, "Boarding the Platforms of Marth and Roy"],
[0x8B, "All-Star Lobby"],
[0x8C, "Boarding the Platforms of Mewtwo"],
[0x8D, "Castle Siege"],
[0x8E, "Yoshi's Island II"],
[0x8F, "Final Destination DL"],
[0x90, "Final Tentination"],
[0x91, "Cool Cool Mountain SR"],
[0x92, "Duel Zone DL"],
[0x93, "Cool Cool Mountain DL"],
[0x94, "Meta Crystal DL"],
[0x95, "Dream Greens"],
[0x96, "Peach's Castle Beta"],
[0x97, "Hyrule Castle SR"],
[0x98, "Sector Z SR"],
[0x99, "Mute City"],
[0x9A, "Home-Run Contest"],
[0x9B, "Mushroom Kingdom SR"],
[0x9C, "Green Hill Zone"],
[0x9D, "Subcon"],
[0x9E, "Pirate Land"],
[0x9F, "Casino Night Zone"],
[0xA0, "Breaking the Targets of Sonic and Super Sonic"],
[0xA1, "Boarding the Platforms of Sonic and Super Sonic"],
[0xA2, "Metallic Madness"],
[0xA3, "Rainbow Road"],
[0xA4, "Pokemon Stadium 2"],
[0xA5, "Norfair Remix"],
[0xA6, "Toad's Turnpike"],
[0xA7, "Tal Tal Heights Remix"],
[0xA8, "Boarding the Platforms of Sheik"],
[0xA9, "Winter Dream Land"],
[0xAA, "Breaking the Targets of Sheik"],
[0xAB, "Glacial River Remix"],
[0xAC, "Breaking the Targets of Marina"],
[0xAD, "Dragon King Remix"],
[0xAE, "Boarding the Platforms of Marina"],
[0xAF, "Breaking the Targets of King Dedede"],
[0xB0, "Dracula's Castle"],
[0xB1, "Reverse Castle"],
[0xB2, "Boarding the Platforms of King Dedede"],
[0xB3, "Mt. Dedede"],
[0xB4, "Edo Town"],
[0xB5, "Deku Tree DL"],
[0xB6, "Crateria DL"],
[0xB7, "Breaking the Targets of Goemon and Ebisumaru"],
[0xB8, "First Destination Remix"],
[0xB9, "Boarding the Platforms of Goemon and Ebisumaru"],
[0xBA, "Twilight City"],
[0xBB, "Melrode"],
[0xBC, "Meta Crystent"],
[0xBD, "Racing to the Remix Finish"],
[0xBE, "Grim Reaper's Cavern"],
[0xBF, "Scuttle Town"],
[0xC0, "Big Boo's Haunt"],
[0xC1, "Dinosaur Land"],
[0xC2, "Breaking the Targets of Banjo & Kazooie"],
[0xC3, "Spawned Fear"],
[0xC4, "Smashville Remix"],
[0xC5, "Boarding the Platforms of Banjo & Kazooie"],
[0xC6, "Poke Floats"],
[0xC7, "Big Snowman"],
[0xC8, "Dream Land Beta DL"],
[0xC9, "LMAO Castle"],
[0xCA, "Discovery Falls"],
[0xCB, "Breaking the Targets of Crash"],
[0xCC, "Discovery Falls Remix"],
[0xCD, "N64 Remix"],
[0xCE, "Boarding the Platforms of Crash"],
[0xCF, "Breaking the Targets of Peach"],
[0xD0, "Breaking the Targets of Peach"],
[0xD1, "Smashketball 2"],
[0xD2, "Time Twister"],
[0xD3, "Time Twister"],
[0xD4, "N. Sanity Beach"],
[0xD5, "Snow Go"],
[0xD6, "Future Frenzy"],
]
function GetStageID(name) {
for stage in Stages {
if(stage[1] == name) {
return stage[0]
}
}
}
// ID, Character Ability, New Ability
KirbyAbility = [
[GetCharID("Mario"), "Mario", false],
[GetCharID("Fox"), "Fox", false],
[GetCharID("Donkey Kong"), "Donkey Kong", false],
[GetCharID("Samus"), "Samus", false],
[GetCharID("Luigi"), "Luigi", false],
[GetCharID("Link"), "Link", false],
[GetCharID("Yoshi"), "Yoshi", false],
[GetCharID("Captain Falcon"), "Captain Falcon", false],
[GetCharID("Pikachu"), "Pikachu", false],
[GetCharID("Jigglypuff"), "Jigglypuff", false],
[GetCharID("Ness"), "Ness", false],
[GetCharID("Falco"), "Falco", true],
[GetCharID("Ganondorf"), "Ganondorf", true],
[GetCharID("Young Link"), "Young Link", true],
[GetCharID("Dr. Mario"), "Dr. Mario", true],
[GetCharID("Wario"), "Wario", true],
[GetCharID("Bowser"), "Bowser", true],
[GetCharID("Wolf"), "Wolf", true],
[GetCharID("Conker"), "Conker", true],
[GetCharID("Mewtwo"), "Mewtwo", true],
[GetCharID("Marth"), "Marth", true],
[GetCharID("Sonic"), "Sonic", true],
[GetCharID("Sheik"), "Sheik", true],
[GetCharID("Marina"), "Marina", true],
[GetCharID("King Dedede"), "King Dedede", true],
[GetCharID("Goemon"), "Goemon", true],
[GetCharID("Banjo & Kazooie"), "Banjo & Kazooie", true],
[GetCharID("Crash"), "Crash", true],
[GetCharID("Peach"), "Peach", true],
[GetCharID("Dark Samus"), "Dark Samus", true],
[GetCharID("Lucas"), "Lucas", true],
[GetCharID("Peppy"), "Peppy", true],
[GetCharID("Slippy"), "Slippy", true],
[GetCharID("Roy"), "Roy", true],
[GetCharID("Dr. Luigi"), "Dr. Luigi", true],
[GetCharID("Lanky Kong"), "Lanky Kong", true],
[GetCharID("Dragon King"), "Dragon King", true],
[GetCharID("Ebisumaru"), "Ebisumaru", true],
[GetCharID("Mad Piano"), "Mad Piano", true],
[0x1C, "???", true],
]
// Stage ID, Bonus 1 Map, Bonus 2 Map, Stage Character 1, Stage Character 2
BonusStages = [
[1, 0x11, 0x1D, "Mario", "Metal Mario"],
[2, 0x12, 0x1E, "Fox", "Peppy"],
[3, 0x13, 0x1F, "Donkey Kong", "Lanky Kong"],
[4, 0x14, 0x20, "Samus", ""],
[5, 0x15, 0x21, "Luigi", "Metal Luigi"],
[6, 0x16, 0x22, "Link", ""],
[7, 0x17, 0x23, "Yoshi", ""],
[8, 0x18, 0x24, "Captain Falcon", "Dragon King"],
[9, 0x19, 0x25, "Kirby", ""],
[10, 0x1A, 0x26, "Pikachu", ""],
[11, 0x1B, 0x27, "Jigglypuff", ""],
[12, 0x1C, 0x28, "Ness", ""],
[13, 0x4D, 0x5B, "Dr. Mario", "Dr. Luigi"],
[14, 0x4E, 0x57, "Ganondorf", ""],
[15, 0x4F, 0x64, "Young Link", ""],
[16, 0x51, 0x59, "Dark Samus", ""],
[17, 0x52, 0x66, "Polygon Team", "Mad Piano"],
[18, 0x53, 0x65, "Falco", "Slippy"],
[19, 0x54, 0x6D, "Wario", ""],
[20, 0x56, 0x70, "Lucas", ""],
[21, 0x7A, 0x7B, "Bowser", "Giga Bowser"],
[22, 0x7F, 0x80, "Wolf", ""],
[23, 0x81, 0x82, "Conker", ""],
[24, 0x87, 0x8A, "Marth", "Roy"],
[25, 0x89, 0x8C, "Mewtwo", ""],
[26, 0xA0, 0xA1, "Sonic", "Super Sonic"],
[27, 0xAA, 0xA8, "Sheik", ""],
[28, 0xAC, 0xAE, "Marina", ""],
[29, 0xAF, 0xB2, "King Dedede", ""],
[30, 0xB7, 0xB9, "Goemon", "Ebisumaru"],
[31, 0xC2, 0xC5, "Banjo & Kazooie", ""],
[32, 0xCB, 0xCE, "Crash", ""],
[33, 0xCF, 0xD0, "Peach", ""],
]
// Track ID, Track Name
MusicTracks = [
[0x16F, "Crash Bash Loading Screen"]
]
function GetTrackID(name) {
for track in MusicTracks {
if(track[1] == name) {
return track[0]
}
}
}
// ----------------------------------------------------------------------------------------------------
// 1P Game, Remix Mode, All-Star Mode
function NormalModeStocks() => byte(Mem_NormalModeData)
// 1P Game / Remix Mode - Start Stocks [8bit]
// --- 00 | 1 Stock
// --- 01 | 2 Stocks
// --- 02 | 3 Stocks
// --- 03 | 4 Stocks
// --- 04 | 5 Stocks
function NormalModeDifficulty() => byte(Mem_NormalModeData + 1)
// 1P Game / Remix Mode - Difficulty [8bit]
// --- 00 | Very Easy
// --- 01 | Easy
// --- 02 | Normal
// --- 03 | Hard
// --- 04 | Very Hard
function NormalModeProgress() => byte(Mem_NormalModeData + 428)
// 1P Game / Remix Mode - Progress [8bit]
function NormalModeChar1() => byte(Mem_NormalModeData + 431)
// 1P Game / Remix Mode - Character ID [8bit]
function NormalModeChar1Stocks() => byte(Mem_NormalModeData + 520)
// 1P Game / Remix Mode - Player 1 - Stocks in Reserve [8bit]
function NormalModeChar1Percentage() => word(Mem_NormalModeData + 588)
// 1P Game / Remix Mode - Player 1 - Percentage [16bit]
function NormalModeScore() => dword(Mem_NormalModeData + 440)
// 1P Game / Remix 1P / All-Star Mode - Total Score [32bit]
function NormalModeStage() => byte(Mem_NormalModeData + 482)
// 1P Game / Remix Mode / Bonus 3 - Stage ID [8bit]
// ----------------------------------------------------------------------------------------------------
// Free-for-all
function FreeModeStage() => byte(Mem_FreeModeData - 0x04)
// Free-for-all - Stage ID [8bit]
function FreeModeNumFighters() => byte(Mem_FreeModeData)
// Free-for-all - Number of Fighters in Battle [8bit]
function FreeModeTimer() => dword(Mem_FreeModeData + 14)
// Free-for-all - Battle Timer [32bit]
function FreeModeChar1() => byte(Mem_FreeModeData + 26)
// Free-for-all - Player 1 - Character ID [8bit]
function FreeModeChar1CPU() => byte(Mem_FreeModeData + 29)
// Free-for-all - Player 1 - CPU Level [8bit]
function FreeModeChar1Stocks() => byte(Mem_FreeModeData + 34)
// Free-for-all - Player 1 - Stocks in Reserve [8bit]
function FreeModeChar1Control() => byte(Mem_FreeModeData + 35)
// Free-for-all - Player 1 - Player controlling [8bit]
// --- 0 | Player 1
// --- 1 | Player 2
// --- 2 | Player 3
// --- 3 | Player 4
// --- 4 | COM
function FreeModeChar2() => byte(Mem_FreeModeData + 142)
// Free-for-all - Player 2 - Character ID [8bit]
function FreeModeChar2CPU() => byte(Mem_FreeModeData + 145)
// Free-for-all - Player 2 - CPU Level [8bit]
function FreeModeChar2Stocks() => byte(Mem_FreeModeData + 150)
// Free-for-all - Player 2 - Stocks in Reserve [8bit]
function FreeModeChar2Control() => byte(Mem_FreeModeData +151)
// Free-for-all - Player 2 - Player controlling [8bit]
// --- 0 | Player 1
// --- 1 | Player 2
// --- 2 | Player 3
// --- 3 | Player 4
// --- 4 | COM
function FreeModeChar3() => byte(Mem_FreeModeData + 258)
// Free-for-all - Player 3 - Character ID [8bit]
function FreeModeChar3CPU() => byte(Mem_FreeModeData + 261)
// Free-for-all - Player 3 - CPU Level [8bit]
function FreeModeChar3Stocks() => byte(Mem_FreeModeData + 266)
// Free-for-all - Player 3 - Stocks in Reserve [8bit]
function FreeModeChar3Control() => byte(Mem_FreeModeData +267)
// Free-for-all - Player 3 - Player controlling [8bit]
// --- 0 | Player 1
// --- 1 | Player 2
// --- 2 | Player 3
// --- 3 | Player 4
// --- 4 | COM
function FreeModeChar4() => byte(Mem_FreeModeData + 374)
// Free-for-all - Player 4 - Character ID [8bit]
function FreeModeChar4CPU() => byte(Mem_FreeModeData + 377)
// Free-for-all - Player 4 - CPU Level [8bit]
function FreeModeChar4Stocks() => byte(Mem_FreeModeData + 382)
// Free-for-all - Player 4 - Stocks in Reserve [8bit]
function FreeModeChar4Control() => byte(Mem_FreeModeData +383)
// Free-for-all - Player 4 - Player controlling [8bit]
// --- 0 | Player 1
// --- 1 | Player 2
// --- 2 | Player 3
// --- 3 | Player 4
// --- 4 | COM
function FreeModeCombo(char, enemy) {
address = dword(Mem_FreeModeComboData + ((char - 1)*0x38 + ((enemy - 1)*0x04)))
return byte(Mem_FreeModeData + 35 + ((char - 1)*0x74)) != 0x04 &&
byte(Mem_FreeModeData + 35 + ((enemy - 1)*0x74)) == 0x04 &&
address >= 15 &&
address <= 17 &&
prev(address) >= 12 &&
prev(address) <= 14
}
// ----------------------------------------------------------------------------------------------------
// Bonus 1, Bonus 2, Bonus 3
function Bonus1RecordsOldChars(id) => byte(Mem_NormalModeData + 4 + 23 + id*32)
// Records - Bonus 1 / Bonus 2 - Original Characters [384 Bytes; 32 Bytes per Character ID]
// --- +16 | Bonus 1 - Record Time [32bit]
// --- +23 | Bonus 1 - Targets Record [8bit]
// --- +24 | Bonus 2 - Record Time [32bit]
// --- +31 | Bonus 2 - Platform Record [8bit]
function Bonus1RecordsNewChars(id) => byte(Mem_Bonus12RecordData + 23 + (id - GetCharID("Master Hand"))*32)
function Bonus1Records() {
totalSum = []
for character in Characters {
if(character[0] != GetCharID("Master Hand") && character[1] != "") {
if(character[2] == false) {
array_push(totalSum, Bonus1RecordsOldChars(character[0]))
}
if(character[2] == true) {
array_push(totalSum, Bonus1RecordsNewChars(character[0]))
}
}
}
total = length(totalSum)
mems = sum_of(totalSum, sum => sum/10)
deltas = sum_of(totalSum, sum => prev(sum)/10)
return measured(mems == total) && deltas == (total - 1)
}
function Bonus2RecordsOldChars(id) => byte(Mem_NormalModeData + 4 + 31 + id*32)
function Bonus2RecordsNewChars(id) => byte(Mem_Bonus12RecordData + 31 + (id - GetCharID("Master Hand"))*32)
function Bonus2Records() {
totalSum = []
for character in Characters {
if(character[0] != GetCharID("Master Hand") && character[1] != "") {
if(character[2] == false) {
array_push(totalSum, Bonus2RecordsOldChars(character[0]))
}
if(character[2] == true) {
array_push(totalSum, Bonus2RecordsNewChars(character[0]))
}
}
}
total = length(totalSum)
mems = sum_of(totalSum, sum => sum/10)
deltas = sum_of(totalSum, sum => prev(sum)/10)
return measured(mems == total) && deltas == (total - 1)
}
function Bonus1Targets() => byte(Mem_Bonus12Data)
// Bonus 1 - Targets left [8bit]
function Bonus2Platforms() => byte(Mem_Bonus12Data + 4)
// Bonus 2 - Platforms left [8bit]
function Bonus3State() => byte(Mem_NormalModeData + 498)
// Bonus 3 - Game State [8bit]
// --- 00 | Not started
// --- 01 | In Race
// --- 05 | Finished
// --- 06 | Finished 2
// --- 07 | Left
function Bonus12Char() => byte(0x18F1D0)
// Bonus 1 / Bonus 2 - Player 1 - Character ID [8bit]
function Bonus12Stage() => byte(0x18F1B2)
// Bonus 1 / Bonus 2 - Stage ID [8bit]
function Bonus12State() => byte(0x18F1C2)
// Bonus 1 / Bonus 2 - State ID [8bit]
function Bonus12Timer() => dword(0x18F1C8)
// Bonus 1 / Bonus 2 - Timer [32bit]
function Bonus3Timer() => dword(Mem_NormalModeData + 504)
// Bonus 3 - Timer [32bit]
// ----------------------------------------------------------------------------------------------------
// Training Mode
function TrainingModeStage() => byte(Mem_GameState + 9)
// Training Mode - Stage ID [8bit]
function TrainingModeChar1() => byte(Mem_GameState + 53)
// Training Mode - Player 1 - Character ID [8bit]
function TrainingModeChar2() => byte(Mem_GameState + 59)
// Training Mode - Player 2 - Character ID [8bit]
function TrainingSelectChar1() => byte(Mem_TrainingSelectData)
// Training Mode - Character Select - Player 1 - Character ID [8bit]
function TrainingSelectChar1Confirm() => byte(Mem_TrainingSelectData + 12)
// Training Mode - Character Select - Player 1 - Character confirmed [8bit]
function TrainingSelectChar2() => byte(Mem_TrainingSelectData + 184)
// Training Mode - Character Select - Player 2 - Character ID [8bit]
function TrainingSelectChar2Confirm() => byte(Mem_TrainingSelectData + 196)
// Training Mode - Character Select - Player 2 - Character confirmed [8bit]
function HomerunChar() => byte(Mem_NormalModeData + 512)
// 1P Game / Remix Mode / Home-Run Contest - Player 1 - Character ID [8bit]
// ----------------------------------------------------------------------------------------------------
// Misc.
function GameState() => byte(Mem_GameState)
// Current Game State [8bit]
// --- 01 | Titlescreen / In Battle
// --- 03 | Debug Menu
// --- 07 | Mode Select
// --- 08 | 1P Game Mode - Menu
// --- 09 | VS Game Mode - Menu
// --- 0E | VS Screen (1P Game/Smash Remix)
// --- 10 | Free-for-all - Character Select
// --- 11 | 1 Player Game / Remix 1P / All-Star Mode - Character Select
// --- 12 | Training Mode - Character Select
// --- 13 | Bonus 1 - Character Select
// --- 14 | Bonus 2 / Bonus 3 / Multi-Man Mode / Cruel Multi-Man Mode / Home-Run Contest - Character Select
// --- 19 | VS Record
// --- 1B | N64 Logo
// --- 1C | Intro
// --- 37 | Smash Remix Disclaimer
// --- 38 | Credits
// --- 39 | Option / Settings
// --- 3A | Data
// --- 3B | Sound Test
// --- 3C | How to Play
// --- 3D | Battle Demo
function PreGameState() => byte(Mem_GameState - 1)
// Previous Game State [8bit]
function BothGameStates() => word(Mem_GameState -1)
// Previous Game State [8bit] + Current Game State [8bit]
function GameMode() => bit0(Mem_GameState + 565)
// Game Mode [8bit]
// --- Bit0 | Data
// ------ 0 | Free-for-all
// ------ 1 | 12-Character Battle
function PointerPlayerData() => tbyte(Mem_PointerPlayerData)
// Pointer - Player Data [24bit]
// +0x08 | Player 1 - Character ID [8bit]
// +0x10 | Player 1 - CPU Level [8bit]
// +0x20 | Player 1 - CPU controls [8bit]
// +0x24 | Player 1 - Animation ID [16bit]
// +0x2C | Player 1 - Percentage [8bit]
// +0x86C | Player 1 - Wario's Idle Animation [32bit]
// +0xADC | Player 1 - Kirby's Ability [8bit]
// +0xB58 | Player 2 - Character ID [8bit]
// +0xB60 | Player 2 - CPU Level [8bit]
// +0xB70 | Player 2 - CPU controls [8bit]
// +0xB74 | Player 2 - Animation ID [16bit]
// +0xB7C | Player 2 - Percentage [8bit]
// +0x13BC | Player 2 - Wario's Idle Animation [32bit]
// +0x162C | Player 2 - Kirby's Ability [8bit]
// +0x16A8 | Player 3 - Character ID [8bit]
// +0x16B0 | Player 3 - CPU Level [8bit]
// +0x16C0 | Player 3 - CPU controls [8bit]
// +0x16C4 | Player 3 - Animation ID [16bit]
// +0x16CC | Player 3 - Percentage [8bit]
// +0x1F0C | Player 3 - Wario's Idle Animation [32bit]
// +0x217C | Player 3 - Kirby's Ability [8bit]
// +0x21F8 | Player 4 - Character ID [8bit]
// +0x2200 | Player 4 - CPU Level [8bit]
// +0x2210 | Player 4 - CPU controls [8bit]
// +0x2214 | Player 4 - Animation ID [16bit]
// +0x221C | Player 4 - Percentage [8bit]
// +0x2A5C | Player 4 - Wario's Idle Animation [32bit]
// +0x2CCC | Player 4 - Kirby's Ability [8bit]
function PointerChar1() => byte(PointerPlayerData() + 0x08)
// Player 1 - Character ID [8bit] from Player Data Pointer
function PointerChar1Ani() => word(PointerPlayerData() + 0x24)
// Player 1 - Animation ID [16bit] from Player Data Pointer
function PointerChar1Wario() => dword(PointerPlayerData() + 0x86C)
// Player 1 - Wario's Idle Animation [32bit] from Player Data Pointer
function PointerChar1Kirby() => byte(PointerPlayerData() + 0xADC)
// Player 1 - Kirby's Ability [8bit] from Player Data Pointer
function PointerChar2() => byte(PointerPlayerData() + 0xB58)
// Player 2 - Character ID [8bit] from Player Data Pointer
function PointerChar2Ani() => word(PointerPlayerData() + 0xB74)
// Player 2 - Animation ID [16bit] from Player Data Pointer
function PointerChar2Wario() => dword(PointerPlayerData() + 0x13BC)
// Player 2 - Wario's Idle Animation [32bit] from Player Data Pointer
function PointerChar2Kirby() => byte(PointerPlayerData() + 0x162C)
// Player 2 - Kirby's Ability [8bit] from Player Data Pointer
function PointerChar3() => byte(PointerPlayerData() + 0x16A8)
// Player 3 - Character ID [8bit] from Player Data Pointer
function PointerChar3Ani() => word(PointerPlayerData() + 0x16C4)
// Player 3 - Animation ID [16bit] from Player Data Pointer
function PointerChar3Wario() => dword(PointerPlayerData() + 0x1F0C)
// Player 3 - Wario's Idle Animation [32bit] from Player Data Pointer
function PointerChar3Kirby() => byte(PointerPlayerData() + 0x217C)
// Player 3 - Kirby's Ability [8bit] from Player Data Pointer
function PointerChar4() => byte(PointerPlayerData() + 0x21F8)
// Player 4 - Character ID [8bit] from Player Data Pointer
function PointerChar4Ani() => word(PointerPlayerData() + 0x2214)
// Player 4 - Animation ID [16bit] from Player Data Pointer
function PointerChar4Wario() => dword(PointerPlayerData() + 0x2A5C)
// Player 4 - Wario's Idle Animation [32bit] from Player Data Pointer
function PointerChar4Kirby() => byte(PointerPlayerData() + 0x2CCC)
// Player 4 - Kirby's Ability [8bit] from Player Data Pointer
// ----------------------------------------------------------------------------------------------------
// Logic Functions
function Beat1PNormal() {
return never(NormalModeDifficulty() < 2) &&
never(NormalModeDifficulty() > 4) &&
never(BothGameStates() == 0x1B1B) &&
never(BothGameStates() == 0x1B34) &&
never(BothGameStates() == 0x0834) &&
once(GameState() == 0x0E &&
NormalModeProgress() == 0) &&
trigger_when(prev(NormalModeProgress()) == 0x0D
&& NormalModeProgress() == 0x0E) &&
never(byte(Mem_GameMode) != 0x00) &&
never(dword(Mem_HighscoreOn) == 0x00)
}
function Beat1PNormalNoContinues() {
return Beat1PNormal() &&
never(NormalModeChar1Stocks() == 0xFF)
}
function BeatRemix1PNormal() {
return never(NormalModeDifficulty() < 2) &&
never(NormalModeDifficulty() > 4) &&
never(BothGameStates() == 0x1B1B) &&
never(BothGameStates() == 0x1B34) &&
never(BothGameStates() == 0x0834) &&
once(GameState() == 0x0E &&
NormalModeProgress() == 0) &&
trigger_when(prev(NormalModeProgress()) == 0x0D
&& NormalModeProgress() == 0x0E) &&
never(byte(Mem_GameMode) != 0x04) &&
never(dword(Mem_HighscoreOn) == 0x00)
}
function BeatRemix1PVeryHard() {
return never(NormalModeDifficulty() != 4) &&
BeatRemix1PNormal()
}
function BeatRemix1PVeryHard3Stocks() {
return BeatRemix1PVeryHard() &&
never(NormalModeStocks() > 2) &&
never(dword(Mem_HighscoreOn) == 0x00)
}
function BeatAllstarsNormal() {
return never(NormalModeDifficulty() < 2) &&
never(NormalModeDifficulty() > 4) &&
never(BothGameStates() == 0x1B1B) &&
never(BothGameStates() == 0x1B34) &&
never(BothGameStates() == 0x0834) &&
once(NormalModeStage() == 0x8B &&
byte(Mem_GameMode + 20) == 0 &&
BothGameStates() == 0x770E) &&
trigger_when(prev(GameState()) >= 0x33 &&
prev(GameState()) <= 0x34 &&
GameState() == 0x30) &&
never(byte(Mem_GameMode) != 0x05) &&
never(dword(Mem_HighscoreOn) == 0x00)
}
function BeatAllstarsVeryHard() {
return never(NormalModeDifficulty() != 4) &&
BeatAllstarsNormal()
}
function BeatAllstarsVeryHard3Stocks() {
return BeatAllstarsVeryHard() &&
never(NormalModeStocks() > 2) &&
never(dword(Mem_HighscoreOn) == 0x00)
}
function Beat12CharacterBattle() {
player12Chars = []
com12Chars = []
i = 0
for index in range(1, 23) {
array_push(player12Chars, bit7(Mem_12CharacterStocks + 0x05 + i*8))
array_push(com12Chars, bit7(Mem_12CharacterStocks +0xD9 + i*8))
i = i + 1
}
player12Loses = sum_of(player12Chars, p => p)
com12LosesM = sum_of(com12Chars, m => m)
com12LosesD = sum_of(com12Chars, d => prev(d))
return never(byte(Mem_VSMode) != 1) &&
never(prev(byte(Mem_GameState) == 0x15) &&
byte(Mem_GameState) == 0x16 &&
FreeModeChar1Control() == 4) &&
never(prev(byte(Mem_GameState) == 0x15) &&
byte(Mem_GameState) == 0x16 &&
FreeModeChar2Control() != 4) &&
never(prev(byte(Mem_GameState) == 0x15) &&
byte(Mem_GameState) == 0x16 &&
FreeModeChar2CPU() < 5) &&
never(BothGameStates() == 0x1B1B) &&
never(GameState() == 0x09) &&
never(player12Loses == 12) &&
trigger_when(com12LosesM == 12) &&
trigger_when(com12LosesD == 11) &&
ResetCheating(0) &&
ResetCheating(1)
}
function Beat12CharacterBattleCPU5() {
return once(FreeModeChar2CPU() >= 0x05 &&
prev(byte(Mem_12CharacterStocks + 0x07) == 0x1C) &&
byte(Mem_12CharacterStocks + 0x07) != 0x1C &&
prev(byte(Mem_12CharacterStocks + 0xDB) == 0x1C) &&
byte(Mem_12CharacterStocks + 0xDB) != 0x1C) &&
Beat12CharacterBattle() &&
never(prev(byte(Mem_GameState) == 0x15) &&
byte(Mem_GameState) == 0x16 &&
FreeModeChar2CPU() < 5)
}
function Beat12CharacterBattleCPU9() {
return once(FreeModeChar2CPU() >= 0x09 &&
prev(byte(Mem_12CharacterStocks + 0x07) == 0x1C) &&
byte(Mem_12CharacterStocks + 0x07) != 0x1C &&
prev(byte(Mem_12CharacterStocks + 0xDB) == 0x1C) &&
byte(Mem_12CharacterStocks + 0xDB) != 0x1C) &&
Beat12CharacterBattle() &&
never(prev(byte(Mem_GameState) == 0x15) &&
byte(Mem_GameState) == 0x16 &&
FreeModeChar2CPU() < 9)
}
function Beat1COM(stage, char1, char2, slot) {
player1IDs = []
player2IDs = []
control = [0, 0]
control[slot] = 1