summaryrefslogtreecommitdiff
path: root/data/scripts/maps/SootopolisCity.inc
blob: 33b65714bf8acf3088df0cb49dbdda0ea5bdb708 (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
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
SootopolisCity_MapScripts:: @ 81E565C
	map_script 1, SootopolisCity_MapScript1_1E5676
	map_script 3, SootopolisCity_MapScript1_1E56EF
	map_script 5, SootopolisCity_MapScript1_1E590B
	map_script 2, SootopolisCity_MapScript2_1E5914
	map_script 4, SootopolisCity_MapScript2_1E58DB
	.byte 0

SootopolisCity_MapScript1_1E5676: @ 81E5676
	checkflag FLAG_0x09E
	call_if 0, SootopolisCity_EventScript_1E56E5
	checkflag FLAG_0x081
	goto_if 0, SootopolisCity_EventScript_1E5692
	checkflag FLAG_0x09E
	call_if 0, SootopolisCity_EventScript_1E5693
	end

SootopolisCity_EventScript_1E5692:: @ 81E5692
	end

SootopolisCity_EventScript_1E5693:: @ 81E5693
	setmetatile 9, 6, 584, 1
	setmetatile 9, 17, 584, 1
	setmetatile 9, 26, 584, 1
	setmetatile 44, 17, 584, 1
	setmetatile 8, 35, 584, 1
	setmetatile 53, 28, 584, 1
	setmetatile 45, 6, 584, 1
	setmetatile 48, 25, 584, 1
	setmetatile 51, 36, 584, 1
	return

SootopolisCity_EventScript_1E56E5:: @ 81E56E5
	setmetatile 31, 32, 592, 1
	return

SootopolisCity_MapScript1_1E56EF: @ 81E56EF
	setflag FLAG_VISITED_SOOTOPOLIS_CITY
	compare_var_to_value VAR_0x405E, 1
	call_if 1, SootopolisCity_EventScript_1E5781
	compare_var_to_value VAR_0x40CA, 1
	call_if 1, SootopolisCity_EventScript_1E5781
	call SootopolisCity_EventScript_1E5805
	call SootopolisCity_EventScript_1E57B2
	compare_var_to_value VAR_0x405E, 1
	call_if 1, SootopolisCity_EventScript_1E5785
	compare_var_to_value VAR_0x405E, 2
	call_if 1, SootopolisCity_EventScript_1E5785
	compare_var_to_value VAR_0x405E, 3
	call_if 1, SootopolisCity_EventScript_1E5785
	compare_var_to_value VAR_0x405E, 4
	call_if 1, SootopolisCity_EventScript_1E5785
	compare_var_to_value VAR_0x405E, 5
	call_if 1, SootopolisCity_EventScript_1E5785
	compare_var_to_value VAR_0x405E, 2
	call_if 1, SootopolisCity_EventScript_1E5842
	compare_var_to_value VAR_0x405E, 3
	call_if 1, SootopolisCity_EventScript_1E5842
	compare_var_to_value VAR_0x405E, 4
	call_if 1, SootopolisCity_EventScript_1E585B
	compare_var_to_value VAR_0x405E, 5
	call_if 1, SootopolisCity_EventScript_1E5871
	compare_var_to_value VAR_0x405E, 6
	call_if 1, SootopolisCity_EventScript_1E58D3
	end

SootopolisCity_EventScript_1E5781:: @ 81E5781
	setflag FLAG_SPECIAL_FLAG_0x4000
	return

SootopolisCity_EventScript_1E5785:: @ 81E5785
	setobjectxyperm 3, 13, 48
	setobjectxyperm 5, 46, 32
	setobjectxyperm 4, 48, 41
	setobjectxyperm 8, 45, 43
	setobjectmovementtype 3, 7
	setobjectmovementtype 5, 9
	setobjectmovementtype 4, 9
	setobjectmovementtype 8, 9
	return

SootopolisCity_EventScript_1E57B2:: @ 81E57B2
	compare_var_to_value VAR_0x405E, 0
	goto_eq SootopolisCity_EventScript_1E5800
	compare_var_to_value VAR_0x405E, 6
	goto_if 4, SootopolisCity_EventScript_1E5800
	compare_var_to_value VAR_0x405E, 1
	goto_eq SootopolisCity_EventScript_1E5801
	compare_var_to_value VAR_0x405E, 2
	goto_eq SootopolisCity_EventScript_1E5801
	compare_var_to_value VAR_0x405E, 3
	goto_eq SootopolisCity_EventScript_1E5801
	compare_var_to_value VAR_0x405E, 4
	goto_eq SootopolisCity_EventScript_1E5801
	compare_var_to_value VAR_0x40CA, 1
	goto_if 3, SootopolisCity_EventScript_1E5801
	return

SootopolisCity_EventScript_1E5800:: @ 81E5800
	return

SootopolisCity_EventScript_1E5801:: @ 81E5801
	setmaplayoutindex 357
	return

SootopolisCity_EventScript_1E5805:: @ 81E5805
	compare_var_to_value VAR_0x405E, 0
	goto_eq SootopolisCity_EventScript_1E583D
	compare_var_to_value VAR_0x405E, 6
	goto_if 4, SootopolisCity_EventScript_1E583D
	compare_var_to_value VAR_0x405E, 1
	goto_eq SootopolisCity_EventScript_1E583E
	compare_var_to_value VAR_0x40CA, 1
	goto_eq SootopolisCity_EventScript_1E583E
	compare_var_to_value VAR_0x40CA, 1
	goto_if 3, SootopolisCity_EventScript_27207A
	return

SootopolisCity_EventScript_1E583D:: @ 81E583D
	return

SootopolisCity_EventScript_1E583E:: @ 81E583E
	setweather 13
	return

SootopolisCity_EventScript_1E5842:: @ 81E5842
	checkflag FLAG_0x133
	goto_eq SootopolisCity_EventScript_1E584C
	return

SootopolisCity_EventScript_1E584C:: @ 81E584C
	setobjectxyperm 1, 30, 18
	setobjectxyperm 7, 32, 18
	return

SootopolisCity_EventScript_1E585B:: @ 81E585B
	setobjectxyperm 1, 30, 18
	setobjectxyperm 18, 31, 18
	setobjectxyperm 7, 32, 18
	end

SootopolisCity_EventScript_1E5871:: @ 81E5871
	setobjectxyperm 1, 31, 18
	setobjectxyperm 7, 29, 33
	setobjectxyperm 16, 33, 35
	setobjectxyperm 17, 34, 35
	compare_var_to_value VAR_0x40D8, 0
	call_if 1, SootopolisCity_EventScript_1E58AF
	compare_var_to_value VAR_0x40D8, 1
	call_if 1, SootopolisCity_EventScript_1E58BB
	compare_var_to_value VAR_0x40D8, 2
	call_if 1, SootopolisCity_EventScript_1E58C7
	return

SootopolisCity_EventScript_1E58AF:: @ 81E58AF
	setobjectxyperm 18, 31, 33
	setobjectmovementtype 18, 8
	return

SootopolisCity_EventScript_1E58BB:: @ 81E58BB
	setobjectxyperm 18, 32, 33
	setobjectmovementtype 18, 8
	return

SootopolisCity_EventScript_1E58C7:: @ 81E58C7
	setobjectxyperm 18, 30, 33
	setobjectmovementtype 18, 8
	return

SootopolisCity_EventScript_1E58D3:: @ 81E58D3
	setobjectxyperm 1, 31, 18
	return

SootopolisCity_MapScript2_1E58DB: @ 81E58DB
	map_script_2 VAR_0x405E, 5, SootopolisCity_EventScript_1E58E5
	.2byte 0

SootopolisCity_EventScript_1E58E5:: @ 81E58E5
	compare_var_to_value VAR_0x40CA, 1
	call_if 1, SootopolisCity_EventScript_1E58FC
	compare_var_to_value VAR_0x40CA, 2
	call_if 1, SootopolisCity_EventScript_1E5901
	end

SootopolisCity_EventScript_1E58FC:: @ 81E58FC
	turnobject 255, 2
	return

SootopolisCity_EventScript_1E5901:: @ 81E5901
	turnobject 255, 2
	setvar VAR_0x40CA, 3
	return

SootopolisCity_MapScript1_1E590B: @ 81E590B
	setdivewarp UNDERWATER_SOOTOPOLIS_CITY, 255, 9, 6
	end

SootopolisCity_MapScript2_1E5914: @ 81E5914
	map_script_2 VAR_0x405E, 1, SootopolisCity_EventScript_1E5926
	map_script_2 VAR_0x40CA, 1, SootopolisCity_EventScript_1E5BFE
	.2byte 0

SootopolisCity_EventScript_1E5926:: @ 81E5926
	lockall
	special sub_8138AD0
	compare_var_to_value VAR_0x8004, 43
	goto_if 5, SootopolisCity_EventScript_1E5A82
	compare_var_to_value VAR_0x8005, 32
	goto_if 5, SootopolisCity_EventScript_1E5A82
	goto SootopolisCity_EventScript_1E5946
	end

SootopolisCity_EventScript_1E5946:: @ 81E5946
	delay 60
	special SpawnScriptFieldObject
	applymovement 127, SootopolisCity_Movement_1E5A68
	waitmovement 0
	special RemoveScriptFieldObject
	delay 60
	fadescreenspeed 1, 8
	setweather 15
	doweather
	setvar VAR_0x8004, 0
	special sub_813B7D8
	waitstate
	applymovement 10, SootopolisCity_Movement_2725A4
	applymovement 9, SootopolisCity_Movement_2725A8
	waitmovement 0
	delay 60
	waitse
	playmoncry SPECIES_KYOGRE, 2
	applymovement 10, SootopolisCity_Movement_1E5BB8
	applymovement 9, SootopolisCity_Movement_1E5BE5
	waitmovement 0
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 5
	special sub_8139560
	waitstate
	applymovement 10, SootopolisCity_Movement_1E5BCF
	applymovement 9, SootopolisCity_Movement_1E5BF0
	waitmovement 0
	waitse
	playmoncry SPECIES_GROUDON, 2
	applymovement 10, SootopolisCity_Movement_1E5BC2
	applymovement 9, SootopolisCity_Movement_1E5BDD
	waitmovement 0
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 5
	special sub_8139560
	waitstate
	applymovement 10, SootopolisCity_Movement_1E5BCF
	applymovement 9, SootopolisCity_Movement_1E5BF0
	waitmovement 0
	waitse
	playmoncry SPECIES_KYOGRE, 2
	applymovement 10, SootopolisCity_Movement_1E5BB8
	applymovement 9, SootopolisCity_Movement_1E5BE5
	waitmovement 0
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 5
	special sub_8139560
	waitstate
	applymovement 10, SootopolisCity_Movement_1E5BCF
	applymovement 9, SootopolisCity_Movement_1E5BF0
	waitmovement 0
	special SpawnScriptFieldObject
	applymovement 10, SootopolisCity_Movement_1E5BD6
	applymovement 9, SootopolisCity_Movement_1E5BF7
	applymovement 127, SootopolisCity_Movement_1E5A75
	waitmovement 0
	special RemoveScriptFieldObject
	setvar VAR_0x405E, 2
	clearflag FLAG_SPECIAL_FLAG_0x4000
	releaseall
	end

SootopolisCity_Movement_1E5A68: @ 81E5A68
	step_92
	step_92
	step_92
	step_92
	step_92
	step_92
	step_92
	step_92
	step_92
	step_92
	step_92
	step_92
	step_end

SootopolisCity_Movement_1E5A75: @ 81E5A75
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_end

SootopolisCity_EventScript_1E5A82:: @ 81E5A82
	delay 60
	special SpawnScriptFieldObject
	applymovement 127, SootopolisCity_Movement_1E5BA4
	waitmovement 0
	special RemoveScriptFieldObject
	delay 60
	fadescreenspeed 1, 8
	setweather 15
	doweather
	setvar VAR_0x8004, 0
	special sub_813B7D8
	waitstate
	applymovement 10, SootopolisCity_Movement_2725A4
	applymovement 9, SootopolisCity_Movement_2725A8
	waitmovement 0
	delay 60
	waitse
	playmoncry SPECIES_KYOGRE, 2
	applymovement 10, SootopolisCity_Movement_1E5BB8
	applymovement 9, SootopolisCity_Movement_1E5BE5
	waitmovement 0
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 5
	special sub_8139560
	waitstate
	applymovement 10, SootopolisCity_Movement_1E5BCF
	applymovement 9, SootopolisCity_Movement_1E5BF0
	waitmovement 0
	waitse
	playmoncry SPECIES_GROUDON, 2
	applymovement 10, SootopolisCity_Movement_1E5BC2
	applymovement 9, SootopolisCity_Movement_1E5BDD
	waitmovement 0
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 5
	special sub_8139560
	waitstate
	applymovement 10, SootopolisCity_Movement_1E5BCF
	applymovement 9, SootopolisCity_Movement_1E5BF0
	waitmovement 0
	waitse
	playmoncry SPECIES_KYOGRE, 2
	applymovement 10, SootopolisCity_Movement_1E5BB8
	applymovement 9, SootopolisCity_Movement_1E5BE5
	waitmovement 0
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 5
	special sub_8139560
	waitstate
	applymovement 10, SootopolisCity_Movement_1E5BCF
	applymovement 9, SootopolisCity_Movement_1E5BF0
	waitmovement 0
	special SpawnScriptFieldObject
	applymovement 10, SootopolisCity_Movement_1E5BD6
	applymovement 9, SootopolisCity_Movement_1E5BF7
	applymovement 127, SootopolisCity_Movement_1E5BAE
	waitmovement 0
	special RemoveScriptFieldObject
	setvar VAR_0x405E, 2
	clearflag FLAG_SPECIAL_FLAG_0x4000
	releaseall
	end

SootopolisCity_Movement_1E5BA4: @ 81E5BA4
	step_91
	step_91
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_end

SootopolisCity_Movement_1E5BAE: @ 81E5BAE
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_92
	step_92
	step_end

SootopolisCity_Movement_1E5BB8: @ 81E5BB8
	step_1b
	step_1b
	step_1b
	step_14
	step_14
	step_14
	step_5e
	step_96
	step_5f
	step_end

SootopolisCity_Movement_1E5BC2: @ 81E5BC2
	step_14
	step_14
	step_14
	step_14
	step_14
	step_14
	step_14
	step_14
	step_14
	step_5e
	step_96
	step_5f
	step_end

SootopolisCity_Movement_1E5BCF: @ 81E5BCF
	step_40
	step_right
	step_14
	step_14
	step_14
	step_41
	step_end

SootopolisCity_Movement_1E5BD6: @ 81E5BD6
	step_1b
	step_1b
	step_1b
	step_1b
	step_1b
	step_1b
	step_end

SootopolisCity_Movement_1E5BDD: @ 81E5BDD
	step_1c
	step_1c
	step_1c
	step_14
	step_14
	step_14
	step_18
	step_end

SootopolisCity_Movement_1E5BE5: @ 81E5BE5
	step_14
	step_14
	step_14
	step_14
	step_14
	step_14
	step_14
	step_14
	step_14
	step_18
	step_end

SootopolisCity_Movement_1E5BF0: @ 81E5BF0
	step_40
	step_left
	step_14
	step_14
	step_14
	step_41
	step_end

SootopolisCity_Movement_1E5BF7: @ 81E5BF7
	step_1c
	step_1c
	step_1c
	step_1c
	step_1c
	step_1c
	step_end

SootopolisCity_EventScript_1E5BFE:: @ 81E5BFE
	lockall
	special sub_8138AD0
	compare_var_to_value VAR_0x8004, 43
	goto_if 5, SootopolisCity_EventScript_1E5CCE
	compare_var_to_value VAR_0x8005, 32
	goto_if 5, SootopolisCity_EventScript_1E5CCE
	goto SootopolisCity_EventScript_1E5C1E
	end

SootopolisCity_EventScript_1E5C1E:: @ 81E5C1E
	delay 60
	special SpawnScriptFieldObject
	applymovement 127, SootopolisCity_Movement_1E5A68
	waitmovement 0
	special RemoveScriptFieldObject
	delay 60
	fadescreenspeed 1, 8
	call SootopolisCity_EventScript_1E5D82
	removeobject 9
	removeobject 10
	addobject 11
	setvar VAR_0x8004, 1
	special sub_813B7D8
	waitstate
	playse SE_T_KAMI
	special SpawnScriptFieldObject
	applymovement 127, SootopolisCity_Movement_1E5E63
	waitmovement 0
	waitse
	playmoncry SPECIES_RAYQUAZA, 2
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 3
	special sub_8139560
	waitstate
	waitse
	playmoncry SPECIES_RAYQUAZA, 2
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 2
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 5
	special sub_8139560
	waitstate
	waitmoncry
	setweather 0
	doweather
	applymovement 11, SootopolisCity_Movement_1E5E5B
	waitmovement 0
	removeobject 11
	special sub_81379F8
	waitstate
	clearflag FLAG_SYS_WEATHER_CTRL
	setvar VAR_0x40CA, 3
	clearflag FLAG_0x053
	fadenewbgm BGM_RUNECITY
	delay 120
	clearflag FLAG_SPECIAL_FLAG_0x4000
	warp8 SOOTOPOLIS_CITY, 255, 43, 32
	waitstate
	end

SootopolisCity_EventScript_1E5CCE:: @ 81E5CCE
	delay 60
	special SpawnScriptFieldObject
	applymovement 127, SootopolisCity_Movement_1E5BA4
	waitmovement 0
	special RemoveScriptFieldObject
	delay 60
	fadescreenspeed 1, 8
	call SootopolisCity_EventScript_1E5D82
	removeobject 9
	removeobject 10
	addobject 11
	setvar VAR_0x8004, 1
	special sub_813B7D8
	waitstate
	special SpawnScriptFieldObject
	applymovement 127, SootopolisCity_Movement_1E5E63
	applymovement 255, SootopolisCity_Movement_1E5E68
	waitmovement 0
	waitse
	playmoncry SPECIES_RAYQUAZA, 2
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 3
	special sub_8139560
	waitstate
	waitse
	playmoncry SPECIES_RAYQUAZA, 2
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 2
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 5
	special sub_8139560
	waitstate
	waitmoncry
	setweather 0
	doweather
	applymovement 11, SootopolisCity_Movement_1E5E5B
	waitmovement 0
	removeobject 11
	special sub_81379F8
	waitstate
	clearflag FLAG_SYS_WEATHER_CTRL
	setvar VAR_0x40CA, 2
	clearflag FLAG_0x053
	fadenewbgm BGM_NAMINORI
	delay 120
	clearflag FLAG_SPECIAL_FLAG_0x4000
	warp8 SOOTOPOLIS_CITY, 255, 29, 53
	waitstate
	end

SootopolisCity_EventScript_1E5D82:: @ 81E5D82
	setmetatile 27, 43, 656, 0
	setmetatile 28, 43, 656, 0
	setmetatile 29, 43, 656, 0
	setmetatile 30, 43, 656, 0
	setmetatile 27, 44, 656, 0
	setmetatile 28, 44, 656, 0
	setmetatile 29, 44, 656, 0
	setmetatile 30, 44, 656, 0
	setmetatile 27, 45, 656, 0
	setmetatile 28, 45, 656, 0
	setmetatile 29, 45, 656, 0
	setmetatile 30, 45, 656, 0
	setmetatile 32, 43, 656, 0
	setmetatile 33, 43, 656, 0
	setmetatile 34, 43, 656, 0
	setmetatile 35, 43, 656, 0
	setmetatile 32, 44, 656, 0
	setmetatile 33, 44, 656, 0
	setmetatile 34, 44, 656, 0
	setmetatile 35, 44, 656, 0
	setmetatile 32, 45, 656, 0
	setmetatile 33, 45, 656, 0
	setmetatile 34, 45, 656, 0
	setmetatile 35, 45, 656, 0
	return

SootopolisCity_Movement_1E5E5B: @ 81E5E5B
	step_16
	step_2e
	step_2e
	step_2e
	step_2e
	step_2e
	step_2e
	step_end

SootopolisCity_Movement_1E5E63: @ 81E5E63
	step_up
	step_up
	step_up
	step_up
	step_end

SootopolisCity_Movement_1E5E68: @ 81E5E68
	step_up
	step_up
	step_up
	step_up
	step_end

SootopolisCity_Movement_1E5E6D: @ 81E5E6D
	step_down
	step_down
	step_down
	step_down
	step_end

SootopolisCity_Movement_1E5E72: @ 81E5E72
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_91
	step_right
	step_right
	step_right
	step_right
	step_end

SootopolisCity_Movement_1E5E7F: @ 81E5E7F
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_92
	step_92
	step_end

SootopolisCity_EventScript_1E5E8D:: @ 81E5E8D
	lock
	faceplayer
	compare_var_to_value VAR_0x405E, 6
	goto_if 4, SootopolisCity_EventScript_1E5EC4
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E5ECE
	compare_var_to_value VAR_0x405E, 2
	goto_if 4, SootopolisCity_EventScript_1E5EBA
	msgbox SootopolisCity_Text_1E6D77, 4
	release
	end

SootopolisCity_EventScript_1E5EBA:: @ 81E5EBA
	msgbox SootopolisCity_Text_1E6DFE, 4
	release
	end

SootopolisCity_EventScript_1E5EC4:: @ 81E5EC4
	msgbox SootopolisCity_Text_1E6F38, 4
	release
	end

SootopolisCity_EventScript_1E5ECE:: @ 81E5ECE
	msgbox SootopolisCity_Text_1E6ED4, 4
	release
	end

SootopolisCity_EventScript_1E5ED8:: @ 81E5ED8
	lock
	faceplayer
	compare_var_to_value VAR_0x405E, 1
	goto_if 3, SootopolisCity_EventScript_1E5F1B
	compare_var_to_value VAR_0x405E, 6
	goto_if 4, SootopolisCity_EventScript_1E5F1B
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E5F10
	msgbox SootopolisCity_Text_1E6BFF, 4
	closemessage
	applymovement 3, SootopolisCity_Movement_2725A2
	waitmovement 0
	release
	end

SootopolisCity_EventScript_1E5F10:: @ 81E5F10
	msgbox SootopolisCity_Text_1E6C53, 4
	closemessage
	release
	end

SootopolisCity_EventScript_1E5F1B:: @ 81E5F1B
	dodailyevents
	special sub_8138B10
	checkflag FLAG_0x932
	goto_eq SootopolisCity_EventScript_1E5FBB
	msgbox SootopolisCity_Text_2A7BB0, 4
	random 10
	addvar VAR_RESULT, 20
	addvar VAR_RESULT, 133
	giveitem_std VAR_RESULT
	compare_var_to_value VAR_RESULT, 0
	goto_eq SootopolisCity_EventScript_272054
	setflag FLAG_0x932
	msgbox SootopolisCity_Text_2A7C7C, 4
	random 2
	compare_var_to_value VAR_RESULT, 0
	goto_eq SootopolisCity_EventScript_1E5F79
	compare_var_to_value VAR_RESULT, 1
	goto_eq SootopolisCity_EventScript_1E5F9A
	end

SootopolisCity_EventScript_1E5F79:: @ 81E5F79
	giveitem_std ITEM_FIGY_BERRY
	compare_var_to_value VAR_RESULT, 0
	goto_eq SootopolisCity_EventScript_272054
	msgbox SootopolisCity_Text_2A7CB7, 4
	release
	end

SootopolisCity_EventScript_1E5F9A:: @ 81E5F9A
	giveitem_std ITEM_IAPAPA_BERRY
	compare_var_to_value VAR_RESULT, 0
	goto_eq SootopolisCity_EventScript_272054
	msgbox SootopolisCity_Text_2A7CB7, 4
	release
	end

SootopolisCity_EventScript_1E5FBB:: @ 81E5FBB
	msgbox SootopolisCity_Text_2A7CEC, 5
	compare_var_to_value VAR_RESULT, 1
	goto_eq SootopolisCity_EventScript_1E5FD8
	msgbox SootopolisCity_Text_2A7DD2, 4
	release
	end

SootopolisCity_EventScript_1E5FD8:: @ 81E5FD8
	msgbox SootopolisCity_Text_2A7D80, 4
	release
	end

SootopolisCity_EventScript_1E5FE2:: @ 81E5FE2
	lockall
	applymovement 2, SootopolisCity_Movement_27259E
	waitmovement 0
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E600D
	msgbox SootopolisCity_Text_1E71A1, 4
	closemessage
	applymovement 2, SootopolisCity_Movement_2725A2
	waitmovement 0
	releaseall
	end

SootopolisCity_EventScript_1E600D:: @ 81E600D
	msgbox SootopolisCity_Text_1E728C, 4
	releaseall
	end

SootopolisCity_EventScript_1E6017:: @ 81E6017
	lock
	faceplayer
	compare_var_to_value VAR_0x405E, 6
	goto_if 4, SootopolisCity_EventScript_1E602E
	msgbox SootopolisCity_Text_1E6CCA, 4
	release
	end

SootopolisCity_EventScript_1E602E:: @ 81E602E
	msgbox SootopolisCity_Text_1E6D57, 4
	release
	end

SootopolisCity_EventScript_1E6038:: @ 81E6038
	lock
	faceplayer
	compare_var_to_value VAR_0x405E, 6
	goto_if 4, SootopolisCity_EventScript_1E607A
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E6084
	compare_var_to_value VAR_0x405E, 2
	goto_if 4, SootopolisCity_EventScript_1E6065
	msgbox SootopolisCity_Text_1E6F90, 4
	release
	end

SootopolisCity_EventScript_1E6065:: @ 81E6065
	msgbox SootopolisCity_Text_1E7078, 4
	closemessage
	applymovement 8, SootopolisCity_Movement_2725A2
	waitmovement 0
	release
	end

SootopolisCity_EventScript_1E607A:: @ 81E607A
	msgbox SootopolisCity_Text_1E710B, 4
	release
	end

SootopolisCity_EventScript_1E6084:: @ 81E6084
	msgbox SootopolisCity_Text_1E70D4, 4
	release
	end

SootopolisCity_EventScript_1E608E:: @ 81E608E
	lockall
	applymovement 4, SootopolisCity_Movement_27259E
	waitmovement 0
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E60D9
	compare_var_to_value VAR_0x405E, 6
	goto_if 4, SootopolisCity_EventScript_1E60CF
	compare_var_to_value VAR_0x405E, 1
	goto_if 3, SootopolisCity_EventScript_1E60CF
	msgbox SootopolisCity_Text_1E690B, 4
	closemessage
	applymovement 4, SootopolisCity_Movement_2725A2
	waitmovement 0
	release
	end

SootopolisCity_EventScript_1E60CF:: @ 81E60CF
	msgbox SootopolisCity_Text_1E68A1, 4
	release
	end

SootopolisCity_EventScript_1E60D9:: @ 81E60D9
	msgbox SootopolisCity_Text_1E6920, 4
	release
	end

SootopolisCity_EventScript_1E60E3:: @ 81E60E3
	lockall
	applymovement 5, SootopolisCity_Movement_27259E
	waitmovement 0
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E612D
	checkflag FLAG_SYS_GAME_CLEAR
	goto_eq SootopolisCity_EventScript_1E6137
	compare_var_to_value VAR_0x405E, 6
	goto_if 4, SootopolisCity_EventScript_1E6141
	compare_var_to_value VAR_0x405E, 1
	goto_if 3, SootopolisCity_EventScript_1E6141
	msgbox SootopolisCity_Text_1E6692, 4
	closemessage
	applymovement 5, SootopolisCity_Movement_2725A2
	waitmovement 0
	release
	end

SootopolisCity_EventScript_1E612D:: @ 81E612D
	msgbox SootopolisCity_Text_1E6750, 4
	release
	end

SootopolisCity_EventScript_1E6137:: @ 81E6137
	msgbox SootopolisCity_Text_1E677F, 4
	release
	end

SootopolisCity_EventScript_1E6141:: @ 81E6141
	msgbox SootopolisCity_Text_1E6618, 4
	release
	end

SootopolisCity_EventScript_1E614B:: @ 81E614B
	msgbox SootopolisCity_Text_1E656F, 3
	end

SootopolisCity_EventScript_1E6154:: @ 81E6154
	msgbox SootopolisCity_Text_1E65C8, 3
	end

SootopolisCity_EventScript_1E615D:: @ 81E615D
	msgbox SootopolisCity_Text_1E6604, 3
	end

SootopolisCity_EventScript_1E6166:: @ 81E6166
	lockall
	applymovement 7, SootopolisCity_Movement_27259E
	waitmovement 0
	checkflag FLAG_0x133
	call_if 0, SootopolisCity_EventScript_1E61CC
	compare_var_to_value VAR_0x405E, 2
	goto_eq SootopolisCity_EventScript_1E61AE
	compare_var_to_value VAR_0x405E, 3
	goto_eq SootopolisCity_EventScript_1E61C2
	compare_var_to_value VAR_0x405E, 4
	goto_eq SootopolisCity_EventScript_1E61C2
	checkflag FLAG_0x09E
	goto_eq SootopolisCity_EventScript_1E61B8
	msgbox SootopolisCity_Text_1E78E5, 4
	releaseall
	end

SootopolisCity_EventScript_1E61AE:: @ 81E61AE
	msgbox SootopolisCity_Text_1E7866, 4
	releaseall
	end

SootopolisCity_EventScript_1E61B8:: @ 81E61B8
	msgbox SootopolisCity_Text_1E794B, 4
	releaseall
	end

SootopolisCity_EventScript_1E61C2:: @ 81E61C2
	msgbox SootopolisCity_Text_1E789A, 4
	releaseall
	end

SootopolisCity_EventScript_1E61CC:: @ 81E61CC
	msgbox SootopolisCity_Text_1E75CB, 4
	closemessage
	compare_var_to_value VAR_FACING, 3
	call_if 1, SootopolisCity_EventScript_1E6243
	compare_var_to_value VAR_FACING, 2
	call_if 1, SootopolisCity_EventScript_1E6255
	msgbox SootopolisCity_Text_1E7737, 4
	closemessage
	applymovement 7, SootopolisCity_Movement_1E62D4
	applymovement 255, SootopolisCity_Movement_1E630E
	waitmovement 0
	delay 120
	applymovement 1, SootopolisCity_Movement_1E6341
	waitmovement 0
	applymovement 7, SootopolisCity_Movement_1E6344
	applymovement 255, SootopolisCity_Movement_1E634F
	waitmovement 0
	msgbox SootopolisCity_Text_1E77F0, 4
	closemessage
	setflag FLAG_0x133
	applymovement 255, SootopolisCity_Movement_1E635A
	waitmovement 0
	warp CAVE_OF_ORIGIN_ENTRANCE, 255, 9, 20
	waitstate
	end

SootopolisCity_EventScript_1E6243:: @ 81E6243
	applymovement 7, SootopolisCity_Movement_1E6267
	applymovement 255, SootopolisCity_Movement_1E628C
	waitmovement 0
	return

SootopolisCity_EventScript_1E6255:: @ 81E6255
	applymovement 7, SootopolisCity_Movement_1E6267
	applymovement 255, SootopolisCity_Movement_1E62B0
	waitmovement 0
	return

SootopolisCity_Movement_1E6267: @ 81E6267
	step_up
	step_up
	step_up
	step_right
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_left
	step_up
	step_up
	step_up
	step_up
	step_left
	step_left
	step_left
	step_left
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_25
	step_end

SootopolisCity_Movement_1E628C: @ 81E628C
	step_left
	step_up
	step_up
	step_up
	step_right
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_left
	step_up
	step_up
	step_up
	step_up
	step_left
	step_left
	step_left
	step_left
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_end

SootopolisCity_Movement_1E62B0: @ 81E62B0
	step_up
	step_up
	step_up
	step_up
	step_right
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_left
	step_up
	step_up
	step_up
	step_up
	step_left
	step_left
	step_left
	step_left
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_end

SootopolisCity_Movement_1E62D4: @ 81E62D4
	step_up
	step_up
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_right
	step_right
	step_right
	step_right
	step_right
	step_up
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_down
	step_right
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_down
	step_down
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_right
	step_right
	step_right
	step_right
	step_12
	step_27
	step_14
	step_14
	step_right
	step_up
	step_up
	step_end

SootopolisCity_Movement_1E630E: @ 81E630E
	step_up
	step_up
	step_up
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_right
	step_right
	step_right
	step_right
	step_right
	step_up
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_down
	step_right
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_down
	step_down
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_right
	step_right
	step_right
	step_end

SootopolisCity_Movement_1E6341: @ 81E6341
	slow_step_left
	step_28
	step_end

SootopolisCity_Movement_1E6344: @ 81E6344
	step_down
	step_down
	step_left
	step_13
	step_right
	step_up
	step_up
	step_up
	step_right
	step_27
	step_end

SootopolisCity_Movement_1E634F: @ 81E634F
	step_14
	step_14
	step_14
	step_13
	step_right
	step_right
	step_up
	step_up
	step_up
	step_28
	step_end

SootopolisCity_Movement_1E635A: @ 81E635A
	step_up
	step_up
	step_end

SootopolisCity_EventScript_1E635D:: @ 81E635D
	lockall
	applymovement 15, SootopolisCity_Movement_27259E
	waitmovement 0
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E6388
	msgbox SootopolisCity_Text_1E67DC, 4
	closemessage
	applymovement 15, SootopolisCity_Movement_2725A2
	waitmovement 0
	releaseall
	end

SootopolisCity_EventScript_1E6388:: @ 81E6388
	msgbox SootopolisCity_Text_1E6853, 4
	closemessage
	releaseall
	end

SootopolisCity_EventScript_1E6393:: @ 81E6393
	lockall
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E63C7
	msgbox SootopolisCity_Text_1E6936, 4
	closemessage
	applymovement 14, SootopolisCity_Movement_27259E
	waitmovement 0
	msgbox SootopolisCity_Text_1E696C, 4
	closemessage
	applymovement 14, SootopolisCity_Movement_2725A2
	waitmovement 0
	releaseall
	end

SootopolisCity_EventScript_1E63C7:: @ 81E63C7
	applymovement 14, SootopolisCity_Movement_27259E
	waitmovement 0
	msgbox SootopolisCity_Text_1E69B8, 4
	releaseall
	end

SootopolisCity_EventScript_1E63DB:: @ 81E63DB
	lockall
	applymovement 13, SootopolisCity_Movement_27259E
	waitmovement 0
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E6406
	msgbox SootopolisCity_Text_1E6C7C, 4
	closemessage
	applymovement 13, SootopolisCity_Movement_2725A2
	waitmovement 0
	releaseall
	end

SootopolisCity_EventScript_1E6406:: @ 81E6406
	msgbox SootopolisCity_Text_1E6CA6, 4
	closemessage
	releaseall
	end

SootopolisCity_EventScript_1E6411:: @ 81E6411
	lockall
	applymovement 12, SootopolisCity_Movement_27259E
	waitmovement 0
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E643C
	msgbox SootopolisCity_Text_1E6A50, 4
	closemessage
	applymovement 12, SootopolisCity_Movement_2725A2
	waitmovement 0
	releaseall
	end

SootopolisCity_EventScript_1E643C:: @ 81E643C
	msgbox SootopolisCity_Text_1E6B2A, 4
	releaseall
	end

SootopolisCity_EventScript_1E6446:: @ 81E6446
	lock
	faceplayer
	compare_var_to_value VAR_0x405E, 4
	goto_eq SootopolisCity_EventScript_1E64D8
	checkflag FLAG_0x138
	goto_eq SootopolisCity_EventScript_1E64E2
	checkflag FLAG_0x09E
	goto_eq SootopolisCity_EventScript_1E646F
	msgbox SootopolisCity_Text_1E7A3E, 4
	release
	end

SootopolisCity_EventScript_1E646F:: @ 81E646F
	msgbox SootopolisCity_Text_1E7ACF, 4
	giveitem_std ITEM_HM07
	setflag FLAG_0x138
	msgbox SootopolisCity_Text_1E7B86, 4
	closemessage
	compare_var_to_value VAR_FACING, 2
	call_if 1, SootopolisCity_EventScript_1E64B2
	compare_var_to_value VAR_FACING, 4
	call_if 1, SootopolisCity_EventScript_1E64B2
	compare_var_to_value VAR_FACING, 3
	call_if 1, SootopolisCity_EventScript_1E64C5
	release
	end

SootopolisCity_EventScript_1E64B2:: @ 81E64B2
	applymovement 18, SootopolisCity_Movement_1E64EC
	waitmovement 0
	moveobjectoffscreen 18
	setvar VAR_0x40D8, 1
	return

SootopolisCity_EventScript_1E64C5:: @ 81E64C5
	applymovement 18, SootopolisCity_Movement_1E64EF
	waitmovement 0
	moveobjectoffscreen 18
	setvar VAR_0x40D8, 2
	return

SootopolisCity_EventScript_1E64D8:: @ 81E64D8
	msgbox SootopolisCity_Text_1E79C8, 4
	release
	end

SootopolisCity_EventScript_1E64E2:: @ 81E64E2
	msgbox SootopolisCity_Text_1E7CBC, 4
	release
	end

SootopolisCity_Movement_1E64EC: @ 81E64EC
	step_right
	step_25
	step_end

SootopolisCity_Movement_1E64EF: @ 81E64EF
	step_left
	step_25
	step_end

SootopolisCity_EventScript_1E64F2:: @ 81E64F2
	lockall
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E6509
	msgbox SootopolisCity_Text_1E72DB, 4
	closemessage
	releaseall
	end

SootopolisCity_EventScript_1E6509:: @ 81E6509
	msgbox SootopolisCity_Text_1E737E, 4
	setflag FLAG_0x135
	checkflag FLAG_0x134
	goto_eq SootopolisCity_EventScript_1E654C
	releaseall
	end

SootopolisCity_EventScript_1E651F:: @ 81E651F
	lockall
	compare_var_to_value VAR_0x405E, 5
	goto_eq SootopolisCity_EventScript_1E6536
	msgbox SootopolisCity_Text_1E7460, 4
	closemessage
	releaseall
	end

SootopolisCity_EventScript_1E6536:: @ 81E6536
	msgbox SootopolisCity_Text_1E74F6, 4
	setflag FLAG_0x134
	checkflag FLAG_0x135
	goto_eq SootopolisCity_EventScript_1E654C
	releaseall
	end

SootopolisCity_EventScript_1E654C:: @ 81E654C
	setflag FLAG_0x33B
	setflag FLAG_0x33A
	setflag FLAG_0x09E
	clearflag FLAG_0x358
	clearflag FLAG_0x394
	setvar VAR_0x40B9, 2
	warpsilent SOOTOPOLIS_CITY, 255, 31, 34
	waitstate
	releaseall
	end

SootopolisCity_Movement_1E656B:: @ 81E656B
	step_98
	step_end

SootopolisCity_Movement_1E656D:: @ 81E656D
	step_9A
	step_end

SootopolisCity_Text_1E656F: @ 81E656F
	.string "SOOTOPOLIS CITY POKéMON GYM\n"
	.string "LEADER: JUAN\p"
	.string "“The GYM LEADER with the beauty\n"
	.string "of pure water!”$"

SootopolisCity_Text_1E65C8: @ 81E65C8
	.string "SOOTOPOLIS CITY\p"
	.string "“The mystical city where history\n"
	.string "slumbers.”$"


SootopolisCity_Text_1E6604: @ 81E6604
	.string "The door is closed.$"

SootopolisCity_Text_1E6618: @ 81E6618
	.string "Diving in the sea. Climbing up and\n"
	.string "down stairs all the time…\p"
	.string "If you live in this town, you end up\n"
	.string "getting physically fit.$"

SootopolisCity_Text_1E6692: @ 81E6692
	.string "These giant POKéMON suddenly appeared\n"
	.string "in the middle of the city!\p"
	.string "And, I’ve never seen them before!\p"
	.string "Why are they smashing into each\n"
	.string "other like that?\p"
	.string "Why can’t they be friends, those\n"
	.string "POKéMON?$"

SootopolisCity_Text_1E6750: @ 81E6750
	.string "What? What? What?\n"
	.string "What is that green POKéMON?!$"

SootopolisCity_Text_1E677F: @ 81E677F
	.string "GROUDON and KYOGRE…\n"
	.string "Where did they go?\p"
	.string "Will they cause droughts or downpours\n"
	.string "somewhere else?$"

SootopolisCity_Text_1E67DC: @ 81E67DC
	.string "I just get this sense somehow that\n"
	.string "the two POKéMON aren’t angry.\p"
	.string "I think… They probably can’t control\n"
	.string "their own power…$"

SootopolisCity_Text_1E6853: @ 81E6853
	.string "That flying POKéMON came down from\n"
	.string "the sky and stopped the rampaging\l"
	.string "POKéMON…$"

SootopolisCity_Text_1E68A1: @ 81E68A1
	.string "I… I’ve never been out of this city.\p"
	.string "I wonder what the world is like on\n"
	.string "the other side of this round sky?$"

SootopolisCity_Text_1E690B: @ 81E690B
	.string "Wow!\n"
	.string "This is wicked!$"

SootopolisCity_Text_1E6920: @ 81E6920
	.string "Wow!\n"
	.string "That was wicked!$"

SootopolisCity_Text_1E6936: @ 81E6936
	.string "Go for it, red POKéMON!\n"
	.string "Don’t back off, blue POKéMON!$"

SootopolisCity_Text_1E696C: @ 81E696C
	.string "… … … … … …\p"
	.string "Hi, do you know the names of those\n"
	.string "POKéMON fighting over there?$"

SootopolisCity_Text_1E69B8: @ 81E69B8
	.string "I was wondering which one would win,\n"
	.string "the red one or the blue one, but, oh no,\l"
	.string "it’s the green one that settles things!\p"
	.string "Talk about a huge turn of events!$"

SootopolisCity_Text_1E6A50: @ 81E6A50
	.string "There’s an ancient legend that claims\n"
	.string "the land and sea were shaped by\l"
	.string "a colossal battle between POKéMON.\p"
	.string "Well, I’m seeing that happen with\n"
	.string "my very own eyes!\p"
	.string "Whoa! I never expected to be\n"
	.string "witness to something this huge!$"

SootopolisCity_Text_1E6B2A: @ 81E6B2A
	.string "There’s an ancient legend that claims\n"
	.string "the land and sea were shaped by\l"
	.string "a colossal battle between POKéMON.\p"
	.string "Well, I saw that happen with\n"
	.string "my very own eyes!\p"
	.string "Whoa! I never expected to be\n"
	.string "witness to something this huge!$"

SootopolisCity_Text_1E6BFF: @ 81E6BFF
	.string "A big POKéMON is fighting with\n"
	.string "another big POKéMON!\p"
	.string "Please, someone make them stop!$"

SootopolisCity_Text_1E6C53: @ 81E6C53
	.string "A pretty POKéMON came down from\n"
	.string "the sky…$"

SootopolisCity_Text_1E6C7C: @ 81E6C7C
	.string "Oh, no!\n"
	.string "SOOTOPOLIS CITY will get wrecked!$"

SootopolisCity_Text_1E6CA6: @ 81E6CA6
	.string "SOOTOPOLIS CITY didn’t get wrecked!$"

SootopolisCity_Text_1E6CCA: @ 81E6CCA
	.string "Hm!\n"
	.string "You’ve come all the way to SOOTOPOLIS?\l"
	.string "You’re no ordinary tourist.\p"
	.string "But I suppose that doesn’t make you\n"
	.string "an extraordinary tourist, either.$"

SootopolisCity_Text_1E6D57: @ 81E6D57
	.string "The city has regained its calm…$"

SootopolisCity_Text_1E6D77: @ 81E6D77
	.string "Who might you be?\p"
	.string "This is the CAVE OF ORIGIN.\p"
	.string "The spirits of POKéMON, becalmed at\n"
	.string "MT. PYRE, are said to be revived here.\p"
	.string "Please leave.$"

SootopolisCity_Text_1E6DFE: @ 81E6DFE
	.string "A person with a strong will and\n"
	.string "superior talent…\p"
	.string "A TRAINER who has knowledge and\n"
	.string "experience of many kinds of POKéMON…\p"
	.string "If such a person were to appear, I was\n"
	.string "instructed by WALLACE to lead that\l"
	.string "TRAINER to this CAVE.$"

SootopolisCity_Text_1E6ED4: @ 81E6ED4
	.string "Oh, my…\p"
	.string "The clash between the two awakened\n"
	.string "POKéMON was quelled by the awakening\l"
	.string "of a third POKéMON…$"

SootopolisCity_Text_1E6F38: @ 81E6F38
	.string "This is the CAVE OF ORIGIN…\p"
	.string "With the passing of the crisis,\n"
	.string "the cave, too, shall sleep…$"

SootopolisCity_Text_1E6F90: @ 81E6F90
	.string "SOOTOPOLIS sprang up as a town in\n"
	.string "the crater of a volcano.\p"
	.string "If you look up at the sky, the lip of\n"
	.string "the crater is also visible.\l"
	.string "So, all you see is the sky in a circle.\p"
	.string "But that’s what makes the sky above\n"
	.string "SOOTOPOLIS the most beautiful.$"

SootopolisCity_Text_1E7078: @ 81E7078
	.string "When two POKéMON that gigantic\n"
	.string "are fighting that savagely, there’s\l"
	.string "not much that we can do.$"

SootopolisCity_Text_1E70D4: @ 81E70D4
	.string "When that third POKéMON flew down,\n"
	.string "I feared the worst.$"

SootopolisCity_Text_1E710B: @ 81E710B
	.string "A circle of a night sky framed by\n"
	.string "the crater of a volcano…\p"
	.string "And in that ring, stars flicker and\n"
	.string "blink as if they were alive…\l"
	.string "It’s my favorite scenery.$"

SootopolisCity_Text_1E71A1: @ 81E71A1
	.string "The weather was clear this morning,\n"
	.string "but…\p"
	.string "All of a sudden, dark clouds brewed up,\n"
	.string "rain started falling in sheets, and\l"
	.string "there was thunder and lightning, too.\p"
	.string "The weather just went completely\n"
	.string "wild!\p"
	.string "Is all of this because of those\n"
	.string "POKéMON?$"

SootopolisCity_Text_1E728C: @ 81E728C
	.string "Oh?\p"
	.string "It was you who brought that flying\n"
	.string "POKéMON here?\p"
	.string "Well, aren’t you amazing!$"

SootopolisCity_Text_1E72DB: @ 81E72DB
	.string "MAXIE: G… GROUDON…\n"
	.string "Please! Stop what you’re doing!\p"
	.string "I know the extent of your power now!\p"
	.string "If you keep going, all HOENN, not just\n"
	.string "SOOTOPOLIS, will be utterly ruined!$"

SootopolisCity_Text_1E737E: @ 81E737E
	.string "MAXIE: So the super-ancient POKéMON\n"
	.string "weren’t only GROUDON and KYOGRE…\p"
	.string "After all our fruitless scheming and\n"
	.string "frantic efforts, that one POKéMON’s\l"
	.string "simple action puts everything right\l"
	.string "again as if nothing had happened…\p"
	.string "Fu…\n"
	.string "Fuhahaha…$"

SootopolisCity_Text_1E7460: @ 81E7460
	.string "ARCHIE: KYOGRE! What’s wrong?!\n"
	.string "Look over here! It’s the RED ORB!\l"
	.string "Calm down! KYOGRE!\p"
	.string "… … … … … …\n"
	.string "… … … … … …\p"
	.string "It’s no good!\n"
	.string "It’s not responding at all!$"

SootopolisCity_Text_1E74F6: @ 81E74F6
	.string "ARCHIE: KYOGRE and GROUDON both\n"
	.string "flew off to who knows where.\p"
	.string "The weather in HOENN has returned\n"
	.string "to its normal state…\p"
	.string "Haha…\n"
	.string "Hahaha…\p"
	.string "Maybe what we were trying to do was\n"
	.string "something small, even meaningless,\l"
	.string "to POKéMON…$"

SootopolisCity_Text_1E75CB: @ 81E75CB
	.string "STEVEN: Those POKéMON fighting…\n"
	.string "GROUDON… And KYOGRE…\p"
	.string "The two super-ancient POKéMON\n"
	.string "were awakened from a long sleep…\p"
	.string "And now they are smashing each other\n"
	.string "with their uncontrollable energy…\p"
	.string "…{PLAYER}{KUN}.\p"
	.string "You being here now I’ll take to mean\n"
	.string "that you’re prepared to become\l"
	.string "involved in this crisis.\p"
	.string "Well, then, there’s someone that\n"
	.string "I’d like you to meet.\p"
	.string "Come with me, please.$"

SootopolisCity_Text_1E7737: @ 81E7737
	.string "STEVEN: Listen, {PLAYER}{KUN}.\p"
	.string "Does seeing GROUDON and KYOGRE make\n"
	.string "you think POKéMON are to be feared?\p"
	.string "But that’s not true.\n"
	.string "POKéMON are really more…\p"
	.string "…Why am I asking you this?\n"
	.string "You already know.$"

SootopolisCity_Text_1E77F0: @ 81E77F0
	.string "STEVEN: Okay, here we are!\p"
	.string "Inside here you’ll find someone named\n"
	.string "WALLACE.\p"
	.string "I think you have what’s needed to\n"
	.string "help him…$"

SootopolisCity_Text_1E7866: @ 81E7866
	.string "STEVEN: I think you have what’s\n"
	.string "needed to help him…$"

SootopolisCity_Text_1E789A: @ 81E789A
	.string "STEVEN: The SKY PILLAR…\p"
	.string "I’ve never been there.\n"
	.string "I wonder where it could be?$"

SootopolisCity_Text_1E78E5: @ 81E78E5
	.string "STEVEN: So that’s RAYQUAZA…\p"
	.string "It’s incredible how the two rampaging\n"
	.string "POKéMON would flee from it in fear…$"

SootopolisCity_Text_1E794B: @ 81E794B
	.string "STEVEN: It looks like both MAXIE and\n"
	.string "ARCHIE have gone away somewhere.\p"
	.string "Perhaps they’ve gone to MT. PYRE to\n"
	.string "return those ORBS…$"

SootopolisCity_Text_1E79C8: @ 81E79C8
	.string "WALLACE: Oh?\n"
	.string "{PLAYER}{KUN}?\p"
	.string "Haven’t you scaled the SKY PILLAR\n"
	.string "yet?\p"
	.string "I’m sure that you can make it to\n"
	.string "the top of the SKY PILLAR…$"

SootopolisCity_Text_1E7A3E: @ 81E7A3E
	.string "WALLACE: {PLAYER}{KUN}…\p"
	.string "The leaders of TEAM MAGMA and AQUA,\n"
	.string "I don’t think they meant harm.\p"
	.string "It wouldn’t hurt to hear what they\n"
	.string "have to say for themselves.$"

SootopolisCity_Text_1E7ACF: @ 81E7ACF
	.string "WALLACE: {PLAYER}{KUN}…\n"
	.string "My eyes didn’t deceive me.\p"
	.string "Thanks to your help, SOOTOPOLIS…\n"
	.string "No, all of HOENN was saved.\p"
	.string "On behalf of the people, I thank you.\p"
	.string "This is a gift from me.\n"
	.string "Please accept it.$"

SootopolisCity_Text_1E7B86: @ 81E7B86
	.string "That HIDDEN MACHINE contains\n"
	.string "WATERFALL.\p"
	.string "If you have the RAIN BADGE, a POKéMON\n"
	.string "that has learned that HM move can\l"
	.string "force its way up waterfalls.\p"
	.string "And where does one get the RAIN BADGE?\n"
	.string "You know, don’t you?\p"
	.string "That’s right! You have to beat\n"
	.string "the SOOTOPOLIS GYM LEADER.\p"
	.string "When you’re all set to go, step through\n"
	.string "that door.$"

SootopolisCity_Text_1E7CBC: @ 81E7CBC
	.string "WALLACE: I’m sure that you will be\n"
	.string "dazzled by my mentor’s breathtakingly\l"
	.string "elegant battle style.$"