summaryrefslogtreecommitdiff
path: root/data/scripts/maps/BattleFrontier_BattlePyramidLobby.inc
blob: f5043f13e9e5f5e17ff92c04bc56340516488e77 (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
BattleFrontier_BattlePyramidLobby_MapScripts:: @ 8250716
	map_script 2, BattleFrontier_BattlePyramidLobby_MapScript2_250735
	map_script 4, BattleFrontier_BattlePyramidLobby_MapScript2_2497FB
	.byte 0

BattleFrontier_BattlePyramidLobby_MapScript2_250721: @ 8250721
	map_script_2 VAR_0x4001, 0, BattleFrontier_BattlePyramidLobby_EventScript_25072B
	.2byte 0

BattleFrontier_BattlePyramidLobby_EventScript_25072B: @ 825072B
	setvar VAR_0x4001, 1
	turnobject 255, 2
	end

BattleFrontier_BattlePyramidLobby_MapScript2_250735: @ 8250735
	map_script_2 VAR_0x4000, 0, BattleFrontier_BattlePyramidLobby_EventScript_25075F
	map_script_2 VAR_0x4000, 1, BattleFrontier_BattlePyramidLobby_EventScript_250768
	map_script_2 VAR_0x4000, 2, BattleFrontier_BattlePyramidLobby_EventScript_2508AC
	map_script_2 VAR_0x4000, 3, BattleFrontier_BattlePyramidLobby_EventScript_2507B1
	map_script_2 VAR_0x4000, 4, BattleFrontier_BattlePyramidLobby_EventScript_250852
	.2byte 0

BattleFrontier_BattlePyramidLobby_EventScript_25075F:: @ 825075F
	setvar VAR_0x8004, 0
	special sub_81A1780
	end

BattleFrontier_BattlePyramidLobby_EventScript_250768:: @ 8250768
	lockall
	message BattleFrontier_BattlePyramidLobby_Text_2516D6
	waitmessage
	playse SE_EXPMAX
	waitse
	closemessage
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 0
	special sub_81A8E7C
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 2
	setvar VAR_0x8006, 0
	special sub_81A8E7C
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_0x4000, 255
	releaseall
	end

BattleFrontier_BattlePyramidLobby_EventScript_2507B1:: @ 82507B1
	lockall
	setvar VAR_0x8004, 10
	special sub_81A1780
	compare_var_to_value VAR_RESULT, 1
	goto_eq BattleFrontier_BattlePyramidLobby_EventScript_2507D2
	msgbox BattleFrontier_BattlePyramidLobby_Text_2517B5, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_2507DA

BattleFrontier_BattlePyramidLobby_EventScript_2507D2:: @ 82507D2
	msgbox BattleFrontier_BattlePyramidLobby_Text_2525F4, 4

BattleFrontier_BattlePyramidLobby_EventScript_2507DA:: @ 82507DA
	special sub_81B95E0
	compare_var_to_value VAR_RESULT, 1
	call_if 1, BattleFrontier_BattlePyramidLobby_EventScript_250DDB
	clearflag FLAG_SPECIAL_FLAG_0x4004
	setvar VAR_0x8004, 8
	special sub_81A1780
	special copy_player_party_from_sav1
	setvar VAR_0x8004, 14
	special sub_81A8E7C
	special sp000_heal_pokemon
	message BattleFrontier_BattlePyramidLobby_Text_2519F8
	waitmessage
	playse SE_EXPMAX
	waitse
	msgbox BattleFrontier_BattlePyramidLobby_Text_252662, 4
	setvar VAR_0x8004, 11
	special sub_81A1780
	msgbox BattleFrontier_BattlePyramidLobby_Text_241520, 9
	message BattleFrontier_BattlePyramidLobby_Text_251A77
	waitmessage
	setvar VAR_0x8004, 4
	special sub_81A8E7C
	setvar VAR_0x8004, 3
	setvar VAR_0x8005, 0
	special sub_81A8E7C
	playse SE_SAVE
	waitse
	msgbox BattleFrontier_BattlePyramidLobby_Text_251BB6, 4
	closemessage
	setvar VAR_0x4000, 255
	releaseall
	end

BattleFrontier_BattlePyramidLobby_EventScript_250852:: @ 8250852
	setvar VAR_0x8004, 8
	special sub_81A1780
	special copy_player_party_from_sav1
	setvar VAR_0x8004, 14
	special sub_81A8E7C
	special sp000_heal_pokemon
	lockall
	message BattleFrontier_BattlePyramidLobby_Text_251B5A
	waitmessage
	playse SE_EXPMAX
	waitse
	message BattleFrontier_BattlePyramidLobby_Text_251A77
	waitmessage
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 2
	setvar VAR_0x8006, 0
	special sub_81A8E7C
	setvar VAR_0x8004, 3
	setvar VAR_0x8005, 0
	special sub_81A8E7C
	playse SE_SAVE
	waitse
	msgbox BattleFrontier_BattlePyramidLobby_Text_251BB6, 4
	closemessage
	setvar VAR_0x4000, 255
	releaseall
	end

BattleFrontier_BattlePyramidLobby_EventScript_2508AC:: @ 82508AC
	goto BattleFrontier_BattlePyramidLobby_EventScript_250A21

BattleFrontier_BattlePyramidLobby_EventScript_2508B1:: @ 82508B1
	lock
	faceplayer
	setvar VAR_FRONTIER_FACILITY, 6
	setvar VAR_0x40CE, 0
	special copy_player_party_to_sav1
	msgbox BattleFrontier_BattlePyramidLobby_Text_250F31, 4

BattleFrontier_BattlePyramidLobby_EventScript_2508C8:: @ 82508C8
	message BattleFrontier_BattlePyramidLobby_Text_250FA7
	waitmessage
	multichoice 17, 6, 23, 0
	switch VAR_RESULT
	case 0, BattleFrontier_BattlePyramidLobby_EventScript_250904
	case 1, BattleFrontier_BattlePyramidLobby_EventScript_250A68
	case 2, BattleFrontier_BattlePyramidLobby_EventScript_250AC4
	case 127, BattleFrontier_BattlePyramidLobby_EventScript_250AC4

BattleFrontier_BattlePyramidLobby_EventScript_250904:: @ 8250904
	message BattleFrontier_BattlePyramidLobby_Text_251248
	waitmessage
	multichoice 17, 6, 24, 0
	switch VAR_RESULT
	case 2, BattleFrontier_BattlePyramidLobby_EventScript_250AC4
	case 127, BattleFrontier_BattlePyramidLobby_EventScript_250AC4
	setvar VAR_0x8004, 15
	special sub_81A1780
	compare_var_to_value VAR_0x8004, 1
	goto_eq BattleFrontier_BattlePyramidLobby_EventScript_250A75
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	copyvar VAR_0x8006, VAR_RESULT
	special sub_81A1780
	msgbox BattleFrontier_BattlePyramidLobby_Text_251297, 4
	fadescreen 1
	call BattleFrontier_BattlePyramidLobby_EventScript_23F2B7
	copyvar VAR_0x8004, VAR_RESULT
	setvar VAR_0x8005, 3
	special sub_80F9490
	waitstate
	compare_var_to_value VAR_RESULT, 0
	goto_eq BattleFrontier_BattlePyramidLobby_EventScript_250AC1
	msgbox BattleFrontier_BattlePyramidLobby_Text_2514E6, 5
	switch VAR_RESULT
	case 0, BattleFrontier_BattlePyramidLobby_EventScript_250AC1
	case 1, BattleFrontier_BattlePyramidLobby_EventScript_2509A5
	case 127, BattleFrontier_BattlePyramidLobby_EventScript_250AC1

BattleFrontier_BattlePyramidLobby_EventScript_2509A5:: @ 82509A5
	setvar VAR_0x4000, 0
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 4
	special sub_81A1780
	setvar VAR_0x8004, 0
	special sub_81A8E7C
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 2
	setvar VAR_0x8006, 1
	special sub_81A8E7C
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 1
	special sub_81A1780
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 3
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_0x8004, 6
	special sub_81A8E7C
	setvar VAR_0x8004, 9
	special sub_81A8E7C
	special copy_player_party_from_sav1
	closemessage
	delay 2
	call BattleFrontier_BattlePyramidLobby_EventScript_27134F
	setvar VAR_0x4000, 255
	compare_var_to_value VAR_RESULT, 0
	goto_eq BattleFrontier_BattlePyramidLobby_EventScript_250AAA

BattleFrontier_BattlePyramidLobby_EventScript_250A21:: @ 8250A21
	special copy_player_party_to_sav1
	setvar VAR_0x8004, 3
	setvar VAR_0x8005, 3
	special sub_81A1780
	msgbox BattleFrontier_BattlePyramidLobby_Text_251531, 4
	closemessage
	call BattleFrontier_BattlePyramidLobby_EventScript_250D56
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_RESULT, 0
	special sp000_heal_pokemon
	warp BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE, 255, 1, 1
	setvar VAR_0x4000, 0
	waitstate
	end

BattleFrontier_BattlePyramidLobby_EventScript_250A68:: @ 8250A68
	msgbox BattleFrontier_BattlePyramidLobby_Text_25100C, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_2508C8

BattleFrontier_BattlePyramidLobby_EventScript_250A75:: @ 8250A75
	switch VAR_RESULT
	case 0, BattleFrontier_BattlePyramidLobby_EventScript_250A90
	case 1, BattleFrontier_BattlePyramidLobby_EventScript_250A9D

BattleFrontier_BattlePyramidLobby_EventScript_250A90:: @ 8250A90
	msgbox BattleFrontier_BattlePyramidLobby_Text_2513C1, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_250ACC

BattleFrontier_BattlePyramidLobby_EventScript_250A9D:: @ 8250A9D
	msgbox BattleFrontier_BattlePyramidLobby_Text_2512E2, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_250ACC

BattleFrontier_BattlePyramidLobby_EventScript_250AAA:: @ 8250AAA
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 0
	special sub_81A1780
	goto BattleFrontier_BattlePyramidLobby_EventScript_250AC4

BattleFrontier_BattlePyramidLobby_EventScript_250AC1:: @ 8250AC1
	special copy_player_party_from_sav1

BattleFrontier_BattlePyramidLobby_EventScript_250AC4:: @ 8250AC4
	msgbox BattleFrontier_BattlePyramidLobby_Text_250FE5, 4

BattleFrontier_BattlePyramidLobby_EventScript_250ACC:: @ 8250ACC
	release
	end

BattleFrontier_BattlePyramidLobby_EventScript_250ACE:: @ 8250ACE
	lockall
	applymovement 2, BattleFrontier_BattlePyramidLobby_Movement_27259E
	waitmovement 0
	msgbox BattleFrontier_BattlePyramidLobby_Text_251C3B, 4
	call BattleFrontier_BattlePyramidLobby_EventScript_250AF0
	msgbox BattleFrontier_BattlePyramidLobby_Text_252461, 4
	releaseall
	end

BattleFrontier_BattlePyramidLobby_EventScript_250AF0:: @ 8250AF0
	multichoice 17, 6, 24, 0
	switch VAR_RESULT
	case 0, BattleFrontier_BattlePyramidLobby_EventScript_250B28
	case 1, BattleFrontier_BattlePyramidLobby_EventScript_250B66
	case 2, BattleFrontier_BattlePyramidLobby_EventScript_250B27
	case 127, BattleFrontier_BattlePyramidLobby_EventScript_250B27
	return

BattleFrontier_BattlePyramidLobby_EventScript_250B27:: @ 8250B27
	return

BattleFrontier_BattlePyramidLobby_EventScript_250B28:: @ 8250B28
	msgbox BattleFrontier_BattlePyramidLobby_Text_251C8A, 4
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 5
	special sub_81A8E7C
	compare_var_to_value VAR_RESULT, 0
	goto_if 5, BattleFrontier_BattlePyramidLobby_EventScript_250B53
	setvar VAR_RESULT, 0
	goto BattleFrontier_BattlePyramidLobby_EventScript_250BA4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250B53:: @ 8250B53
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 3
	special sub_81A8E7C
	goto BattleFrontier_BattlePyramidLobby_EventScript_250BA4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250B66:: @ 8250B66
	msgbox BattleFrontier_BattlePyramidLobby_Text_251C8A, 4
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 6
	special sub_81A8E7C
	compare_var_to_value VAR_RESULT, 0
	goto_if 5, BattleFrontier_BattlePyramidLobby_EventScript_250B91
	setvar VAR_RESULT, 0
	goto BattleFrontier_BattlePyramidLobby_EventScript_250BA4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250B91:: @ 8250B91
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 4
	special sub_81A8E7C
	goto BattleFrontier_BattlePyramidLobby_EventScript_250BA4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250BA4:: @ 8250BA4
	copyvar VAR_0x8004, VAR_RESULT
	special sub_813B968
	switch VAR_RESULT
	case 0, BattleFrontier_BattlePyramidLobby_EventScript_250C8E
	case 1, BattleFrontier_BattlePyramidLobby_EventScript_250C97
	case 2, BattleFrontier_BattlePyramidLobby_EventScript_250CA0
	case 3, BattleFrontier_BattlePyramidLobby_EventScript_250CA9
	case 4, BattleFrontier_BattlePyramidLobby_EventScript_250CB2
	case 5, BattleFrontier_BattlePyramidLobby_EventScript_250CBB
	case 6, BattleFrontier_BattlePyramidLobby_EventScript_250CC4
	case 7, BattleFrontier_BattlePyramidLobby_EventScript_250CCD
	case 8, BattleFrontier_BattlePyramidLobby_EventScript_250CD6
	case 9, BattleFrontier_BattlePyramidLobby_EventScript_250CDF
	case 10, BattleFrontier_BattlePyramidLobby_EventScript_250CE8
	case 11, BattleFrontier_BattlePyramidLobby_EventScript_250CF1
	case 12, BattleFrontier_BattlePyramidLobby_EventScript_250CFA
	case 13, BattleFrontier_BattlePyramidLobby_EventScript_250D03
	case 14, BattleFrontier_BattlePyramidLobby_EventScript_250D0C
	case 15, BattleFrontier_BattlePyramidLobby_EventScript_250D15
	case 16, BattleFrontier_BattlePyramidLobby_EventScript_250D1E
	case 17, BattleFrontier_BattlePyramidLobby_EventScript_250D27
	case 18, BattleFrontier_BattlePyramidLobby_EventScript_250D30
	case 19, BattleFrontier_BattlePyramidLobby_EventScript_250D39
	return

BattleFrontier_BattlePyramidLobby_EventScript_250C8E:: @ 8250C8E
	msgbox BattleFrontier_BattlePyramidLobby_Text_251CB3, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250C97:: @ 8250C97
	msgbox BattleFrontier_BattlePyramidLobby_Text_251D07, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CA0:: @ 8250CA0
	msgbox BattleFrontier_BattlePyramidLobby_Text_251D54, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CA9:: @ 8250CA9
	msgbox BattleFrontier_BattlePyramidLobby_Text_251D9C, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CB2:: @ 8250CB2
	msgbox BattleFrontier_BattlePyramidLobby_Text_251E3D, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CBB:: @ 8250CBB
	msgbox BattleFrontier_BattlePyramidLobby_Text_251EA1, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CC4:: @ 8250CC4
	msgbox BattleFrontier_BattlePyramidLobby_Text_251F17, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CCD:: @ 8250CCD
	msgbox BattleFrontier_BattlePyramidLobby_Text_251F6E, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CD6:: @ 8250CD6
	msgbox BattleFrontier_BattlePyramidLobby_Text_251FC7, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CDF:: @ 8250CDF
	msgbox BattleFrontier_BattlePyramidLobby_Text_25201B, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CE8:: @ 8250CE8
	msgbox BattleFrontier_BattlePyramidLobby_Text_252068, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CF1:: @ 8250CF1
	msgbox BattleFrontier_BattlePyramidLobby_Text_2520BA, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250CFA:: @ 8250CFA
	msgbox BattleFrontier_BattlePyramidLobby_Text_252158, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250D03:: @ 8250D03
	msgbox BattleFrontier_BattlePyramidLobby_Text_2521B4, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250D0C:: @ 8250D0C
	msgbox BattleFrontier_BattlePyramidLobby_Text_252206, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250D15:: @ 8250D15
	msgbox BattleFrontier_BattlePyramidLobby_Text_25225A, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250D1E:: @ 8250D1E
	msgbox BattleFrontier_BattlePyramidLobby_Text_2522AE, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250D27:: @ 8250D27
	msgbox BattleFrontier_BattlePyramidLobby_Text_25230B, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250D30:: @ 8250D30
	msgbox BattleFrontier_BattlePyramidLobby_Text_252364, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250D39:: @ 8250D39
	msgbox BattleFrontier_BattlePyramidLobby_Text_252403, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250D42:: @ 8250D42
	lockall
	setvar VAR_0x8004, 7
	setvar VAR_0x8005, 6
	special sub_81A1780
	waitbuttonpress
	special sub_813C5A0
	releaseall
	end

BattleFrontier_BattlePyramidLobby_EventScript_250D56:: @ 8250D56
	applymovement 1, BattleFrontier_BattlePyramidLobby_Movement_250DC4
	applymovement 255, BattleFrontier_BattlePyramidLobby_Movement_250DCD
	waitmovement 0
	msgbox BattleFrontier_BattlePyramidLobby_Text_251569, 4
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	special sub_81A8E7C
	compare_var_to_value VAR_RESULT, 0
	goto_eq BattleFrontier_BattlePyramidLobby_EventScript_250D94
	msgbox BattleFrontier_BattlePyramidLobby_Text_2515AD, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_250D9C

BattleFrontier_BattlePyramidLobby_EventScript_250D94:: @ 8250D94
	msgbox BattleFrontier_BattlePyramidLobby_Text_2515F4, 4

BattleFrontier_BattlePyramidLobby_EventScript_250D9C:: @ 8250D9C
	message BattleFrontier_BattlePyramidLobby_Text_25161E
	waitmessage
	playse SE_EXPMAX
	waitse
	msgbox BattleFrontier_BattlePyramidLobby_Text_251647, 4
	closemessage
	applymovement 1, BattleFrontier_BattlePyramidLobby_Movement_250DD5
	waitmovement 0
	applymovement 255, BattleFrontier_BattlePyramidLobby_Movement_250DD8
	waitmovement 0
	return

BattleFrontier_BattlePyramidLobby_Movement_250DC4: @ 8250DC4
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_00
	step_end

BattleFrontier_BattlePyramidLobby_Movement_250DCD: @ 8250DCD
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_end

BattleFrontier_BattlePyramidLobby_Movement_250DD5: @ 8250DD5
	step_right
	step_02
	step_end

BattleFrontier_BattlePyramidLobby_Movement_250DD8: @ 8250DD8
	step_up
	step_up
	step_end

BattleFrontier_BattlePyramidLobby_EventScript_250DDB:: @ 8250DDB
	msgbox BattleFrontier_BattlePyramidLobby_Text_2517FC, 4
	setflag FLAG_SPECIAL_FLAG_0x4004
	special sub_81C6A94
	compare_var_to_value VAR_RESULT, 0
	goto_eq BattleFrontier_BattlePyramidLobby_EventScript_250E00
	message BattleFrontier_BattlePyramidLobby_Text_2518C6
	waitmessage
	goto BattleFrontier_BattlePyramidLobby_EventScript_250E09
	end

BattleFrontier_BattlePyramidLobby_EventScript_250E00:: @ 8250E00
	msgbox BattleFrontier_BattlePyramidLobby_Text_251881, 4
	return

BattleFrontier_BattlePyramidLobby_EventScript_250E09:: @ 8250E09
	multichoice 17, 6, 83, 0
	switch VAR_RESULT
	case 0, BattleFrontier_BattlePyramidLobby_EventScript_250E40
	case 1, BattleFrontier_BattlePyramidLobby_EventScript_250E50
	case 2, BattleFrontier_BattlePyramidLobby_EventScript_250E60
	case 127, BattleFrontier_BattlePyramidLobby_EventScript_250E60
	end

BattleFrontier_BattlePyramidLobby_EventScript_250E40:: @ 8250E40
	special sub_81C4F24
	waitstate
	message BattleFrontier_BattlePyramidLobby_Text_25197E
	waitmessage
	goto BattleFrontier_BattlePyramidLobby_EventScript_250E09
	end

BattleFrontier_BattlePyramidLobby_EventScript_250E50:: @ 8250E50
	special sub_81B9620
	waitstate
	message BattleFrontier_BattlePyramidLobby_Text_25197E
	waitmessage
	goto BattleFrontier_BattlePyramidLobby_EventScript_250E09
	end

BattleFrontier_BattlePyramidLobby_EventScript_250E60:: @ 8250E60
	special sub_81B95E0
	compare_var_to_value VAR_RESULT, 1
	goto_eq BattleFrontier_BattlePyramidLobby_EventScript_250E6F
	return

BattleFrontier_BattlePyramidLobby_EventScript_250E6F:: @ 8250E6F
	msgbox BattleFrontier_BattlePyramidLobby_Text_25194F, 4
	message BattleFrontier_BattlePyramidLobby_Text_25197E
	waitmessage
	goto BattleFrontier_BattlePyramidLobby_EventScript_250E09
	end

BattleFrontier_BattlePyramidLobby_EventScript_250E83:: @ 8250E83
	msgbox BattleFrontier_BattlePyramidLobby_Text_2524DA, 2
	end

BattleFrontier_BattlePyramidLobby_EventScript_250E8C:: @ 8250E8C
	msgbox BattleFrontier_BattlePyramidLobby_Text_252595, 2
	end

BattleFrontier_BattlePyramidLobby_EventScript_250E95:: @ 8250E95
	lockall
	msgbox BattleFrontier_BattlePyramidLobby_Text_2526B6, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_250EA4
	end

BattleFrontier_BattlePyramidLobby_EventScript_250EA4:: @ 8250EA4
	message BattleFrontier_BattlePyramidLobby_Text_2526D9
	waitmessage
	multichoice 15, 2, 101, 0
	switch VAR_RESULT
	case 0, BattleFrontier_BattlePyramidLobby_EventScript_250EF7
	case 1, BattleFrontier_BattlePyramidLobby_EventScript_250F05
	case 2, BattleFrontier_BattlePyramidLobby_EventScript_250F13
	case 3, BattleFrontier_BattlePyramidLobby_EventScript_250F21
	case 4, BattleFrontier_BattlePyramidLobby_EventScript_250F2F
	case 127, BattleFrontier_BattlePyramidLobby_EventScript_250F2F
	end

BattleFrontier_BattlePyramidLobby_EventScript_250EF7:: @ 8250EF7
	msgbox BattleFrontier_BattlePyramidLobby_Text_2526FC, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_250EA4
	end

BattleFrontier_BattlePyramidLobby_EventScript_250F05:: @ 8250F05
	msgbox BattleFrontier_BattlePyramidLobby_Text_2527A9, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_250EA4
	end

BattleFrontier_BattlePyramidLobby_EventScript_250F13:: @ 8250F13
	msgbox BattleFrontier_BattlePyramidLobby_Text_25285A, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_250EA4
	end

BattleFrontier_BattlePyramidLobby_EventScript_250F21:: @ 8250F21
	msgbox BattleFrontier_BattlePyramidLobby_Text_252924, 4
	goto BattleFrontier_BattlePyramidLobby_EventScript_250EA4
	end

BattleFrontier_BattlePyramidLobby_EventScript_250F2F:: @ 8250F2F
	releaseall
	end

BattleFrontier_BattlePyramidLobby_Text_250F31: @ 8250F31
	.string "Where the courage of TRAINERS\n"
	.string "is put to the test!\p"
	.string "Welcome to the BATTLE PYRAMID!\p"
	.string "I am your guide to\n"
	.string "the Battle Quest.$"

BattleFrontier_BattlePyramidLobby_Text_250FA7: @ 8250FA7
	.string "Have you the courage to embark on\n"
	.string "the Battle Quest challenge?$"

BattleFrontier_BattlePyramidLobby_Text_250FE5: @ 8250FE5
	.string "We await your challenge in the future!$"

BattleFrontier_BattlePyramidLobby_Text_25100C: @ 825100C
	.string "The Battle Quest is a battling\n"
	.string "event in which you must explore\l"
	.string "the PYRAMID and try to reach the top.\p"
	.string "In the PYRAMID are seven floors of\n"
	.string "mazes, all of them filled with not only\l"
	.string "skilled TRAINERS but also wild POKéMON.\p"
	.string "You must enter with three POKéMON,\n"
	.string "none of them holding an item.\p"
	.string "On your ascent, you will be provided\n"
	.string "with a BATTLE BAG for items.\p"
	.string "If you fail in your challenge, any item\n"
	.string "placed in the BATTLE BAG disappears.\p"
	.string "If you want to interrupt your\n"
	.string "challenge, you must select “REST”\l"
	.string "and save the game.\p"
	.string "If you don’t save before interrupting,\n"
	.string "you will be disqualified.$"

BattleFrontier_BattlePyramidLobby_Text_251248: @ 8251248
	.string "The PYRAMID offers two courses,\n"
	.string "Level 50 and Open Level.\l"
	.string "Which will you enter?$"

BattleFrontier_BattlePyramidLobby_Text_251297: @ 8251297
	.string "Very good. Now, please select the three\n"
	.string "POKéMON you wish to accompany you.$"

BattleFrontier_BattlePyramidLobby_Text_2512E2: @ 82512E2
	.string "A slight problem, adventurer!\p"
	.string "You seem to not have the three\n"
	.string "POKéMON qualified for the challenge.\p"
	.string "Please also remember to take all\n"
	.string "items from your POKéMON.\p"
	.string "EGGS{STR_VAR_1} ineligible.\p"
	.string "When you are ready, please have\n"
	.string "a word with me.$"

BattleFrontier_BattlePyramidLobby_Text_2513C1: @ 82513C1
	.string "A slight problem, adventurer!\p"
	.string "You seem to not have the three\n"
	.string "POKéMON qualified for the challenge.\p"
	.string "The three POKéMON must be different\n"
	.string "and each no higher than Level 50.\p"
	.string "Please also remember to take all\n"
	.string "items from your POKéMON.\p"
	.string "EGGS{STR_VAR_1} ineligible.\p"
	.string "When you are ready, please have\n"
	.string "a word with me.$"

BattleFrontier_BattlePyramidLobby_Text_2514E6: @ 82514E6
	.string "Before you enter the BATTLE PYRAMID,\n"
	.string "the game must be saved. Is that okay?$"

BattleFrontier_BattlePyramidLobby_Text_251531: @ 8251531
	.string "Very good. I will now show you into\n"
	.string "the BATTLE PYRAMID.$"

BattleFrontier_BattlePyramidLobby_Text_251569: @ 8251569
	.string "We will hold your BAG for safekeeping,\n"
	.string "{PLAYER}, while you are exploring.$"

BattleFrontier_BattlePyramidLobby_Text_2515AD: @ 82515AD
	.string "In exchange, please take this BATTLE\n"
	.string "BAG, the one you used previously.$"

BattleFrontier_BattlePyramidLobby_Text_2515F4: @ 82515F4
	.string "In exchange, please take this\n"
	.string "BATTLE BAG.$"

BattleFrontier_BattlePyramidLobby_Text_25161E: @ 825161E
	.string "{PLAYER} exchanged the BAG for\n"
	.string "the BATTLE BAG.$"

BattleFrontier_BattlePyramidLobby_Text_251647: @ 8251647
	.string "When you step on this floor panel,\n"
	.string "you will be transported to a higher\l"
	.string "floor in the PYRAMID.\p"
	.string "I hope for your sake that your\n"
	.string "quest goes safely!$"

BattleFrontier_BattlePyramidLobby_Text_2516D6: @ 82516D6
	.string "A major problem, explorer!\p"
	.string "You did not save before ending\n"
	.string "your challenge the last time.\p"
	.string "Consequently, your challenge has\n"
	.string "been disqualified, I’m sorry to say.\p"
	.string "Here is the BAG we’ve been holding\n"
	.string "for you.\p"
	.string "{PLAYER} got the BAG back.$"

BattleFrontier_BattlePyramidLobby_Text_2517B5: @ 82517B5
	.string "Excellent to see you back!\p"
	.string "You’ve conquered the PYRAMID!\n"
	.string "How splendid!$"

BattleFrontier_BattlePyramidLobby_Text_2517FC: @ 82517FC
	.string "Ah, a slight problem.\p"
	.string "At least one POKéMON is holding\n"
	.string "an item.\p"
	.string "I’m sorry to say, items obtained in\n"
	.string "the PYRAMID cannot be taken away.$"

BattleFrontier_BattlePyramidLobby_Text_251881: @ 8251881
	.string "All items held by your POKéMON will be\n"
	.string "moved to your BATTLE BAG, {PLAYER}.$"

BattleFrontier_BattlePyramidLobby_Text_2518C6: @ 82518C6
	.string "The BATTLE BAG cannot hold all your\n"
	.string "items, I’m sorry to say.\p"
	.string "Please pick the items you’ll keep in the\n"
	.string "BATTLE BAG, and with your POKéMON.$"

BattleFrontier_BattlePyramidLobby_Text_25194F: @ 825194F
	.string "At least one POKéMON is still\n"
	.string "holding an item.$"

BattleFrontier_BattlePyramidLobby_Text_25197E: @ 825197E
	.string "Please pick the items you’ll keep in the\n"
	.string "BATTLE BAG, and with your POKéMON.$"

BattleFrontier_BattlePyramidLobby_Text_2519CA: @ 82519CA
	.string "{PLAYER} returned everything that\n"
	.string "the POKéMON held.$"

BattleFrontier_BattlePyramidLobby_Text_2519F8: @ 82519F8
	.string "The BATTLE BAG you used will be kept\n"
	.string "in readiness for your next challenge.\p"
	.string "{PLAYER} turned the BATTLE BAG over\n"
	.string "for the BAG’s return.$"

BattleFrontier_BattlePyramidLobby_Text_251A77: @ 8251A77
	.string "I must record your results.\n"
	.string "Please wait.$"

BattleFrontier_BattlePyramidLobby_Text_251AA0: @ 8251AA0
	.string "As a memento for conquering\n"
	.string "the BATTLE PYRAMID, please take this.$"

BattleFrontier_BattlePyramidLobby_Text_251AE2: @ 8251AE2
	.string "{PLAYER} received the prize\n"
	.string "{STR_VAR_1}.$"

BattleFrontier_BattlePyramidLobby_Text_251AFC: @ 8251AFC
	.string "…Ah…\n"
	.string "Your BAG appears to be filled.\p"
	.string "Please return after you’ve organized\n"
	.string "your BAG’s contents.$"

BattleFrontier_BattlePyramidLobby_Text_251B5A: @ 8251B5A
	.string "How disappointing for you…\p"
	.string "Here is the BAG we’ve been holding\n"
	.string "for you.\p"
	.string "{PLAYER} got the BAG back.$"

BattleFrontier_BattlePyramidLobby_Text_251BB6: @ 8251BB6
	.string "We look forward to your\n"
	.string "next challenge!$"

BattleFrontier_BattlePyramidLobby_Text_251BDE: @ 8251BDE
	.string "We have been looking forward to\n"
	.string "your arrival!\p"
	.string "Here is your prize for conquering\n"
	.string "the PYRAMID.$"

BattleFrontier_BattlePyramidLobby_Text_251C3B: @ 8251C3B
	.string "Welcome…\p"
	.string "I shall be pleased to tell you what\n"
	.string "misfortunes await in the PYRAMID…$"

BattleFrontier_BattlePyramidLobby_Text_251C8A: @ 8251C8A
	.string "… … … … … …\n"
	.string "… … … … … …\p"
	.string "… … … … … …\n"
	.string "Aah!$"

BattleFrontier_BattlePyramidLobby_Text_251CB3: @ 8251CB3
	.string "I see a shower of sparks…\p"
	.string "…And in it, I see your POKéMON\n"
	.string "struggling with paralysis…$"

BattleFrontier_BattlePyramidLobby_Text_251D07: @ 8251D07
	.string "I see poison…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from the effects of poison…$"

BattleFrontier_BattlePyramidLobby_Text_251D54: @ 8251D54
	.string "I see bright red flames…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from burns…$"

BattleFrontier_BattlePyramidLobby_Text_251D9C: @ 8251D9C
	.string "I sense the tremendous pressure of\n"
	.string "unrequited anger…\p"
	.string "It is a curse…\p"
	.string "…And, I see your POKéMON drained of\n"
	.string "Power Points and having no recourse\l"
	.string "but to use STRUGGLE…$"

BattleFrontier_BattlePyramidLobby_Text_251E3D: @ 8251E3D
	.string "I see POKéMON loftily airborne…\p"
	.string "…And, I see your POKéMON frustrated\n"
	.string "by powerless GROUND-type moves…$"

BattleFrontier_BattlePyramidLobby_Text_251EA1: @ 8251EA1
	.string "I sense terrific energy rising from\n"
	.string "the ground below…\p"
	.string "…And, I see your POKéMON unable to\n"
	.string "escape the power’s clutches…$"

BattleFrontier_BattlePyramidLobby_Text_251F17: @ 8251F17
	.string "I see ICE-type POKéMON…\p"
	.string "…And, I see your POKéMON fighting\n"
	.string "the freezing effects of ice…$"

BattleFrontier_BattlePyramidLobby_Text_251F6E: @ 8251F6E
	.string "I see a flurry of moves that imperil\n"
	.string "the user…\p"
	.string "…And, I see your POKéMON falling\n"
	.string "to them…$"

BattleFrontier_BattlePyramidLobby_Text_251FC7: @ 8251FC7
	.string "I see PSYCHIC-type POKéMON…\p"
	.string "…And, I see your POKéMON in torment\n"
	.string "from PSYCHIC moves…$"

BattleFrontier_BattlePyramidLobby_Text_25201B: @ 825201B
	.string "I see ROCK-type POKéMON…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from ROCK moves…$"

BattleFrontier_BattlePyramidLobby_Text_252068: @ 8252068
	.string "I see FIGHTING-type POKéMON…\p"
	.string "…And, I see your POKéMON pummeled\n"
	.string "by FIGHTING moves…$"

BattleFrontier_BattlePyramidLobby_Text_2520BA: @ 82520BA
	.string "RAIN DANCE… SUNNY DAY…\n"
	.string "SANDSTORM… HAIL…\p"
	.string "I see POKéMON that become stronger\n"
	.string "with the weather…\p"
	.string "…And, I see your POKéMON confounded\n"
	.string "by different types of moves…$"

BattleFrontier_BattlePyramidLobby_Text_252158: @ 8252158
	.string "I see BUG-type POKéMON…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from different kinds of attacks…$"

BattleFrontier_BattlePyramidLobby_Text_2521B4: @ 82521B4
	.string "I see DARK-type POKéMON…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from DARK-type moves…$"

BattleFrontier_BattlePyramidLobby_Text_252206: @ 8252206
	.string "I see WATER-type POKéMON…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from WATER-type moves…$"

BattleFrontier_BattlePyramidLobby_Text_25225A: @ 825225A
	.string "I see GHOST-type POKéMON…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from GHOST-type moves…$"

BattleFrontier_BattlePyramidLobby_Text_2522AE: @ 82522AE
	.string "I see STEEL-type POKéMON…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from enormously powerful moves…$"

BattleFrontier_BattlePyramidLobby_Text_25230B: @ 825230B
	.string "I see flying POKéMON…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from enormously powerful moves…$"

BattleFrontier_BattlePyramidLobby_Text_252364: @ 8252364
	.string "I see those that have evolved from\n"
	.string "the power of stones…\p"
	.string "I also sense fire, water,\n"
	.string "and electricity…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from those three powers…$"

BattleFrontier_BattlePyramidLobby_Text_252403: @ 8252403
	.string "I see NORMAL-type POKéMON…\p"
	.string "…And, I see your POKéMON suffering\n"
	.string "from enormously powerful moves…$"

BattleFrontier_BattlePyramidLobby_Text_252461: @ 8252461
	.string "Whether you believe my fortunes\n"
	.string "or not, the choice is yours…\p"
	.string "The future can be changed anytime…\n"
	.string "I wish you safe passage…$"

BattleFrontier_BattlePyramidLobby_Text_2524DA: @ 82524DA
	.string "Did you know?\p"
	.string "If you run fast, TRAINERS may notice\n"
	.string "and come after you for a battle.\p"
	.string "So, if you want to avoid TRAINERS,\n"
	.string "don’t catch their eyes, but sneak\l"
	.string "cautiously and quietly past them.$"

BattleFrontier_BattlePyramidLobby_Text_252595: @ 8252595
	.string "Awaaaaaaarrrrgh!\p"
	.string "I had a whole lot of items, but I lost\n"
	.string "them all when I lost!\p"
	.string "Awaaaaaaarrrrgh!$"

BattleFrontier_BattlePyramidLobby_Text_2525F4: @ 82525F4
	.string "Welcome back!\n"
	.string "You’ve done the unthinkable!\p"
	.string "You’ve defeated the PYRAMID KING\n"
	.string "and conquered the BATTLE PYRAMID!$"

BattleFrontier_BattlePyramidLobby_Text_252662: @ 8252662
	.string "Young explorer!\n"
	.string "In commendation of your courage,\l"
	.string "we give you these Battle Point(s)!$"

BattleFrontier_BattlePyramidLobby_Text_2526B6: @ 82526B6
	.string "The Battle Quest rules are listed.$"

BattleFrontier_BattlePyramidLobby_Text_2526D9: @ 82526D9
	.string "Which heading do you want to read?$"

BattleFrontier_BattlePyramidLobby_Text_2526FC: @ 82526FC
	.string "When the PYRAMID is conquered,\n"
	.string "the wild POKéMON that appear in it\l"
	.string "are replaced by different kinds.\p"
	.string "Explore, observe, and learn what kinds\n"
	.string "of wild POKéMON you may encounter.$"

BattleFrontier_BattlePyramidLobby_Text_2527A9: @ 82527A9
	.string "TRAINERS are lying in wait for you\n"
	.string "inside the PYRAMID.\p"
	.string "On each floor, there are up to\n"
	.string "eight TRAINERS.\p"
	.string "When you defeat a TRAINER, you will\n"
	.string "get a helpful hint for your adventure.$"

BattleFrontier_BattlePyramidLobby_Text_25285A: @ 825285A
	.string "The mazes in the PYRAMID rearrange\n"
	.string "themselves every time you enter it.\p"
	.string "The mazes are poorly lit.\n"
	.string "You must advance with caution.\p"
	.string "The light grows brighter whenever you\n"
	.string "defeat a wild POKéMON or a TRAINER.$"

BattleFrontier_BattlePyramidLobby_Text_252924: @ 8252924
	.string "The BATTLE BAG serves as your BAG\n"
	.string "while in the PYRAMID.\p"
	.string "There are two separate BATTLE BAGS--\n"
	.string "one each for the Level 50 and\l"
	.string "Open Level adventures.\p"
	.string "They each can hold up to 99 pieces\n"
	.string "of ten kinds of items.\p"
	.string "The contents of the BATTLE BAG are\n"
	.string "lost if you fail in your quest.$"