summaryrefslogtreecommitdiff
path: root/data/scripts/maps/LittlerootTown.inc
blob: 0fcdc46d553c6d3ea10e5e75bf4c9ca6dca10067 (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
LittlerootTown_MapScripts:: @ 81E7DCB
	map_script 3, LittlerootTown_MapScript1_1E7DDB
	map_script 2, LittlerootTown_MapScript2_1E7EC1
	map_script 4, LittlerootTown_MapScript2_1E7FE2
	.byte 0

LittlerootTown_MapScript1_1E7DDB: @ 81E7DDB
	setflag FLAG_VISITED_LITTLEROOT_TOWN
	call LittlerootTown_EventScript_271ED7
	compare VAR_0x4092, 2
	call_if 1, LittlerootTown_EventScript_1E7E67
	checkflag FLAG_0x052
	call_if 0, LittlerootTown_EventScript_1E7E6F
	compare VAR_0x4050, 3
	call_if 1, LittlerootTown_EventScript_1E7E92
	compare VAR_0x4082, 4
	call_if 1, LittlerootTown_EventScript_1E7E5C
	compare VAR_0x408C, 4
	call_if 1, LittlerootTown_EventScript_1E7E5C
	compare VAR_0x40C7, 1
	call_if 1, LittlerootTown_EventScript_1E7E53
	compare VAR_0x408D, 3
	call_if 1, LittlerootTown_EventScript_1E7E4F
	compare VAR_0x40D3, 1
	call_if 1, LittlerootTown_EventScript_1E7E4B
	compare VAR_0x40D3, 2
	call_if 1, LittlerootTown_EventScript_1E7E45
	end

LittlerootTown_EventScript_1E7E45:: @ 81E7E45
	setvar VAR_0x40D3, 3
	return

LittlerootTown_EventScript_1E7E4B:: @ 81E7E4B
	setflag FLAG_SPECIAL_FLAG_0x4000
	return

LittlerootTown_EventScript_1E7E4F:: @ 81E7E4F
	setflag FLAG_0x12D
	return

LittlerootTown_EventScript_1E7E53:: @ 81E7E53
	setvar VAR_0x40C7, 2
	setflag FLAG_0x3D3
	return

LittlerootTown_EventScript_1E7E5C:: @ 81E7E5C
	setvar VAR_0x4082, 5
	setvar VAR_0x408C, 5
	return

LittlerootTown_EventScript_1E7E67:: @ 81E7E67
	setobjectxyperm 4, 14, 8
	return

LittlerootTown_EventScript_1E7E6F:: @ 81E7E6F
	compare VAR_0x4050, 0
	goto_eq LittlerootTown_EventScript_1E7E86
	setobjectxyperm 1, 10, 1
	setobjectmovementtype 1, 7
	return

LittlerootTown_EventScript_1E7E86:: @ 81E7E86
	setobjectxyperm 1, 7, 2
	setobjectmovementtype 1, 8
	return

LittlerootTown_EventScript_1E7E92:: @ 81E7E92
	clearflag FLAG_0x2F0
	setobjectmovementtype 4, 8
	checkplayergender
	compare VAR_RESULT, 0
	call_if 1, LittlerootTown_EventScript_1E7EB1
	compare VAR_RESULT, 1
	call_if 1, LittlerootTown_EventScript_1E7EB9
	return

LittlerootTown_EventScript_1E7EB1:: @ 81E7EB1
	setobjectxyperm 4, 5, 9
	return

LittlerootTown_EventScript_1E7EB9:: @ 81E7EB9
	setobjectxyperm 4, 14, 9
	return

LittlerootTown_MapScript2_1E7EC1: @ 81E7EC1
	map_script_2 VAR_0x4092, 1, LittlerootTown_EventScript_1E7EDB
	map_script_2 VAR_0x4092, 2, LittlerootTown_EventScript_1E7EF9
	map_script_2 VAR_0x40D3, 1, LittlerootTown_EventScript_1E7FB1
	.2byte 0

LittlerootTown_EventScript_1E7EDB:: @ 81E7EDB
	lockall
	setvar VAR_0x8004, 5
	setvar VAR_0x8005, 8
	call LittlerootTown_EventScript_1E7F17
	setflag FLAG_0x2F9
	warpsilent LITTLEROOT_TOWN_BRENDANS_HOUSE_1F, 255, 8, 8
	waitstate
	releaseall
	end

LittlerootTown_EventScript_1E7EF9:: @ 81E7EF9
	lockall
	setvar VAR_0x8004, 14
	setvar VAR_0x8005, 8
	call LittlerootTown_EventScript_1E7F17
	setflag FLAG_0x2FA
	warpsilent LITTLEROOT_TOWN_MAYS_HOUSE_1F, 255, 2, 8
	waitstate
	releaseall
	end

LittlerootTown_EventScript_1E7F17:: @ 81E7F17
	delay 15
	playse SE_DANSA
	applymovement 255, LittlerootTown_Movement_1E7FAC
	waitmovement 0
	opendoor VAR_0x8004, VAR_0x8005
	waitdooranim
	addobject 4
	applymovement 4, LittlerootTown_Movement_1E7F98
	waitmovement 0
	closedoor VAR_0x8004, VAR_0x8005
	waitdooranim
	delay 10
	applymovement 4, LittlerootTown_Movement_1E7F9A
	waitmovement 0
	msgbox LittlerootTown_Text_1E86BC, 4
	closemessage
	applymovement 4, LittlerootTown_Movement_1E7F9D
	applymovement 255, LittlerootTown_Movement_1E7FA4
	waitmovement 0
	opendoor VAR_0x8004, VAR_0x8005
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E7FA1
	applymovement 255, LittlerootTown_Movement_1E7FA9
	waitmovement 0
	setflag FLAG_0x2F0
	setvar VAR_0x4092, 3
	hideobjectat 255, PETALBURG_CITY
	closedoor VAR_0x8004, VAR_0x8005
	waitdooranim
	clearflag FLAG_0x364
	clearflag FLAG_SPECIAL_FLAG_0x4000
	return

LittlerootTown_Movement_1E7F98: @ 81E7F98
	step_down
	step_end

LittlerootTown_Movement_1E7F9A: @ 81E7F9A
	step_down
	step_27
	step_end

LittlerootTown_Movement_1E7F9D: @ 81E7F9D
	step_14
	step_13
	step_up
	step_end

LittlerootTown_Movement_1E7FA1: @ 81E7FA1
	step_up
	step_54
	step_end

LittlerootTown_Movement_1E7FA4: @ 81E7FA4
	step_14
	step_13
	step_right
	step_26
	step_end

LittlerootTown_Movement_1E7FA9: @ 81E7FA9
	step_up
	step_up
	step_end

LittlerootTown_Movement_1E7FAC: @ 81E7FAC
	step_45
	step_14
	step_14
	step_14
	step_end

LittlerootTown_EventScript_1E7FB1:: @ 81E7FB1
	lockall
	playse SE_PIN
	applymovement 8, LittlerootTown_Movement_272598
	waitmovement 0
	delay 80
	msgbox LittlerootTown_Text_1E8DA2, 4
	closemessage
	clearflag FLAG_0x31A
	clearflag FLAG_0x31B
	delay 20
	clearflag FLAG_SPECIAL_FLAG_0x4000
	warp LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB, 255, 6, 5
	waitstate
	releaseall
	end

LittlerootTown_MapScript2_1E7FE2: @ 81E7FE2
	map_script_2 VAR_0x40D3, 1, LittlerootTown_EventScript_1E7FEC
	.2byte 0

LittlerootTown_EventScript_1E7FEC:: @ 81E7FEC
	addobject 8
	addobject 7
	checkplayergender
	compare VAR_RESULT, 0
	goto_eq LittlerootTown_EventScript_1E8004
	goto LittlerootTown_EventScript_1E8013
	end

LittlerootTown_EventScript_1E8004:: @ 81E8004
	setobjectxy 7, 6, 10
	setobjectxy 8, 5, 10
	end

LittlerootTown_EventScript_1E8013:: @ 81E8013
	setobjectxy 7, 13, 10
	setobjectxy 8, 14, 10
	end

LittlerootTown_EventScript_1E8022:: @ 81E8022
	msgbox LittlerootTown_Text_1E8ACF, 2
	end

LittlerootTown_EventScript_1E802B:: @ 81E802B
	msgbox LittlerootTown_Text_1E8B25, 2
	end

LittlerootTown_EventScript_1E8034:: @ 81E8034
	lock
	faceplayer
	checkflag FLAG_0x074
	goto_eq LittlerootTown_EventScript_1E8087
	checkflag FLAG_0x052
	goto_eq LittlerootTown_EventScript_1E807A
	compare VAR_0x4050, 0
	goto_if 5, LittlerootTown_EventScript_1E805D
	msgbox LittlerootTown_Text_1E8BB8, 4
	release
	end

LittlerootTown_EventScript_1E805D:: @ 81E805D
	special GetPlayerBigGuyGirlString
	msgbox LittlerootTown_Text_1E8C3A, 4
	closemessage
	applymovement 1, LittlerootTown_Movement_2725A2
	waitmovement 0
	setvar VAR_0x4050, 2
	release
	end

LittlerootTown_EventScript_1E807A:: @ 81E807A
	special GetPlayerBigGuyGirlString
	msgbox LittlerootTown_Text_1E8CE3, 4
	release
	end

LittlerootTown_EventScript_1E8087:: @ 81E8087
	msgbox LittlerootTown_Text_1E8D07, 4
	release
	end

LittlerootTown_EventScript_1E8091:: @ 81E8091
	lockall
	applymovement 1, LittlerootTown_Movement_1E80D1
	waitmovement 0
	call LittlerootTown_EventScript_1E80AD
	applymovement 1, LittlerootTown_Movement_1E80E1
	waitmovement 0
	releaseall
	end

LittlerootTown_EventScript_1E80AD:: @ 81E80AD
	msgbox LittlerootTown_Text_1E8BB8, 4
	closemessage
	applymovement 1, LittlerootTown_Movement_1E80DF
	applymovement 255, LittlerootTown_Movement_1E80EB
	waitmovement 0
	msgbox LittlerootTown_Text_1E8C07, 4
	closemessage
	return

LittlerootTown_Movement_1E80D1: @ 81E80D1
	step_03
	step_13
	step_51
	step_49
	step_13
	step_18
	step_18
	step_18
	step_18
	step_16
	step_16
	step_17
	step_00
	step_end

LittlerootTown_Movement_1E80DF: @ 81E80DF
	step_down
	step_end

LittlerootTown_Movement_1E80E1: @ 81E80E1
	step_right
	step_down
	step_down
	step_left
	step_left
	step_left
	step_left
	step_up
	step_25
	step_end

LittlerootTown_Movement_1E80EB: @ 81E80EB
	step_40
	step_down
	step_41
	step_end

LittlerootTown_EventScript_1E80EF:: @ 81E80EF
	lockall
	applymovement 1, LittlerootTown_Movement_1E810B
	waitmovement 0
	call LittlerootTown_EventScript_1E80AD
	applymovement 1, LittlerootTown_Movement_1E8118
	waitmovement 0
	releaseall
	end

LittlerootTown_Movement_1E810B: @ 81E810B
	step_03
	step_13
	step_51
	step_49
	step_13
	step_18
	step_18
	step_18
	step_16
	step_16
	step_18
	step_00
	step_end

LittlerootTown_Movement_1E8118: @ 81E8118
	step_left
	step_down
	step_left
	step_left
	step_left
	step_25
	step_end

LittlerootTown_EventScript_1E811F:: @ 81E811F
	lockall
	applymovement 1, LittlerootTown_Movement_2725A8
	waitmovement 0
	applymovement 255, LittlerootTown_Movement_2725A4
	waitmovement 0
	special GetPlayerBigGuyGirlString
	msgbox LittlerootTown_Text_1E8C3A, 4
	closemessage
	applymovement 1, LittlerootTown_Movement_2725A2
	waitmovement 0
	setvar VAR_0x4050, 2
	releaseall
	end

LittlerootTown_EventScript_1E8151:: @ 81E8151
	msgbox LittlerootTown_Text_1E8D32, 3
	end

LittlerootTown_EventScript_1E815A:: @ 81E815A
	msgbox LittlerootTown_Text_1E8D69, 3
	end

LittlerootTown_EventScript_1E8163:: @ 81E8163
	lockall
	checkplayergender
	compare VAR_RESULT, 0
	call_if 1, LittlerootTown_EventScript_1E817D
	compare VAR_RESULT, 1
	call_if 1, LittlerootTown_EventScript_1E8186
	releaseall
	end

LittlerootTown_EventScript_1E817D:: @ 81E817D
	msgbox LittlerootTown_Text_1E8D83, 4
	return

LittlerootTown_EventScript_1E8186:: @ 81E8186
	msgbox LittlerootTown_Text_1E8D8E, 4
	return

LittlerootTown_EventScript_1E818F:: @ 81E818F
	lockall
	checkplayergender
	compare VAR_RESULT, 0
	call_if 1, LittlerootTown_EventScript_1E81A9
	compare VAR_RESULT, 1
	call_if 1, LittlerootTown_EventScript_1E81B2
	releaseall
	end

LittlerootTown_EventScript_1E81A9:: @ 81E81A9
	msgbox LittlerootTown_Text_1E8D8E, 4
	return

LittlerootTown_EventScript_1E81B2:: @ 81E81B2
	msgbox LittlerootTown_Text_1E8D83, 4
	return

LittlerootTown_EventScript_1E81BB:: @ 81E81BB
	lockall
	setvar VAR_0x8008, 0
	setobjectxy 4, 10, 9
	goto LittlerootTown_EventScript_1E8211
	end

LittlerootTown_EventScript_1E81CE:: @ 81E81CE
	lockall
	setvar VAR_0x8008, 1
	setobjectxy 4, 11, 9
	goto LittlerootTown_EventScript_1E8211
	end

LittlerootTown_EventScript_1E81E1:: @ 81E81E1
	lockall
	setvar VAR_0x8008, 2
	goto LittlerootTown_EventScript_1E8211
	end

LittlerootTown_EventScript_1E81ED:: @ 81E81ED
	lockall
	setvar VAR_0x8008, 3
	goto LittlerootTown_EventScript_1E8211
	end

LittlerootTown_EventScript_1E81F9:: @ 81E81F9
	lockall
	setvar VAR_0x8008, 4
	goto LittlerootTown_EventScript_1E8211
	end

LittlerootTown_EventScript_1E8205:: @ 81E8205
	lockall
	setvar VAR_0x8008, 5
	goto LittlerootTown_EventScript_1E8211
	end

LittlerootTown_EventScript_1E8211:: @ 81E8211
	checkplayergender
	compare VAR_RESULT, 0
	call_if 1, LittlerootTown_EventScript_1E8297
	compare VAR_RESULT, 1
	call_if 1, LittlerootTown_EventScript_1E82A2
	checkplayergender
	compare VAR_RESULT, 0
	call_if 1, LittlerootTown_EventScript_1E8281
	compare VAR_RESULT, 1
	call_if 1, LittlerootTown_EventScript_1E828C
	msgbox LittlerootTown_Text_1E87E1, 4
	closemessage
	checkplayergender
	compare VAR_RESULT, 0
	call_if 1, LittlerootTown_EventScript_1E82AD
	compare VAR_RESULT, 1
	call_if 1, LittlerootTown_EventScript_1E82F0
	call LittlerootTown_EventScript_1E8693
	checkplayergender
	compare VAR_RESULT, 0
	call_if 1, LittlerootTown_EventScript_1E8405
	compare VAR_RESULT, 1
	call_if 1, LittlerootTown_EventScript_1E8448
	goto LittlerootTown_EventScript_1E8686
	end

LittlerootTown_EventScript_1E8281:: @ 81E8281
	setvar VAR_0x8009, 5
	setvar VAR_0x800A, 8
	return

LittlerootTown_EventScript_1E828C:: @ 81E828C
	setvar VAR_0x8009, 14
	setvar VAR_0x800A, 8
	return

LittlerootTown_EventScript_1E8297:: @ 81E8297
	applymovement 4, LittlerootTown_Movement_2725A8
	waitmovement 0
	return

LittlerootTown_EventScript_1E82A2:: @ 81E82A2
	applymovement 4, LittlerootTown_Movement_2725A4
	waitmovement 0
	return

LittlerootTown_EventScript_1E82AD:: @ 81E82AD
	compare VAR_0x8008, 0
	call_if 1, LittlerootTown_EventScript_1E8333
	compare VAR_0x8008, 1
	call_if 1, LittlerootTown_EventScript_1E8348
	compare VAR_0x8008, 2
	call_if 1, LittlerootTown_EventScript_1E835D
	compare VAR_0x8008, 3
	call_if 1, LittlerootTown_EventScript_1E8372
	compare VAR_0x8008, 4
	call_if 1, LittlerootTown_EventScript_1E8387
	compare VAR_0x8008, 5
	call_if 1, LittlerootTown_EventScript_1E839C
	return

LittlerootTown_EventScript_1E82F0:: @ 81E82F0
	compare VAR_0x8008, 0
	call_if 1, LittlerootTown_EventScript_1E8333
	compare VAR_0x8008, 1
	call_if 1, LittlerootTown_EventScript_1E8348
	compare VAR_0x8008, 2
	call_if 1, LittlerootTown_EventScript_1E83B1
	compare VAR_0x8008, 3
	call_if 1, LittlerootTown_EventScript_1E83C6
	compare VAR_0x8008, 4
	call_if 1, LittlerootTown_EventScript_1E83DB
	compare VAR_0x8008, 5
	call_if 1, LittlerootTown_EventScript_1E83F0
	return

LittlerootTown_EventScript_1E8333:: @ 81E8333
	applymovement 255, LittlerootTown_Movement_2725AA
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85D1
	waitmovement 0
	return

LittlerootTown_EventScript_1E8348:: @ 81E8348
	applymovement 255, LittlerootTown_Movement_2725AA
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85D8
	waitmovement 0
	return

LittlerootTown_EventScript_1E835D:: @ 81E835D
	applymovement 255, LittlerootTown_Movement_2725A4
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85DF
	waitmovement 0
	return

LittlerootTown_EventScript_1E8372:: @ 81E8372
	applymovement 255, LittlerootTown_Movement_2725A4
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85E4
	waitmovement 0
	return

LittlerootTown_EventScript_1E8387:: @ 81E8387
	applymovement 255, LittlerootTown_Movement_2725A4
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85EA
	waitmovement 0
	return

LittlerootTown_EventScript_1E839C:: @ 81E839C
	applymovement 255, LittlerootTown_Movement_2725A4
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85ED
	waitmovement 0
	return

LittlerootTown_EventScript_1E83B1:: @ 81E83B1
	applymovement 255, LittlerootTown_Movement_2725A8
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85F1
	waitmovement 0
	return

LittlerootTown_EventScript_1E83C6:: @ 81E83C6
	applymovement 255, LittlerootTown_Movement_2725A8
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85F5
	waitmovement 0
	return

LittlerootTown_EventScript_1E83DB:: @ 81E83DB
	applymovement 255, LittlerootTown_Movement_2725A8
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85F8
	waitmovement 0
	return

LittlerootTown_EventScript_1E83F0:: @ 81E83F0
	applymovement 255, LittlerootTown_Movement_2725A8
	waitmovement 0
	applymovement 4, LittlerootTown_Movement_1E85FE
	waitmovement 0
	return

LittlerootTown_EventScript_1E8405:: @ 81E8405
	compare VAR_0x8008, 0
	call_if 1, LittlerootTown_EventScript_1E848B
	compare VAR_0x8008, 1
	call_if 1, LittlerootTown_EventScript_1E8496
	compare VAR_0x8008, 2
	call_if 1, LittlerootTown_EventScript_1E84A1
	compare VAR_0x8008, 3
	call_if 1, LittlerootTown_EventScript_1E84C7
	compare VAR_0x8008, 4
	call_if 1, LittlerootTown_EventScript_1E84ED
	compare VAR_0x8008, 5
	call_if 1, LittlerootTown_EventScript_1E8513
	return

LittlerootTown_EventScript_1E8448:: @ 81E8448
	compare VAR_0x8008, 0
	call_if 1, LittlerootTown_EventScript_1E848B
	compare VAR_0x8008, 1
	call_if 1, LittlerootTown_EventScript_1E8496
	compare VAR_0x8008, 2
	call_if 1, LittlerootTown_EventScript_1E8539
	compare VAR_0x8008, 3
	call_if 1, LittlerootTown_EventScript_1E855F
	compare VAR_0x8008, 4
	call_if 1, LittlerootTown_EventScript_1E8585
	compare VAR_0x8008, 5
	call_if 1, LittlerootTown_EventScript_1E85AB
	return

LittlerootTown_EventScript_1E848B:: @ 81E848B
	applymovement 4, LittlerootTown_Movement_1E8603
	waitmovement 0
	return

LittlerootTown_EventScript_1E8496:: @ 81E8496
	applymovement 4, LittlerootTown_Movement_1E8609
	waitmovement 0
	return

LittlerootTown_EventScript_1E84A1:: @ 81E84A1
	applymovement 4, LittlerootTown_Movement_1E860F
	waitmovement 0
	opendoor VAR_0x8009, VAR_0x800A
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E863B
	waitmovement 0
	hideobjectat 4, LITTLEROOT_TOWN
	closedoor VAR_0x8009, VAR_0x800A
	waitdooranim
	return

LittlerootTown_EventScript_1E84C7:: @ 81E84C7
	applymovement 4, LittlerootTown_Movement_1E8615
	waitmovement 0
	opendoor VAR_0x8009, VAR_0x800A
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E863B
	waitmovement 0
	hideobjectat 4, LITTLEROOT_TOWN
	closedoor VAR_0x8009, VAR_0x800A
	waitdooranim
	return

LittlerootTown_EventScript_1E84ED:: @ 81E84ED
	applymovement 4, LittlerootTown_Movement_1E861C
	waitmovement 0
	opendoor VAR_0x8009, VAR_0x800A
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E863B
	waitmovement 0
	hideobjectat 4, LITTLEROOT_TOWN
	closedoor VAR_0x8009, VAR_0x800A
	waitdooranim
	return

LittlerootTown_EventScript_1E8513:: @ 81E8513
	applymovement 4, LittlerootTown_Movement_1E8620
	waitmovement 0
	opendoor VAR_0x8009, VAR_0x800A
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E863B
	waitmovement 0
	hideobjectat 4, LITTLEROOT_TOWN
	closedoor VAR_0x8009, VAR_0x800A
	waitdooranim
	return

LittlerootTown_EventScript_1E8539:: @ 81E8539
	applymovement 4, LittlerootTown_Movement_1E8625
	waitmovement 0
	opendoor VAR_0x8009, VAR_0x800A
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E863B
	waitmovement 0
	hideobjectat 4, LITTLEROOT_TOWN
	closedoor VAR_0x8009, VAR_0x800A
	waitdooranim
	return

LittlerootTown_EventScript_1E855F:: @ 81E855F
	applymovement 4, LittlerootTown_Movement_1E862A
	waitmovement 0
	opendoor VAR_0x8009, VAR_0x800A
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E863B
	waitmovement 0
	hideobjectat 4, LITTLEROOT_TOWN
	closedoor VAR_0x8009, VAR_0x800A
	waitdooranim
	return

LittlerootTown_EventScript_1E8585:: @ 81E8585
	applymovement 4, LittlerootTown_Movement_1E862E
	waitmovement 0
	opendoor VAR_0x8009, VAR_0x800A
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E863B
	waitmovement 0
	hideobjectat 4, LITTLEROOT_TOWN
	closedoor VAR_0x8009, VAR_0x800A
	waitdooranim
	return

LittlerootTown_EventScript_1E85AB:: @ 81E85AB
	applymovement 4, LittlerootTown_Movement_1E8635
	waitmovement 0
	opendoor VAR_0x8009, VAR_0x800A
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E863B
	waitmovement 0
	hideobjectat 4, LITTLEROOT_TOWN
	closedoor VAR_0x8009, VAR_0x800A
	waitdooranim
	return

LittlerootTown_Movement_1E85D1: @ 81E85D1
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_end

LittlerootTown_Movement_1E85D8: @ 81E85D8
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_end

LittlerootTown_Movement_1E85DF: @ 81E85DF
	step_right
	step_right
	step_right
	step_right
	step_end

LittlerootTown_Movement_1E85E4: @ 81E85E4
	step_right
	step_right
	step_right
	step_right
	step_right
	step_end

LittlerootTown_Movement_1E85EA: @ 81E85EA
	step_right
	step_right
	step_end

LittlerootTown_Movement_1E85ED: @ 81E85ED
	step_right
	step_right
	step_right
	step_end

LittlerootTown_Movement_1E85F1: @ 81E85F1
	step_left
	step_left
	step_left
	step_end

LittlerootTown_Movement_1E85F5: @ 81E85F5
	step_left
	step_left
	step_end

LittlerootTown_Movement_1E85F8: @ 81E85F8
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end

LittlerootTown_Movement_1E85FE: @ 81E85FE
	step_left
	step_left
	step_left
	step_left
	step_end

LittlerootTown_Movement_1E8603: @ 81E8603
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

LittlerootTown_Movement_1E8609: @ 81E8609
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

LittlerootTown_Movement_1E860F: @ 81E860F
	step_left
	step_left
	step_left
	step_left
	step_26
	step_end

LittlerootTown_Movement_1E8615: @ 81E8615
	step_left
	step_left
	step_left
	step_left
	step_left
	step_26
	step_end

LittlerootTown_Movement_1E861C: @ 81E861C
	step_left
	step_left
	step_26
	step_end

LittlerootTown_Movement_1E8620: @ 81E8620
	step_left
	step_left
	step_left
	step_26
	step_end

LittlerootTown_Movement_1E8625: @ 81E8625
	step_right
	step_right
	step_right
	step_26
	step_end

LittlerootTown_Movement_1E862A: @ 81E862A
	step_right
	step_right
	step_26
	step_end

LittlerootTown_Movement_1E862E: @ 81E862E
	step_right
	step_right
	step_right
	step_right
	step_right
	step_26
	step_end

LittlerootTown_Movement_1E8635: @ 81E8635
	step_right
	step_right
	step_right
	step_right
	step_26
	step_end

LittlerootTown_Movement_1E863B: @ 81E863B
	step_up
	step_end

LittlerootTown_EventScript_1E863D:: @ 81E863D
	lock
	faceplayer
	checkplayergender
	compare VAR_RESULT, 0
	call_if 1, LittlerootTown_EventScript_1E8281
	compare VAR_RESULT, 1
	call_if 1, LittlerootTown_EventScript_1E828C
	call LittlerootTown_EventScript_1E8693
	applymovement 4, LittlerootTown_Movement_2725A6
	waitmovement 0
	opendoor VAR_0x8009, VAR_0x800A
	waitdooranim
	applymovement 4, LittlerootTown_Movement_1E863B
	waitmovement 0
	hideobjectat 4, LITTLEROOT_TOWN
	closedoor VAR_0x8009, VAR_0x800A
	waitdooranim
	goto LittlerootTown_EventScript_1E8686
	end

LittlerootTown_EventScript_1E8686:: @ 81E8686
	removeobject 4
	setflag FLAG_SYS_B_DASH
	setvar VAR_0x4050, 4
	release
	end

LittlerootTown_EventScript_1E8693:: @ 81E8693
	msgbox LittlerootTown_Text_1E87F0, 4
	playfanfare MUS_FANFA4
	message LittlerootTown_Text_1E8925
	waitfanfare
	setflag FLAG_0x112
	msgbox LittlerootTown_Text_1E894F, 4
	msgbox LittlerootTown_Text_1E8A03, 4
	closemessage
	delay 30
	return

LittlerootTown_Text_1E86BC: @ 81E86BC
	.string "MOM: {PLAYER}, we’re here, honey!\p"
	.string "It must be tiring riding with our things\n"
	.string "in the moving truck.\p"
	.string "Well, this is LITTLEROOT TOWN.\p"
	.string "How do you like it?\n"
	.string "This is our new home!\p"
	.string "It has a quaint feel, but it seems to be\n"
	.string "an easy place to live, don’t you think?\p"
	.string "And, you get your own room, {PLAYER}!\n"
	.string "Let’s go inside.$"

LittlerootTown_Text_1E87E1: @ 81E87E1
	.string "MOM: Wait, {PLAYER}!$"

LittlerootTown_Text_1E87F0: @ 81E87F0
	.string "MOM: {PLAYER}! {PLAYER}! Did you\n"
	.string "introduce yourself to PROF. BIRCH?\p"
	.string "Oh! What an adorable POKéMON!\n"
	.string "You got it from PROF. BIRCH. How nice!\p"
	.string "You’re your father’s child, all right.\n"
	.string "You look good together with POKéMON!\p"
	.string "Here, honey! If you’re going out on an\n"
	.string "adventure, wear these RUNNING SHOES.\p"
	.string "They’ll put a zip in your step!$"

LittlerootTown_Text_1E8925: @ 81E8925
	.string "{PLAYER} switched shoes with the\n"
	.string "RUNNING SHOES.$"

LittlerootTown_Text_1E894F: @ 81E894F
	.string "MOM: {PLAYER}, those shoes came with\n"
	.string "instructions.\p"
	.string "“Press the B Button while wearing these\n"
	.string "RUNNING SHOES to run extra-fast!\p"
	.string "“Slip on these RUNNING SHOES and race\n"
	.string "in the great outdoors!”$"

LittlerootTown_Text_1E8A03: @ 81E8A03
	.string "… … … … … … … …\n"
	.string "… … … … … … … …\p"
	.string "To think that you have your very own\n"
	.string "POKéMON now…\l"
	.string "Your father will be overjoyed.\p"
	.string "…But please be careful.\n"
	.string "If anything happens, you can come home.\p"
	.string "Go on, go get them, honey!$"

LittlerootTown_Text_1E8ACF: @ 81E8ACF
	.string "If you use a PC, you can store items\n"
	.string "and POKéMON.\p"
	.string "The power of science is staggering!$"

LittlerootTown_Text_1E8B25: @ 81E8B25
	.string "PROF. BIRCH spends days in his LAB\n"
	.string "studying, then he’ll suddenly go out in\l"
	.string "the wild to do more research…\p"
	.string "When does PROF. BIRCH spend time\n"
	.string "at home?$"

LittlerootTown_Text_1E8BB8: @ 81E8BB8
	.string "Um, um, um!\p"
	.string "If you go outside and go in the grass,\n"
	.string "wild POKéMON will jump out!$"

LittlerootTown_Text_1E8C07: @ 81E8C07
	.string "It’s dangerous if you don’t have\n"
	.string "your own POKéMON.$"

LittlerootTown_Text_1E8C3A: @ 81E8C3A
	.string "Um, hi!\p"
	.string "There are scary POKéMON outside!\n"
	.string "I can hear their cries!\p"
	.string "I want to go see what’s going on,\n"
	.string "but I don’t have any POKéMON…\p"
	.string "Can you go see what’s happening\n"
	.string "for me?$"

LittlerootTown_Text_1E8CE3: @ 81E8CE3
	.string "You saved PROF. BIRCH!\n"
	.string "I’m so glad!$"

LittlerootTown_Text_1E8D07: @ 81E8D07
	.string "Are you going to catch POKéMON?\n"
	.string "Good luck!$"

LittlerootTown_Text_1E8D32: @ 81E8D32
	.string "LITTLEROOT TOWN\n"
	.string "“A town that can’t be shaded any hue.”$"

LittlerootTown_Text_1E8D69: @ 81E8D69
	.string "PROF. BIRCH’S POKéMON LAB$"

LittlerootTown_Text_1E8D83: @ 81E8D83
	.string "{PLAYER}’s HOUSE$"

LittlerootTown_Text_1E8D8E: @ 81E8D8E
	.string "PROF. BIRCH’S HOUSE$"

LittlerootTown_Text_1E8DA2: @ 81E8DA2
	.string "PROF. BIRCH: Well, well, {PLAYER}{KUN}!\n"
	.string "That was good work out there!\p"
	.string "I knew there was something special\n"
	.string "about you when I first saw you,\l"
	.string "but I never expected this.\p"
	.string "Oh, yes. Do you still have the POKéDEX\n"
	.string "I gave you?\p"
	.string "I have something to show you.\n"
	.string "Let’s go to my LAB.$"