summaryrefslogtreecommitdiff
path: root/data/scripts/maps/LilycoveCity_ContestLobby.inc
blob: beb96e171cc07234e06bb0f695f4432d21bba035 (plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
LilycoveCity_ContestLobby_MapScripts:: @ 821A211
	map_script 3, LilycoveCity_ContestLobby_MapScript1_21A21C
	map_script 2, LilycoveCity_ContestLobby_MapScript2_21A243
	.byte 0

LilycoveCity_ContestLobby_MapScript1_21A21C: @ 821A21C
	call LilycoveCity_ContestLobby_EventScript_28CB2B
	call LilycoveCity_ContestLobby_EventScript_21A227
	end

LilycoveCity_ContestLobby_EventScript_21A227:: @ 821A227
	getpricereduction 4
	compare VAR_RESULT, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21A23C
	clearflag FLAG_0x369
	setflag FLAG_0x340
	return

LilycoveCity_ContestLobby_EventScript_21A23C:: @ 821A23C
	setflag FLAG_0x369
	clearflag FLAG_0x340
	return

LilycoveCity_ContestLobby_MapScript2_21A243: @ 821A243
	map_script_2 VAR_0x4099, 1, LilycoveCity_ContestLobby_EventScript_21A255
	map_script_2 VAR_0x4099, 2, LilycoveCity_ContestLobby_EventScript_21A427
	.2byte 0

LilycoveCity_ContestLobby_EventScript_21A255:: @ 821A255
	checkflag FLAG_0x307
	goto_eq LilycoveCity_ContestLobby_EventScript_21A264
	setvar VAR_0x4099, 0
	end

LilycoveCity_ContestLobby_EventScript_21A264:: @ 821A264
	lockall
	addobject 4
	applymovement 4, LilycoveCity_ContestLobby_Movement_21A407
	waitmovement 4
	applymovement 255, LilycoveCity_ContestLobby_Movement_21A418
	waitmovement 0
	msgbox LilycoveCity_ContestLobby_Text_21ADB9, 4
	lockall
	fadescreen 1
	drawcontestwinner 0
	lockall
	msgbox LilycoveCity_ContestLobby_Text_21AE78, 5
	compare VAR_RESULT, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21A2AA
	compare VAR_RESULT, 0
	goto_eq LilycoveCity_ContestLobby_EventScript_21A2E4
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A2AA:: @ 821A2AA
	msgbox LilycoveCity_ContestLobby_Text_21AF63, 4
	closemessage
	special sub_80F88DC
	setvar VAR_0x4099, 0
	specialvar VAR_RESULT, sub_80F8C7C
	compare VAR_RESULT, 1
	call_if 1, LilycoveCity_ContestLobby_EventScript_21A314
	applymovement 4, LilycoveCity_ContestLobby_Movement_21A40F
	waitmovement 0
	removeobject 4
	call LilycoveCity_ContestLobby_EventScript_21A360
	call LilycoveCity_ContestLobby_EventScript_21A3B6
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A2E4:: @ 821A2E4
	msgbox LilycoveCity_ContestLobby_Text_21B0BC, 5
	compare VAR_RESULT, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21A2AA
	msgbox LilycoveCity_ContestLobby_Text_21B132, 4
	closemessage
	applymovement 4, LilycoveCity_ContestLobby_Movement_21A40F
	waitmovement 0
	setvar VAR_0x4099, 0
	removeobject 4
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A314:: @ 821A314
	incrementgamestat 42
	special sub_80F8390
	applymovement 4, LilycoveCity_ContestLobby_Movement_21A41A
	waitmovement 0
	playse SE_PIN
	applymovement 4, LilycoveCity_ContestLobby_Movement_272598
	waitmovement 0
	applymovement 4, LilycoveCity_ContestLobby_Movement_21A41E
	waitmovement 0
	msgbox LilycoveCity_ContestLobby_Text_21B030, 4
	playfanfare MUS_FANFA4
	msgbox LilycoveCity_ContestLobby_Text_21B07E, 4
	waitfanfare
	msgbox LilycoveCity_ContestLobby_Text_21B094, 4
	msgbox LilycoveCity_ContestLobby_Text_21B0AD, 4
	closemessage
	return

LilycoveCity_ContestLobby_EventScript_21A360:: @ 821A360
	specialvar VAR_0x8004, sub_80F8940
	switch VAR_0x8004
	case 1, LilycoveCity_ContestLobby_EventScript_21A3A2
	case 2, LilycoveCity_ContestLobby_EventScript_21A3A6
	case 3, LilycoveCity_ContestLobby_EventScript_21A3AA
	case 4, LilycoveCity_ContestLobby_EventScript_21A3AE
	case 5, LilycoveCity_ContestLobby_EventScript_21A3B2
	return

LilycoveCity_ContestLobby_EventScript_21A3A2:: @ 821A3A2
	clearflag FLAG_0x308
	return

LilycoveCity_ContestLobby_EventScript_21A3A6:: @ 821A3A6
	clearflag FLAG_0x309
	return

LilycoveCity_ContestLobby_EventScript_21A3AA:: @ 821A3AA
	clearflag FLAG_0x30A
	return

LilycoveCity_ContestLobby_EventScript_21A3AE:: @ 821A3AE
	clearflag FLAG_0x30B
	return

LilycoveCity_ContestLobby_EventScript_21A3B2:: @ 821A3B2
	clearflag FLAG_0x30C
	return

LilycoveCity_ContestLobby_EventScript_21A3B6:: @ 821A3B6
	switch VAR_CONTEST_CATEGORY
	case 0, LilycoveCity_ContestLobby_EventScript_21A3F3
	case 1, LilycoveCity_ContestLobby_EventScript_21A3F7
	case 2, LilycoveCity_ContestLobby_EventScript_21A3FB
	case 3, LilycoveCity_ContestLobby_EventScript_21A3FF
	case 4, LilycoveCity_ContestLobby_EventScript_21A403
	return

LilycoveCity_ContestLobby_EventScript_21A3F3:: @ 821A3F3
	setflag FLAG_0x0A0
	return

LilycoveCity_ContestLobby_EventScript_21A3F7:: @ 821A3F7
	setflag FLAG_0x0A1
	return

LilycoveCity_ContestLobby_EventScript_21A3FB:: @ 821A3FB
	setflag FLAG_0x0A2
	return

LilycoveCity_ContestLobby_EventScript_21A3FF:: @ 821A3FF
	setflag FLAG_0x0A3
	return

LilycoveCity_ContestLobby_EventScript_21A403:: @ 821A403
	setflag FLAG_0x0A4
	return

LilycoveCity_ContestLobby_Movement_21A407: @ 821A407
	step_down
	step_down
	step_down
	step_right
	step_right
	step_right
	step_right
	step_end

LilycoveCity_ContestLobby_Movement_21A40F: @ 821A40F
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

LilycoveCity_ContestLobby_Movement_21A418: @ 821A418
	step_27
	step_end

LilycoveCity_ContestLobby_Movement_21A41A: @ 821A41A
	step_down
	step_down
	step_down
	step_end

LilycoveCity_ContestLobby_Movement_21A41E: @ 821A41E
	step_14
	step_14
	step_14
	step_14
	step_16
	step_16
	step_16
	step_28
	step_end

LilycoveCity_ContestLobby_EventScript_21A427:: @ 821A427
	checkflag FLAG_0x307
	goto_eq LilycoveCity_ContestLobby_EventScript_21A436
	setvar VAR_0x4099, 0
	end

LilycoveCity_ContestLobby_EventScript_21A436:: @ 821A436
	lockall
	addobject 11
	applymovement 11, LilycoveCity_ContestLobby_Movement_21A533
	waitmovement 11
	applymovement 255, LilycoveCity_ContestLobby_Movement_21A545
	waitmovement 0
	msgbox LilycoveCity_ContestLobby_Text_21ADB9, 4
	lockall
	fadescreen 1
	drawcontestwinner 0
	msgbox LilycoveCity_ContestLobby_Text_21AE78, 5
	compare VAR_RESULT, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21A47A
	compare VAR_RESULT, 0
	goto_eq LilycoveCity_ContestLobby_EventScript_21A4B4
	end

LilycoveCity_ContestLobby_EventScript_21A47A:: @ 821A47A
	msgbox LilycoveCity_ContestLobby_Text_21AF63, 4
	closemessage
	special sub_80F88DC
	setvar VAR_0x4099, 0
	specialvar VAR_RESULT, sub_80F8C7C
	compare VAR_RESULT, 1
	call_if 1, LilycoveCity_ContestLobby_EventScript_21A4E4
	applymovement 11, LilycoveCity_ContestLobby_Movement_21A53C
	waitmovement 0
	removeobject 11
	call LilycoveCity_ContestLobby_EventScript_21A360
	call LilycoveCity_ContestLobby_EventScript_21A3B6
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A4B4:: @ 821A4B4
	msgbox LilycoveCity_ContestLobby_Text_21B0BC, 5
	compare VAR_RESULT, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21A47A
	msgbox LilycoveCity_ContestLobby_Text_21B132, 4
	closemessage
	applymovement 11, LilycoveCity_ContestLobby_Movement_21A53C
	waitmovement 0
	setvar VAR_0x4099, 0
	removeobject 11
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A4E4:: @ 821A4E4
	incrementgamestat 42
	setflag FLAG_SYS_RIBBON_GET
	special sub_80F8390
	applymovement 11, LilycoveCity_ContestLobby_Movement_21A547
	waitmovement 0
	playse SE_PIN
	applymovement 11, LilycoveCity_ContestLobby_Movement_272598
	waitmovement 0
	applymovement 11, LilycoveCity_ContestLobby_Movement_21A54B
	waitmovement 0
	msgbox LilycoveCity_ContestLobby_Text_21B030, 4
	playfanfare MUS_FANFA4
	msgbox LilycoveCity_ContestLobby_Text_21B07E, 4
	waitfanfare
	msgbox LilycoveCity_ContestLobby_Text_21B094, 4
	msgbox LilycoveCity_ContestLobby_Text_21B0AD, 4
	closemessage
	return

LilycoveCity_ContestLobby_Movement_21A533: @ 821A533
	step_down
	step_down
	step_down
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end

LilycoveCity_ContestLobby_Movement_21A53C: @ 821A53C
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

LilycoveCity_ContestLobby_Movement_21A545: @ 821A545
	step_28
	step_end

LilycoveCity_ContestLobby_Movement_21A547: @ 821A547
	step_down
	step_down
	step_down
	step_end

LilycoveCity_ContestLobby_Movement_21A54B: @ 821A54B
	step_14
	step_14
	step_14
	step_14
	step_16
	step_16
	step_16
	step_27
	step_end

LilycoveCity_ContestLobby_EventScript_21A554:: @ 821A554
	special sub_80F9154
	specialvar VAR_RESULT, sub_80F8D24
	compare VAR_RESULT, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21A5CF
	call LilycoveCity_ContestLobby_EventScript_279CC5
	call LilycoveCity_ContestLobby_EventScript_21A670
	special sub_80F87D8
	call LilycoveCity_ContestLobby_EventScript_23BEB6
	call LilycoveCity_ContestLobby_EventScript_21A585
	call LilycoveCity_ContestLobby_EventScript_21A5EF
	waitstate
	end

LilycoveCity_ContestLobby_EventScript_21A585:: @ 821A585
	switch VAR_CONTEST_RANK
	case 0, LilycoveCity_ContestLobby_EventScript_21A5B7
	case 1, LilycoveCity_ContestLobby_EventScript_21A5BD
	case 2, LilycoveCity_ContestLobby_EventScript_21A5C3
	case 3, LilycoveCity_ContestLobby_EventScript_21A5C9
	return

LilycoveCity_ContestLobby_EventScript_21A5B7:: @ 821A5B7
	setvar VAR_0x4088, 1
	return

LilycoveCity_ContestLobby_EventScript_21A5BD:: @ 821A5BD
	setvar VAR_0x4088, 2
	return

LilycoveCity_ContestLobby_EventScript_21A5C3:: @ 821A5C3
	setvar VAR_0x4088, 3
	return

LilycoveCity_ContestLobby_EventScript_21A5C9:: @ 821A5C9
	setvar VAR_0x4088, 4
	return

LilycoveCity_ContestLobby_EventScript_21A5CF:: @ 821A5CF
	setflag FLAG_0x307
	copyvar VAR_0x4094, 0x1
	giveitem ITEM_CONTEST_PASS, 1
	setvar VAR_0x800B, 8
	setvar VAR_CONTEST_RANK, 3
	setvar VAR_0x4099, 1
	setflag FLAG_SYS_RIBBON_GET
	end

LilycoveCity_ContestLobby_EventScript_21A5EF:: @ 821A5EF
	setflag FLAG_0x155
	switch VAR_CONTEST_CATEGORY
	case 0, LilycoveCity_ContestLobby_EventScript_21A62F
	case 1, LilycoveCity_ContestLobby_EventScript_21A63C
	case 2, LilycoveCity_ContestLobby_EventScript_21A649
	case 3, LilycoveCity_ContestLobby_EventScript_21A656
	case 4, LilycoveCity_ContestLobby_EventScript_21A663
	return

LilycoveCity_ContestLobby_EventScript_21A62F:: @ 821A62F
	setwarp LINK_CONTEST_ROOM_4, 255, 7, 5
	special sub_80AFC60
	waitstate
	return

LilycoveCity_ContestLobby_EventScript_21A63C:: @ 821A63C
	setwarp LINK_CONTEST_ROOM_2, 255, 7, 5
	special sub_80AFC60
	waitstate
	return

LilycoveCity_ContestLobby_EventScript_21A649:: @ 821A649
	setwarp LINK_CONTEST_ROOM_6, 255, 7, 5
	special sub_80AFC60
	waitstate
	return

LilycoveCity_ContestLobby_EventScript_21A656:: @ 821A656
	setwarp LINK_CONTEST_ROOM_5, 255, 7, 5
	special sub_80AFC60
	waitstate
	return

LilycoveCity_ContestLobby_EventScript_21A663:: @ 821A663
	setwarp LINK_CONTEST_ROOM_3, 255, 7, 5
	special sub_80AFC60
	waitstate
	return

LilycoveCity_ContestLobby_EventScript_21A670:: @ 821A670
	lockall
	applymovement 1, LilycoveCity_ContestLobby_Movement_21A6F5
	waitmovement 0
	playse SE_HASHI
	setmetatile 12, 2, 545, 1
	setmetatile 12, 3, 609, 1
	special DrawWholeMapView
	applymovement 1, LilycoveCity_ContestLobby_Movement_21A6F9
	waitmovement 0
	playse SE_HASHI
	setmetatile 12, 2, 721, 1
	setmetatile 12, 3, 729, 1
	special DrawWholeMapView
	delay 20
	applymovement 1, LilycoveCity_ContestLobby_Movement_21A706
	waitmovement 0
	applymovement 255, LilycoveCity_ContestLobby_Movement_21A6F2
	waitmovement 0
	msgbox LilycoveCity_ContestLobby_Text_27B653, 4
	closemessage
	applymovement 1, LilycoveCity_ContestLobby_Movement_21A6FD
	applymovement 255, LilycoveCity_ContestLobby_Movement_21A6E8
	waitmovement 0
	releaseall
	return

LilycoveCity_ContestLobby_Movement_21A6E8: @ 821A6E8
	step_left
	step_left
	step_left
	step_left
	step_up
	step_up
	step_up
	step_13
	step_54
	step_end

LilycoveCity_ContestLobby_Movement_21A6F2: @ 821A6F2
	step_27
	step_left
	step_end

LilycoveCity_ContestLobby_Movement_21A6F5: @ 821A6F5
	step_left
	step_left
	step_25
	step_end

LilycoveCity_ContestLobby_Movement_21A6F9: @ 821A6F9
	step_down
	step_down
	step_26
	step_end

LilycoveCity_ContestLobby_Movement_21A6FD: @ 821A6FD
	step_left
	step_left
	step_left
	step_up
	step_up
	step_up
	step_13
	step_54
	step_end

LilycoveCity_ContestLobby_Movement_21A706: @ 821A706
	step_28
	step_end

LilycoveCity_ContestLobby_EventScript_21A708:: @ 821A708
	msgbox LilycoveCity_ContestLobby_Text_21B1B1, 2
	end

LilycoveCity_ContestLobby_EventScript_21A711:: @ 821A711
	msgbox LilycoveCity_ContestLobby_Text_21B24D, 2
	end

LilycoveCity_ContestLobby_EventScript_21A71A:: @ 821A71A
	msgbox LilycoveCity_ContestLobby_Text_21B2BA, 2
	end

LilycoveCity_ContestLobby_EventScript_21A723:: @ 821A723
	msgbox LilycoveCity_ContestLobby_Text_21B334, 2
	end

LilycoveCity_ContestLobby_EventScript_21A72C:: @ 821A72C
	msgbox LilycoveCity_ContestLobby_Text_21B392, 2
	end

LilycoveCity_ContestLobby_EventScript_21A735:: @ 821A735
	msgbox LilycoveCity_ContestLobby_Text_21B3FC, 2
	end

LilycoveCity_ContestLobby_EventScript_21A73E:: @ 821A73E
	lockall
	fadescreen 1
	drawcontestwinner 1
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A745:: @ 821A745
	lockall
	fadescreen 1
	drawcontestwinner 2
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A74C:: @ 821A74C
	lockall
	fadescreen 1
	drawcontestwinner 3
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A753:: @ 821A753
	lockall
	fadescreen 1
	drawcontestwinner 4
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A75A:: @ 821A75A
	lockall
	fadescreen 1
	drawcontestwinner 5
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A761:: @ 821A761
	lockall
	fadescreen 1
	drawcontestwinner 6
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A768:: @ 821A768
	msgbox LilycoveCity_ContestLobby_Text_2931AA, 2
	end

LilycoveCity_ContestLobby_EventScript_21A771:: @ 821A771
	msgbox LilycoveCity_ContestLobby_Text_2931C6, 2
	end

LilycoveCity_ContestLobby_EventScript_21A77A:: @ 821A77A
	lockall
	special ShowBerryBlenderRecordWindow
	waitbuttonpress
	special sub_813C5A0
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A784:: @ 821A784
	lockall
	setvar VAR_0x8004, 7
	setvar VAR_0x8005, 7
	special sub_81A1780
	waitbuttonpress
	special sub_813C5A0
	releaseall
	end

LilycoveCity_ContestLobby_EventScript_21A798:: @ 821A798
	lock
	faceplayer
	msgbox LilycoveCity_ContestLobby_Text_2C427C, 4
	goto LilycoveCity_ContestLobby_EventScript_21A7F9
	end

LilycoveCity_ContestLobby_EventScript_21A7A8:: @ 821A7A8
	lock
	msgbox LilycoveCity_ContestLobby_Text_2C464B, 4
	release
	end

LilycoveCity_ContestLobby_EventScript_21A7B3:: @ 821A7B3
	lock
	msgbox LilycoveCity_ContestLobby_Text_2C465A, 4
	release
	end

LilycoveCity_ContestLobby_EventScript_21A7BE:: @ 821A7BE
	lock
	msgbox LilycoveCity_ContestLobby_Text_2C4669, 4
	release
	end

LilycoveCity_ContestLobby_EventScript_21A7C9:: @ 821A7C9
	lock
	faceplayer
	msgbox LilycoveCity_ContestLobby_Text_2C4679, 4
	goto LilycoveCity_ContestLobby_EventScript_21A7F9
	end

LilycoveCity_ContestLobby_EventScript_21A7D9:: @ 821A7D9
	lock
	faceplayer
	msgbox LilycoveCity_ContestLobby_Text_2C46B1, 4
	goto LilycoveCity_ContestLobby_EventScript_21A7F9
	end

LilycoveCity_ContestLobby_EventScript_21A7E9:: @ 821A7E9
	lock
	faceplayer
	msgbox LilycoveCity_ContestLobby_Text_2C4763, 4
	goto LilycoveCity_ContestLobby_EventScript_21A7F9
	end

LilycoveCity_ContestLobby_EventScript_21A7F9:: @ 821A7F9
	closemessage
	applymovement VAR_LAST_TALKED, LilycoveCity_ContestLobby_Movement_2725A2
	waitmovement 0
	release
	end

LilycoveCity_ContestLobby_EventScript_21A806:: @ 821A806
	special sub_80F9154
	lock
	faceplayer
	msgbox LilycoveCity_ContestLobby_Text_27C063, 4
	goto LilycoveCity_ContestLobby_EventScript_21A819
	end

LilycoveCity_ContestLobby_EventScript_21A819:: @ 821A819
	message LilycoveCity_ContestLobby_Text_27C0F6
	waitmessage
	multichoice 0, 0, 2, 0
	switch VAR_RESULT
	case 0, LilycoveCity_ContestLobby_EventScript_21A856
	case 1, LilycoveCity_ContestLobby_EventScript_21A90D
	case 2, LilycoveCity_ContestLobby_EventScript_21A97F
	case 127, LilycoveCity_ContestLobby_EventScript_21A97F
	end

LilycoveCity_ContestLobby_EventScript_21A856:: @ 821A856
	msgbox LilycoveCity_ContestLobby_Text_27BD17, 5
	compare VAR_RESULT, 0
	goto_eq LilycoveCity_ContestLobby_EventScript_21A97F
	call LilycoveCity_ContestLobby_EventScript_27134F
	compare VAR_RESULT, 0
	goto_eq LilycoveCity_ContestLobby_EventScript_21A97F
	message LilycoveCity_ContestLobby_Text_27C8FD
	waitmessage
	specialvar VAR_0x400D, sub_80093CC
	multichoice 0, 0, 85, 0
	switch VAR_RESULT
	case 0, LilycoveCity_ContestLobby_EventScript_21A8BB
	case 1, LilycoveCity_ContestLobby_EventScript_21A8C6
	case 2, LilycoveCity_ContestLobby_EventScript_21A97F
	case 127, LilycoveCity_ContestLobby_EventScript_21A97F
	end

LilycoveCity_ContestLobby_EventScript_21A8BB:: @ 821A8BB
	setvar VAR_0x400C, 0
	goto LilycoveCity_ContestLobby_EventScript_21A8DC
	end

LilycoveCity_ContestLobby_EventScript_21A8C6:: @ 821A8C6
	setvar VAR_0x400C, 1
	compare VAR_0x400D, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21AAFC
	goto LilycoveCity_ContestLobby_EventScript_21A8DC
	end

LilycoveCity_ContestLobby_EventScript_21A8DC:: @ 821A8DC
	message LilycoveCity_ContestLobby_Text_27C119
	waitmessage
	multichoice 0, 0, 4, 0
	switch VAR_RESULT
	case 5, LilycoveCity_ContestLobby_EventScript_21A97F
	case 127, LilycoveCity_ContestLobby_EventScript_21A97F
	copyvar VAR_CONTEST_CATEGORY, VAR_RESULT
	goto LilycoveCity_ContestLobby_EventScript_21A98C
	end

LilycoveCity_ContestLobby_EventScript_21A90D:: @ 821A90D
	message LilycoveCity_ContestLobby_Text_27C0DA
	waitmessage
	multichoice 0, 0, 84, 0
	switch VAR_RESULT
	case 0, LilycoveCity_ContestLobby_EventScript_21A955
	case 1, LilycoveCity_ContestLobby_EventScript_21A963
	case 2, LilycoveCity_ContestLobby_EventScript_21A971
	case 3, LilycoveCity_ContestLobby_EventScript_21A819
	case 127, LilycoveCity_ContestLobby_EventScript_21A819
	end

LilycoveCity_ContestLobby_EventScript_21A955:: @ 821A955
	msgbox LilycoveCity_ContestLobby_Text_27C340, 4
	goto LilycoveCity_ContestLobby_EventScript_21A90D
	end

LilycoveCity_ContestLobby_EventScript_21A963:: @ 821A963
	msgbox LilycoveCity_ContestLobby_Text_27C5B1, 4
	goto LilycoveCity_ContestLobby_EventScript_21A90D
	end

LilycoveCity_ContestLobby_EventScript_21A971:: @ 821A971
	msgbox LilycoveCity_ContestLobby_Text_27C742, 4
	goto LilycoveCity_ContestLobby_EventScript_21A90D
	end

LilycoveCity_ContestLobby_EventScript_21A97F:: @ 821A97F
	special CloseLink
	msgbox LilycoveCity_ContestLobby_Text_27BD4F, 4
	release
	end

LilycoveCity_ContestLobby_EventScript_21A98C:: @ 821A98C
	msgbox LilycoveCity_ContestLobby_Text_27C1C3, 4
	setvar VAR_CONTEST_RANK, 0
	choosecontestmon
	compare VAR_0x8004, 255
	goto_eq LilycoveCity_ContestLobby_EventScript_21A97F
	special sub_80F7F30
	compare VAR_RESULT, 0
	goto_eq LilycoveCity_ContestLobby_EventScript_21A9E0
	compare VAR_RESULT, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21AA0A
	compare VAR_RESULT, 2
	goto_eq LilycoveCity_ContestLobby_EventScript_21AA0A
	compare VAR_RESULT, 3
	goto_eq LilycoveCity_ContestLobby_EventScript_21A9EE
	compare VAR_RESULT, 4
	goto_eq LilycoveCity_ContestLobby_EventScript_21A9FC
	end

LilycoveCity_ContestLobby_EventScript_21A9E0:: @ 821A9E0
	msgbox LilycoveCity_ContestLobby_Text_27B471, 4
	goto LilycoveCity_ContestLobby_EventScript_21A98C
	end

LilycoveCity_ContestLobby_EventScript_21A9EE:: @ 821A9EE
	msgbox LilycoveCity_ContestLobby_Text_27C186, 4
	goto LilycoveCity_ContestLobby_EventScript_21A98C
	end

LilycoveCity_ContestLobby_EventScript_21A9FC:: @ 821A9FC
	msgbox LilycoveCity_ContestLobby_Text_27C140, 4
	goto LilycoveCity_ContestLobby_EventScript_21A98C
	end

LilycoveCity_ContestLobby_EventScript_21AA0A:: @ 821AA0A
	copyvar VAR_0x8008, VAR_0x8004
	goto LilycoveCity_ContestLobby_EventScript_21AA15
	end

LilycoveCity_ContestLobby_EventScript_21AA15:: @ 821AA15
	compare VAR_0x400D, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21AB4B
	compare VAR_0x400D, 2
	goto_if 4, LilycoveCity_ContestLobby_EventScript_21A97F
	message LilycoveCity_ContestLobby_Text_27BF85
	waitmessage
	copyvar VAR_0x8004, VAR_RESULT
	compare VAR_0x400C, 0
	call_if 1, LilycoveCity_ContestLobby_EventScript_21AABB
	compare VAR_0x400C, 1
	call_if 1, LilycoveCity_ContestLobby_EventScript_21AAC0
	compare VAR_0x400C, 2
	goto_if 4, LilycoveCity_ContestLobby_EventScript_21A97F
	compare VAR_RESULT, 4
	goto_eq LilycoveCity_ContestLobby_EventScript_21AAD3
	compare VAR_RESULT, 3
	goto_eq LilycoveCity_ContestLobby_EventScript_21AAD3
	compare VAR_RESULT, 5
	goto_eq LilycoveCity_ContestLobby_EventScript_21A97F
	compare VAR_RESULT, 6
	goto_eq LilycoveCity_ContestLobby_EventScript_21AAEF
	compare VAR_RESULT, 10
	goto_eq LilycoveCity_ContestLobby_EventScript_21AAE1
	message3 LilycoveCity_ContestLobby_Text_27BEEC
	contestlinktransfer
	switch VAR_0x8004
	case 0, LilycoveCity_ContestLobby_EventScript_21AB17
	case 1, LilycoveCity_ContestLobby_EventScript_21AAC5
	case 2, LilycoveCity_ContestLobby_EventScript_21AB09
	end

LilycoveCity_ContestLobby_EventScript_21AABB:: @ 821AABB
	special sub_80B3028
	waitstate
	return

LilycoveCity_ContestLobby_EventScript_21AAC0:: @ 821AAC0
	special sub_80B3000
	waitstate
	return

LilycoveCity_ContestLobby_EventScript_21AAC5:: @ 821AAC5
	msgbox LilycoveCity_ContestLobby_Text_27BF0E, 4
	goto LilycoveCity_ContestLobby_EventScript_21A97F
	end

LilycoveCity_ContestLobby_EventScript_21AAD3:: @ 821AAD3
	msgbox LilycoveCity_ContestLobby_Text_27BF4B, 4
	goto LilycoveCity_ContestLobby_EventScript_21A97F
	end

LilycoveCity_ContestLobby_EventScript_21AAE1:: @ 821AAE1
	msgbox LilycoveCity_ContestLobby_Text_27C254, 4
	goto LilycoveCity_ContestLobby_EventScript_21A97F
	end

LilycoveCity_ContestLobby_EventScript_21AAEF:: @ 821AAEF
	special CloseLink
	msgbox LilycoveCity_ContestLobby_Text_27821C, 4
	release
	end

LilycoveCity_ContestLobby_EventScript_21AAFC:: @ 821AAFC
	special CloseLink
	msgbox LilycoveCity_ContestLobby_Text_27C879, 4
	release
	end

LilycoveCity_ContestLobby_EventScript_21AB09:: @ 821AB09
	msgbox LilycoveCity_ContestLobby_Text_27BEFA, 4
	goto LilycoveCity_ContestLobby_EventScript_21A97F
	end

LilycoveCity_ContestLobby_EventScript_21AB17:: @ 821AB17
	special sub_80F84B0
	addvar VAR_0x8004, 1
	buffernumberstring 1, VAR_0x8004
	messageautoscroll LilycoveCity_ContestLobby_Text_27BFF8
	waitmessage
	subvar VAR_0x8004, 1
	call LilycoveCity_ContestLobby_EventScript_21AC49
	setvar VAR_0x4086, 1
	special sub_80F8AFC
	setvar VAR_0x4088, 5
	setvar VAR_CONTEST_RANK, 3
	call LilycoveCity_ContestLobby_EventScript_21A5EF
	end

LilycoveCity_ContestLobby_EventScript_21AB4B:: @ 821AB4B
	compare VAR_CONTEST_CATEGORY, 0
	call_if 1, LilycoveCity_ContestLobby_EventScript_21AB88
	compare VAR_CONTEST_CATEGORY, 1
	call_if 1, LilycoveCity_ContestLobby_EventScript_21AB8E
	compare VAR_CONTEST_CATEGORY, 2
	call_if 1, LilycoveCity_ContestLobby_EventScript_21AB94
	compare VAR_CONTEST_CATEGORY, 3
	call_if 1, LilycoveCity_ContestLobby_EventScript_21AB9A
	compare VAR_CONTEST_CATEGORY, 4
	call_if 1, LilycoveCity_ContestLobby_EventScript_21ABA0
	goto LilycoveCity_ContestLobby_EventScript_21ABA6
	end

LilycoveCity_ContestLobby_EventScript_21AB88:: @ 821AB88
	setvar VAR_0x8004, 15
	return

LilycoveCity_ContestLobby_EventScript_21AB8E:: @ 821AB8E
	setvar VAR_0x8004, 16
	return

LilycoveCity_ContestLobby_EventScript_21AB94:: @ 821AB94
	setvar VAR_0x8004, 17
	return

LilycoveCity_ContestLobby_EventScript_21AB9A:: @ 821AB9A
	setvar VAR_0x8004, 18
	return

LilycoveCity_ContestLobby_EventScript_21ABA0:: @ 821ABA0
	setvar VAR_0x8004, 19
	return

LilycoveCity_ContestLobby_EventScript_21ABA6:: @ 821ABA6
	message LilycoveCity_ContestLobby_Text_27C1EA
	waitmessage
	multichoice 16, 6, 81, 0
	switch VAR_RESULT
	case 0, LilycoveCity_ContestLobby_EventScript_21AC0B
	case 1, LilycoveCity_ContestLobby_EventScript_21ABE3
	case 2, LilycoveCity_ContestLobby_EventScript_21A97F
	case 127, LilycoveCity_ContestLobby_EventScript_21A97F
	end

LilycoveCity_ContestLobby_EventScript_21ABE3:: @ 821ABE3
	call LilycoveCity_ContestLobby_EventScript_21AC33
	compare VAR_RESULT, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21AC3D
	compare VAR_RESULT, 5
	goto_eq LilycoveCity_ContestLobby_EventScript_21ABA6
	compare VAR_RESULT, 8
	goto_eq LilycoveCity_ContestLobby_EventScript_21ABE3
	release
	end

LilycoveCity_ContestLobby_EventScript_21AC0B:: @ 821AC0B
	call LilycoveCity_ContestLobby_EventScript_21AC38
	compare VAR_RESULT, 1
	goto_eq LilycoveCity_ContestLobby_EventScript_21AC3D
	compare VAR_RESULT, 5
	goto_eq LilycoveCity_ContestLobby_EventScript_21ABA6
	compare VAR_RESULT, 8
	goto_eq LilycoveCity_ContestLobby_EventScript_21AC0B
	release
	end

LilycoveCity_ContestLobby_EventScript_21AC33:: @ 821AC33
	special BerryBlenderLinkBecomeLeader
	waitstate
	return

LilycoveCity_ContestLobby_EventScript_21AC38:: @ 821AC38
	special BerryBlenderLinkJoinGroup
	waitstate
	return

LilycoveCity_ContestLobby_EventScript_21AC3D:: @ 821AC3D
	message3 LilycoveCity_ContestLobby_Text_27BEEC
	contestlinktransfer
	goto LilycoveCity_ContestLobby_EventScript_21AB17
	end

LilycoveCity_ContestLobby_EventScript_21AC49:: @ 821AC49
	messageautoscroll LilycoveCity_ContestLobby_Text_27C043
	waitmessage
	delay 20
	closemessage
	applymovement 2, LilycoveCity_ContestLobby_Movement_21ACDD
	waitmovement 0
	playse SE_HASHI
	setmetatile 17, 2, 545, 1
	setmetatile 17, 3, 609, 1
	special DrawWholeMapView
	applymovement 2, LilycoveCity_ContestLobby_Movement_21ACE1
	waitmovement 0
	playse SE_HASHI
	setmetatile 17, 2, 721, 1
	setmetatile 17, 3, 729, 1
	special DrawWholeMapView
	delay 20
	applymovement 2, LilycoveCity_ContestLobby_Movement_21ACEF
	waitmovement 0
	applymovement 255, LilycoveCity_ContestLobby_Movement_21ACDB
	waitmovement 0
	messageautoscroll LilycoveCity_ContestLobby_Text_27B653
	waitmessage
	delay 20
	closemessage
	call LilycoveCity_ContestLobby_EventScript_27AD92
	applymovement 2, LilycoveCity_ContestLobby_Movement_21ACE5
	applymovement 255, LilycoveCity_ContestLobby_Movement_21ACD0
	waitmovement 0
	release
	return

LilycoveCity_ContestLobby_Movement_21ACD0: @ 821ACD0
	step_right
	step_right
	step_right
	step_right
	step_right
	step_up
	step_up
	step_up
	step_13
	step_54
	step_end

LilycoveCity_ContestLobby_Movement_21ACDB: @ 821ACDB
	step_right
	step_end

LilycoveCity_ContestLobby_Movement_21ACDD: @ 821ACDD
	step_right
	step_right
	step_25
	step_end

LilycoveCity_ContestLobby_Movement_21ACE1: @ 821ACE1
	step_down
	step_down
	step_26
	step_end

LilycoveCity_ContestLobby_Movement_21ACE5: @ 821ACE5
	step_right
	step_right
	step_right
	step_right
	step_up
	step_up
	step_up
	step_13
	step_54
	step_end

LilycoveCity_ContestLobby_Movement_21ACEF: @ 821ACEF
	step_27
	step_end

LilycoveCity_ContestLobby_EventScript_21ACF1:: @ 821ACF1
	lock
	faceplayer
	checkflag FLAG_0x05F
	goto_eq LilycoveCity_ContestLobby_EventScript_21AD06
	msgbox LilycoveCity_ContestLobby_Text_21AD10, 4
	release
	end

LilycoveCity_ContestLobby_EventScript_21AD06:: @ 821AD06
	msgbox LilycoveCity_ContestLobby_Text_21AD55, 4
	release
	end

LilycoveCity_ContestLobby_Text_21AD10: @ 821AD10
	.string "Yippee!\p"
	.string "The lady at the reception counter\n"
	.string "gave me a case for {POKEBLOCK}S!$"

LilycoveCity_ContestLobby_Text_21AD55: @ 821AD55
	.string "Make {POKEBLOCK}S and put them in there.\p"
	.string "When you make a {POKEBLOCK}, everyone\n"
	.string "has to put in a different BERRY.$"

LilycoveCity_ContestLobby_Text_21ADB9: @ 821ADB9
	.string "Congratulations!\p"
	.string "I did a painting of your POKéMON to\n"
	.string "commemorate its victory…\p"
	.string "Well, your POKéMON’s appeals were\n"
	.string "so fantastic, it spurred me into\l"
	.string "painting better than I usually do.\l"
	.string "Look, see?$"

LilycoveCity_ContestLobby_Text_21AE78: @ 821AE78
	.string "What do you think? I’m confident in\n"
	.string "what I’ve done, but do you like it?\p"
	.string "A work of this caliber, it wouldn’t look\n"
	.string "out of place in an art museum.\p"
	.string "Huh? An art museum really is looking\n"
	.string "for paintings?\p"
	.string "Do you think I should take this there?$"

LilycoveCity_ContestLobby_Text_21AF63: @ 821AF63
	.string "What, really? Then, sure, I will take\n"
	.string "this painting there right now.\p"
	.string "I’ll give it a proper title, too.\p"
	.string "I hope they’ll like it and consider\n"
	.string "exhibiting this.\p"
	.string "Please check if they did accept this.\n"
	.string "Thank you!$"

LilycoveCity_ContestLobby_Text_21B030: @ 821B030
	.string "Oh, that’s right!\p"
	.string "As a memento of me painting your\n"
	.string "POKéMON, please take this.$"

LilycoveCity_ContestLobby_Text_21B07E: @ 821B07E
	.string "{PLAYER} received a RIBBON.$"

LilycoveCity_ContestLobby_Text_21B094: @ 821B094
	.string "{PLAYER} put the RIBBON on\n"
	.string "{STR_VAR_1}.$"

LilycoveCity_ContestLobby_Text_21B0AD: @ 821B0AD
	.string "Okay, see you!$"

LilycoveCity_ContestLobby_Text_21B0BC: @ 821B0BC
	.string "Oh… Then, I guess I’ll just take\n"
	.string "this home with me…\p"
	.string "But, you know, I would like to take\n"
	.string "this to the art museum… Okay?$"

LilycoveCity_ContestLobby_Text_21B132: @ 821B132
	.string "Oh, fine, that’s the way it is.\n"
	.string "I will hang this in my own house.\p"
	.string "I’ll just have to try harder next time.\n"
	.string "Well, be seeing you.$"

LilycoveCity_ContestLobby_Text_21B1B1: @ 821B1B1
	.string "Hoo, boy… Master Rank CONTESTS,\n"
	.string "here I come.\p"
	.string "The world will know that my dearest\n"
	.string "POKéMON is the cutest being in all\l"
	.string "existence. The time has come!\l"
	.string "Uheheheh.$"

LilycoveCity_ContestLobby_Text_21B24D: @ 821B24D
	.string "You can see a whole variety of\n"
	.string "POKéMON here.\p"
	.string "That’s why I make this place a regular\n"
	.string "part of my daily stroll.$"

LilycoveCity_ContestLobby_Text_21B2BA: @ 821B2BA
	.string "Wow, coming out to a CONTEST is\n"
	.string "a feast for these eyes!\p"
	.string "Would you look at all the POKéMON\n"
	.string "that just scream to be painted?$"

LilycoveCity_ContestLobby_Text_21B334: @ 821B334
	.string "The TOUGHNESS CONTEST is like\n"
	.string "extreme, man!\p"
	.string "Those muscular appeals…\n"
	.string "Cascading sweat… I swoon!$"

LilycoveCity_ContestLobby_Text_21B392: @ 821B392
	.string "Day in and day out, I lavished my care\n"
	.string "on this POKéMON.\p"
	.string "Its condition is peaking.\n"
	.string "Today, victory is mine!$"

LilycoveCity_ContestLobby_Text_21B3FC: @ 821B3FC
	.string "I made {POKEBLOCK}S with Mom, Dad, and\n"
	.string "Big Sister. They turned out great!\p"
	.string "I bet you can make smoother, better\n"
	.string "{POKEBLOCK}S if you have more people.$"