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
|
@ NOTE: Route 104's sail to Dewford script references local IDs from Dewford's map.
@ These are labeled in DewfordTown/scripts.inc
.set LOCALID_RIVAL, 34
Route104_MapScripts::
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route104_OnFrame
map_script MAP_SCRIPT_ON_TRANSITION, Route104_OnTransition
.byte 0
Route104_OnFrame:
map_script_2 VAR_BOARD_BRINEY_BOAT_STATE, 1, Route104_EventScript_StartSailToDewford
.2byte 0
Route104_EventScript_StartSailToDewford::
lockall
goto Route104_EventScript_SailToDewford
end
Route104_OnTransition:
call Common_EventScript_SetupRivalGfxId
call Route104_EventScript_TrySetRivalPos
call Route104_EventScript_ShowOrHideWhiteHerbFlorist
end
Route104_EventScript_ShowOrHideWhiteHerbFlorist::
goto_if_unset FLAG_MET_PRETTY_PETAL_SHOP_OWNER, Route104_EventScript_HideWhiteHerbFlorist
goto_if_unset FLAG_BADGE03_GET, Route104_EventScript_HideWhiteHerbFlorist
clearflag FLAG_HIDE_ROUTE_104_WHITE_HERB_FLORIST
return
Route104_EventScript_HideWhiteHerbFlorist::
setflag FLAG_HIDE_ROUTE_104_WHITE_HERB_FLORIST
return
Route104_EventScript_TrySetRivalPos::
goto_if_ge VAR_BOARD_BRINEY_BOAT_STATE, 1, Route104_EventScript_DontSetRivalPos
goto_if_set FLAG_MET_RIVAL_RUSTBORO, Route104_EventScript_DontSetRivalPos
goto_if_unset FLAG_REGISTER_RIVAL_POKENAV, Route104_EventScript_DontSetRivalPos
setobjectxyperm LOCALID_RIVAL, 17, 52
return
Route104_EventScript_DontSetRivalPos::
return
Route104_EventScript_Rival::
lockall
setvar VAR_0x8008, 1
applymovement LOCALID_RIVAL, Common_Movement_FacePlayer
waitmovement 0
goto Route104_EventScript_RivalEncounter
Route104_EventScript_RivalTrigger::
lockall
setflag FLAG_HIDE_RUSTBORO_CITY_RIVAL
setvar VAR_RUSTBORO_CITY_STATE, 8
setvar VAR_ROUTE104_STATE, 2
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterUp
waitmovement 0
delay 10
addobject LOCALID_RIVAL
clearflag FLAG_HIDE_ROUTE_104_RIVAL
applymovement OBJ_EVENT_ID_PLAYER, Route104_Movement_PlayerBackUp
waitmovement 0
applymovement LOCALID_RIVAL, Route104_Movement_RivalExitBrineysCottage
waitmovement 0
delay 20
setvar VAR_0x8008, 0
call RustboroCity_EventScript_PlayRivalMusic
playse SE_PIN
applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0
applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0
goto Route104_EventScript_RivalEncounter
@ Unused, shares script with Rustboro encounter instead
Route104_EventScript_PlayRivalMusic::
checkplayergender
goto_if_eq VAR_RESULT, MALE, Route104_EventScript_PlayMayMusic
goto_if_eq VAR_RESULT, FEMALE, Route104_EventScript_PlayBrendanMusic
return
Route104_EventScript_PlayMayMusic::
playbgm MUS_ENCOUNTER_MAY, TRUE
return
Route104_EventScript_PlayBrendanMusic::
playbgm MUS_ENCOUNTER_BRENDAN, TRUE
return
Route104_EventScript_RivalEncounter::
checkplayergender
goto_if_eq VAR_RESULT, MALE, Route104_EventScript_MayEncounter
goto_if_eq VAR_RESULT, FEMALE, Route104_EventScript_BrendanEncounter
end
Route104_EventScript_MayEncounter::
goto_if_set FLAG_DEFEATED_RIVAL_ROUTE_104, Route104_EventScript_MayDefeated
goto_if_set FLAG_REGISTER_RIVAL_POKENAV, Route104_EventScript_MayAskToBattle
setflag FLAG_REGISTER_RIVAL_POKENAV
msgbox Route104_Text_MayWeShouldRegister, MSGBOX_DEFAULT
closemessage
delay 30
playfanfare MUS_REGISTER_MATCH_CALL
msgbox Route104_Text_RegisteredMay, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
setflag FLAG_ENABLE_RIVAL_MATCH_CALL
applymovement OBJ_EVENT_ID_PLAYER, Route104_Movement_PlayerFaceRival
applymovement LOCALID_RIVAL, Route104_Movement_RivalWalkSlowLeft
msgbox Route104_Text_MayHowsYourPokedex, MSGBOX_DEFAULT
closemessage
waitmovement 0
applymovement LOCALID_RIVAL, Route104_Movement_RivalApproachPlayer
waitmovement 0
copyobjectxytoperm LOCALID_RIVAL
msgbox Route104_Text_MayMinesDecentLetsBattle, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route104_EventScript_BattleMay
msgbox Route104_Text_MayHaventRaisedPokemon, MSGBOX_DEFAULT
call Route104_EventScript_RestoreMusic
releaseall
end
Route104_Movement_RivalWalkSlowLeft:
walk_slow_left
step_end
Route104_Movement_RivalApproachPlayer:
walk_down
face_right
step_end
Route104_Movement_PlayerFaceRival:
delay_4
walk_in_place_faster_left
step_end
Route104_EventScript_MayAskToBattle::
msgbox Route104_Text_MayLetsBattle, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route104_EventScript_BattleMay
msgbox Route104_Text_MayHaventRaisedPokemon, MSGBOX_DEFAULT
releaseall
end
Route104_EventScript_BattleMay::
msgbox Route104_Text_MayIntro, MSGBOX_DEFAULT
switch VAR_STARTER_MON
case 0, Route104_EventScript_BattleMayTreecko
case 1, Route104_EventScript_BattleMayTorchic
case 2, Route104_EventScript_BattleMayMudkip
end
Route104_EventScript_MayDefeated::
msgbox Route104_Text_MayPostBattle, MSGBOX_DEFAULT
call_if_eq VAR_0x8008, 0, Route104_EventScript_RestoreMusic
releaseall
end
Route104_EventScript_RestoreMusic::
savebgm MUS_DUMMY
fadedefaultbgm
return
Route104_EventScript_BattleMayTreecko::
trainerbattle_no_intro TRAINER_MAY_RUSTBORO_TREECKO, Route104_Text_MayDefeat
setflag FLAG_DEFEATED_RIVAL_ROUTE_104
goto Route104_EventScript_MayDefeated
end
Route104_EventScript_BattleMayTorchic::
trainerbattle_no_intro TRAINER_MAY_RUSTBORO_TORCHIC, Route104_Text_MayDefeat
setflag FLAG_DEFEATED_RIVAL_ROUTE_104
goto Route104_EventScript_MayDefeated
end
Route104_EventScript_BattleMayMudkip::
trainerbattle_no_intro TRAINER_MAY_RUSTBORO_MUDKIP, Route104_Text_MayDefeat
setflag FLAG_DEFEATED_RIVAL_ROUTE_104
goto Route104_EventScript_MayDefeated
end
Route104_EventScript_BrendanEncounter::
goto_if_set FLAG_DEFEATED_RIVAL_ROUTE_104, Route104_EventScript_BrendanDefeated
goto_if_set FLAG_REGISTER_RIVAL_POKENAV, Route104_EventScript_BrendanAskToBattle
setflag FLAG_REGISTER_RIVAL_POKENAV
msgbox Route104_Text_BrendanWeShouldRegister, MSGBOX_DEFAULT
closemessage
delay 30
playfanfare MUS_REGISTER_MATCH_CALL
msgbox Route104_Text_RegisteredBrendan, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
setflag FLAG_ENABLE_RIVAL_MATCH_CALL
applymovement OBJ_EVENT_ID_PLAYER, Route104_Movement_PlayerFaceRival
applymovement LOCALID_RIVAL, Route104_Movement_RivalWalkSlowLeft
msgbox Route104_Text_BrendanHowsYourPokedex, MSGBOX_DEFAULT
closemessage
waitmovement 0
applymovement LOCALID_RIVAL, Route104_Movement_RivalApproachPlayer
waitmovement 0
copyobjectxytoperm LOCALID_RIVAL
msgbox Route104_Text_BrendanDoingGreatLetsBattle, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route104_EventScript_BattleBrendan
msgbox Route104_Text_BrendanNoConfidence, MSGBOX_DEFAULT
call Route104_EventScript_RestoreMusic
releaseall
end
Route104_EventScript_BrendanAskToBattle::
msgbox Route104_Text_BrendanLetsBattle, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route104_EventScript_BattleBrendan
msgbox Route104_Text_BrendanNoConfidence, MSGBOX_DEFAULT
releaseall
end
Route104_EventScript_BattleBrendan::
msgbox Route104_Text_BrendanIntro, MSGBOX_DEFAULT
switch VAR_STARTER_MON
case 0, Route104_EventScript_BattleBrendanTreecko
case 1, Route104_EventScript_BattleBrendanTorchic
case 2, Route104_EventScript_BattleBrendanMudkip
end
Route104_EventScript_BrendanDefeated::
msgbox Route104_Text_BrendanPostBattle, MSGBOX_DEFAULT
call_if_eq VAR_0x8008, 0, Route104_EventScript_RestoreMusic
releaseall
end
Route104_EventScript_BattleBrendanTreecko::
trainerbattle_no_intro TRAINER_BRENDAN_RUSTBORO_TREECKO, Route104_Text_BrendanDefeat
setflag FLAG_DEFEATED_RIVAL_ROUTE_104
goto Route104_EventScript_BrendanDefeated
end
Route104_EventScript_BattleBrendanTorchic::
trainerbattle_no_intro TRAINER_BRENDAN_RUSTBORO_TORCHIC, Route104_Text_BrendanDefeat
setflag FLAG_DEFEATED_RIVAL_ROUTE_104
goto Route104_EventScript_BrendanDefeated
end
Route104_EventScript_BattleBrendanMudkip::
trainerbattle_no_intro TRAINER_BRENDAN_RUSTBORO_MUDKIP, Route104_Text_BrendanDefeat
setflag FLAG_DEFEATED_RIVAL_ROUTE_104
goto Route104_EventScript_BrendanDefeated
end
Route104_Movement_PlayerBackUp:
lock_facing_direction
walk_down
unlock_facing_direction
step_end
Route104_Movement_RivalExitBrineysCottage:
walk_down
step_end
Route104_EventScript_ExpertF::
lock
faceplayer
goto_if_set FLAG_RECEIVED_CHESTO_BERRY_ROUTE_104, Route104_EventScript_ReceivedBerry
msgbox Route104_Text_PlantBerriesInSoilTakeThis, MSGBOX_DEFAULT
giveitem ITEM_CHESTO_BERRY
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_CHESTO_BERRY_ROUTE_104
msgbox Route104_Text_TrainersOftenMakeMonHoldBerries, MSGBOX_DEFAULT
release
end
Route104_EventScript_ReceivedBerry::
msgbox Route104_Text_TrainersOftenMakeMonHoldBerries, MSGBOX_DEFAULT
release
end
Route104_EventScript_WhiteHerbFlorist::
lock
faceplayer
goto_if_set FLAG_RECEIVED_WHITE_HERB, Route104_EventScript_ReceivedWhiteHerb
msgbox Route104_Text_DontNeedThisTakeIt, MSGBOX_DEFAULT
giveitem ITEM_WHITE_HERB
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_WHITE_HERB
release
end
Route104_EventScript_ReceivedWhiteHerb::
msgbox Route104_Text_FlowerShopSellingSaplings, MSGBOX_DEFAULT
release
end
Route104_EventScript_Girl1::
msgbox Route104_Text_BrineyLivesInSeasideCottage, MSGBOX_NPC
end
Route104_EventScript_BugCatcher::
msgbox Route104_Text_WhatsItLikeAtBottomOfSea, MSGBOX_SIGN
end
Route104_EventScript_BrineysCottageSign::
msgbox Route104_Text_MrBrineysCottage, MSGBOX_SIGN
end
Route104_EventScript_RouteSignPetalburg::
msgbox Route104_Text_RouteSignPetalburg, MSGBOX_SIGN
end
Route104_EventScript_RouteSignRustboro::
msgbox Route104_Text_RouteSignRustboro, MSGBOX_SIGN
end
Route104_EventScript_FlowerShopSign::
msgbox Route104_Text_PrettyPetalFlowShop, MSGBOX_SIGN
end
Route104_EventScript_TrainerTipsDoubleBattles::
msgbox Route104_Text_TrainerTipsDoubleBattles, MSGBOX_SIGN
end
Route104_EventScript_Boy1::
msgbox Route104_Text_ThrowBallAtWeakenedPokemon, MSGBOX_NPC
end
Route104_EventScript_Woman::
msgbox Route104_Text_OnlyThrowBallAtWildPokemon, MSGBOX_NPC
end
Route104_EventScript_Boy2::
lock
faceplayer
goto_if_set FLAG_RECEIVED_TM09, Route104_EventScript_ReceivedBulletSeed
msgbox Route104_Text_LikeFillingMouthWithSeedsTakeThis, MSGBOX_DEFAULT
giveitem ITEM_TM09
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_TM09
release
end
Route104_EventScript_ReceivedBulletSeed::
msgbox Route104_Text_TMsAreOneTimeUse, MSGBOX_DEFAULT
release
end
Route104_EventScript_Girl2::
msgbox Route104_Text_ImNotATrainer, MSGBOX_NPC
end
Route104_EventScript_SailToDewford::
setobjectsubpriority LOCALID_BRINEY_R104, MAP_ROUTE104, 0
setobjectsubpriority OBJ_EVENT_ID_PLAYER, MAP_ROUTE104, 0
applymovement LOCALID_BRINEY_R104, Route104_Movement_BrineyBoardBoat
waitmovement 0
removeobject LOCALID_BRINEY_R104
applymovement OBJ_EVENT_ID_PLAYER, Route104_Movement_PlayerBoardBoat
waitmovement 0
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE104
call Common_EventScript_PlayBrineysBoatMusic
goto_if_set FLAG_ENABLE_NORMAN_MATCH_CALL, Route104_EventScript_SailToDewfordNoCall
goto_if_unset FLAG_ENABLE_NORMAN_MATCH_CALL, Route104_EventScript_SailToDewfordDadCalls
end
Route104_EventScript_SailToDewfordNoCall::
applymovement LOCALID_BOAT_R104, Route104_Movement_SailToDewford
applymovement OBJ_EVENT_ID_PLAYER, Route104_Movement_SailToDewford
waitmovement 0
goto Route104_EventScript_ArriveInDewford
Route104_EventScript_SailToDewfordDadCalls::
applymovement LOCALID_BOAT_R104, Route104_Movement_SailToDewfordBeforeDadCalls
applymovement OBJ_EVENT_ID_PLAYER, Route104_Movement_SailToDewfordBeforeDadCalls
waitmovement 0
pokenavcall Route104_Text_DadPokenavCall
waitmessage
delay 30
playfanfare MUS_REGISTER_MATCH_CALL
msgbox Route104_Text_RegisteredDadInPokenav, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
setflag FLAG_ENABLE_NORMAN_MATCH_CALL
applymovement OBJ_EVENT_ID_PLAYER, Route104_Movement_SailToDewfordAfterDadCalls
applymovement LOCALID_BOAT_R104, Route104_Movement_SailToDewfordAfterDadCalls, MAP_ROUTE104
waitmovement LOCALID_BOAT_R104, MAP_ROUTE104
waitmovement 0
goto Route104_EventScript_ArriveInDewford
Route104_EventScript_ArriveInDewford::
delay 50
applymovement OBJ_EVENT_ID_PLAYER, Route104_Movement_PlayerExitBoat
waitmovement 0
call Common_EventScript_StopBrineysBoatMusic
showobjectat OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
applymovement OBJ_EVENT_ID_PLAYER, Route104_Movement_PlayerMoveForBriney
waitmovement 0
setobjectxyperm LOCALID_BRINEY_DEWFORD, 12, 8
addobject LOCALID_BRINEY_DEWFORD
setobjectsubpriority LOCALID_BRINEY_DEWFORD, MAP_DEWFORD_TOWN, 0
clearflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
applymovement LOCALID_BRINEY_DEWFORD, Route104_Movement_BrineyExitBoat
waitmovement 0
addobject LOCALID_BOAT_DEWFORD
clearflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
call Common_EventScript_StopBrineysBoatMusic
setflag FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT
hideobjectat LOCALID_BOAT_R104, MAP_ROUTE104
copyvar VAR_BRINEY_LOCATION, VAR_0x8008
resetobjectsubpriority OBJ_EVENT_ID_PLAYER, MAP_ROUTE104
resetobjectsubpriority LOCALID_BRINEY_DEWFORD, MAP_DEWFORD_TOWN
copyobjectxytoperm LOCALID_BRINEY_DEWFORD
setvar VAR_BOARD_BRINEY_BOAT_STATE, 0
goto_if_unset FLAG_DELIVERED_STEVEN_LETTER, Route104_EventScript_DeliverLetterReminder
goto_if_set FLAG_DELIVERED_STEVEN_LETTER, Route104_EventScript_LandedInDewford
end
Route104_EventScript_DeliverLetterReminder::
msgbox Route104_Text_LandedInDewfordDeliverLetter, MSGBOX_DEFAULT
releaseall
end
Route104_EventScript_LandedInDewford::
msgbox DewfordTown_Text_BrineyLandedInDewford, MSGBOX_DEFAULT
releaseall
end
Route104_Movement_SailToDewfordBeforeDadCalls:
walk_down
walk_down
walk_down
walk_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_right
walk_fast_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_fast_right
walk_fast_right
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
step_end
Route104_Movement_SailToDewfordAfterDadCalls:
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_right
walk_fast_right
walk_fast_right
walk_fast_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_fast_right
walk_fast_right
walk_fast_right
walk_fast_right
walk_right
walk_right
walk_down
walk_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_down
walk_down
step_end
Route104_Movement_SailToDewford:
walk_down
walk_down
walk_down
walk_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_right
walk_fast_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_fast_right
walk_fast_right
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_faster_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_right
walk_fast_right
walk_fast_right
walk_fast_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_faster_right
walk_fast_right
walk_fast_right
walk_fast_right
walk_fast_right
walk_right
walk_right
walk_down
walk_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_down
walk_down
step_end
Route104_Movement_PlayerBoardBoat:
walk_left
walk_down
walk_down
step_end
Route104_Movement_PlayerExitBoat:
walk_down
step_end
Route104_Movement_PlayerMoveForBriney:
walk_down
walk_left
walk_in_place_faster_right
step_end
Route104_Movement_BrineyBoardBoat:
walk_down
walk_down
step_end
Route104_Movement_BrineyExitBoat:
walk_down
walk_in_place_faster_left
step_end
Route104_EventScript_Ivan::
trainerbattle_single TRAINER_IVAN, Route104_Text_IvanIntro, Route104_Text_IvanDefeat
msgbox Route104_Text_IvanPostBattle, MSGBOX_AUTOCLOSE
end
Route104_EventScript_Billy::
trainerbattle_single TRAINER_BILLY, Route104_Text_BillyIntro, Route104_Text_BillyDefeat
msgbox Route104_Text_BillyPostBattle, MSGBOX_AUTOCLOSE
end
Route104_EventScript_Haley::
trainerbattle_single TRAINER_HALEY_1, Route104_Text_HaleyIntro, Route104_Text_HaleyDefeat, Route104_EventScript_TryRegisterHaleyAfterBattle
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route104_EventScript_RematchHaley
setvar VAR_0x8004, TRAINER_HALEY_1
specialvar VAR_RESULT, IsTrainerRegistered
goto_if_eq VAR_RESULT, FALSE, Route104_EventScript_TryRegisterHaley
msgbox Route104_Text_HaleyPostBattle, MSGBOX_DEFAULT
release
end
Route104_EventScript_TryRegisterHaleyAfterBattle::
special PlayerFaceTrainerAfterBattle
waitmovement 0
goto_if_set FLAG_HAS_MATCH_CALL, Route104_EventScript_RegisterHaleyAfterBattle
release
end
Route104_EventScript_RegisterHaleyAfterBattle::
msgbox Route104_Text_HaleyRegister2, MSGBOX_DEFAULT
register_matchcall TRAINER_HALEY_1
release
end
Route104_EventScript_TryRegisterHaley::
goto_if_set FLAG_HAS_MATCH_CALL, Route104_EventScript_RegisterHaley
msgbox Route104_Text_HaleyPostBattle, MSGBOX_DEFAULT
release
end
Route104_EventScript_RegisterHaley::
msgbox Route104_Text_HaleyRegister1, MSGBOX_DEFAULT
register_matchcall TRAINER_HALEY_1
release
end
Route104_EventScript_RematchHaley::
trainerbattle_rematch TRAINER_HALEY_1, Route104_Text_HaleyRematchIntro, Route104_Text_HaleyRematchDefeat
msgbox Route104_Text_HaleyPostRematch, MSGBOX_AUTOCLOSE
end
Route104_EventScript_Winston::
trainerbattle_single TRAINER_WINSTON_1, Route104_Text_WinstonIntro, Route104_Text_WinstonDefeat, Route104_EventScript_TryRegisterWinstonAfterBattle
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route104_EventScript_RematchWinston
setvar VAR_0x8004, TRAINER_WINSTON_1
specialvar VAR_RESULT, IsTrainerRegistered
goto_if_eq VAR_RESULT, FALSE, Route104_EventScript_TryRegisterWinston
msgbox Route104_Text_WinstonPostBattle, MSGBOX_DEFAULT
release
end
Route104_EventScript_TryRegisterWinstonAfterBattle::
special PlayerFaceTrainerAfterBattle
waitmovement 0
goto_if_set FLAG_HAS_MATCH_CALL, Route104_EventScript_RegisterWinstonAfterBattle
release
end
Route104_EventScript_RegisterWinstonAfterBattle::
msgbox Route104_Text_WinstonRegister2, MSGBOX_DEFAULT
register_matchcall TRAINER_WINSTON_1
release
end
Route104_EventScript_TryRegisterWinston::
goto_if_set FLAG_HAS_MATCH_CALL, Route104_EventScript_RegisterWinston
msgbox Route104_Text_WinstonPostBattle, MSGBOX_DEFAULT
release
end
Route104_EventScript_RegisterWinston::
msgbox Route104_Text_WinstonRegister1, MSGBOX_DEFAULT
register_matchcall TRAINER_WINSTON_1
release
end
Route104_EventScript_RematchWinston::
trainerbattle_rematch TRAINER_WINSTON_1, Route104_Text_WinstonRematchIntro, Route104_Text_WinstonRematchDefeat
msgbox Route104_Text_WinstonPostRematch, MSGBOX_AUTOCLOSE
end
Route104_EventScript_Cindy::
trainerbattle_single TRAINER_CINDY_1, Route104_Text_CindyIntro, Route104_Text_CindyDefeat, Route104_EventScript_TryRegisterCindyAfterBattle
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route104_EventScript_RematchCindy
setvar VAR_0x8004, TRAINER_CINDY_1
specialvar VAR_RESULT, IsTrainerRegistered
goto_if_eq VAR_RESULT, FALSE, Route104_EventScript_TryRegisterCindy
msgbox Route104_Text_CindyPostBattle, MSGBOX_DEFAULT
release
end
Route104_EventScript_TryRegisterCindyAfterBattle::
special PlayerFaceTrainerAfterBattle
waitmovement 0
goto_if_set FLAG_HAS_MATCH_CALL, Route104_EventScript_RegisterCindyAfterBattle
release
end
Route104_EventScript_RegisterCindyAfterBattle::
msgbox Route104_Text_CindyRegister2, MSGBOX_DEFAULT
register_matchcall TRAINER_CINDY_1
release
end
Route104_EventScript_TryRegisterCindy::
goto_if_set FLAG_HAS_MATCH_CALL, Route104_EventScript_RegisterCindy
msgbox Route104_Text_CindyPostBattle, MSGBOX_DEFAULT
release
end
Route104_EventScript_RegisterCindy::
msgbox Route104_Text_CindyRegister1, MSGBOX_DEFAULT
register_matchcall TRAINER_CINDY_1
release
end
Route104_EventScript_RematchCindy::
trainerbattle_rematch TRAINER_CINDY_1, Route104_Text_CindyRematchIntro, Route104_Text_CindyRematchDefeat
msgbox Route104_Text_CindyPostRematch, MSGBOX_AUTOCLOSE
end
Route104_EventScript_Gina::
trainerbattle_double TRAINER_GINA_AND_MIA_1, Route104_Text_GinaIntro, Route104_Text_GinaDefeat, Route104_Text_GinaNotEnoughMons
special GetPlayerBigGuyGirlString
msgbox Route104_Text_GinaPostBattle, MSGBOX_DEFAULT
release
end
Route104_EventScript_Mia::
trainerbattle_double TRAINER_GINA_AND_MIA_1, Route104_Text_MiaIntro, Route104_Text_MiaDefeat, Route104_Text_MiaNotEnoughMons
special GetPlayerBigGuyGirlString
msgbox Route104_Text_MiaPostBattle, MSGBOX_DEFAULT
release
end
Route104_EventScript_Darian::
trainerbattle_single TRAINER_DARIAN, Route104_Text_DarianIntro, Route104_Text_DarianDefeat
msgbox Route104_Text_DarianPostBattle, MSGBOX_AUTOCLOSE
end
Route104_Text_BrineyLivesInSeasideCottage:
.string "That seaside cottage is where\n"
.string "MR. BRINEY lives.\p"
.string "He was once a mighty sailor who never\n"
.string "feared the sea, however stormy.$"
Route104_Text_WhatsItLikeAtBottomOfSea:
.string "The sea, huh?\p"
.string "I wonder what it's like at the bottom\n"
.string "of the sea?$"
Route104_Text_ThrowBallAtWeakenedPokemon:
.string "If you're going to throw a POKé BALL,\n"
.string "weaken the wild POKéMON first.\p"
.string "It will be easier to catch if it's been\n"
.string "poisoned, burned, or lulled to sleep.$"
Route104_Text_OnlyThrowBallAtWildPokemon:
.string "You're a thief if you try to steal\n"
.string "someone else's POKéMON.\p"
.string "You should throw POKé BALLS only at\n"
.string "wild POKéMON.$"
Route104_Text_ImNotATrainer:
.string "Oh, no, I'm not a TRAINER.\p"
.string "But that's right, if TRAINERS lock eyes,\n"
.string "it's a challenge to battle.\p"
.string "If you don't want to battle, stay out\n"
.string "of their sight.$"
Route104_Text_LikeFillingMouthWithSeedsTakeThis:
.string "I like filling my mouth with seeds,\n"
.string "then spitting them out fast!\p"
.string "You can have this, so you try it out!\p"
.string "Use it on a POKéMON, and it will learn\n"
.string "a move for firing seeds rapidly.$"
Route104_Text_TMsAreOneTimeUse:
.string "A word of advice!\p"
.string "A TM, TECHNICAL MACHINE, is good only\n"
.string "for one-time use.\p"
.string "Once you use it, it's gone.\n"
.string "Think twice before using it!$"
Route104_Text_DontNeedThisTakeIt:
.string "This FLOWER SHOP started selling\n"
.string "saplings recently.\p"
.string "It made me so happy, I went overboard\n"
.string "shopping.\p"
.string "I don't need this WHITE HERB anymore.\n"
.string "Would you take it, please?$"
Route104_Text_FlowerShopSellingSaplings:
.string "This FLOWER SHOP started selling\n"
.string "saplings recently.\p"
.string "It made me so happy, I went overboard\n"
.string "shopping. Where should I put them?$"
Route104_Text_MrBrineysCottage:
.string "MR. BRINEY'S COTTAGE$"
Route104_Text_RouteSignPetalburg:
.string "ROUTE 1O4\n"
.string "{RIGHT_ARROW} PETALBURG CITY$"
Route104_Text_RouteSignRustboro:
.string "ROUTE 1O4\n"
.string "{UP_ARROW} RUSTBORO CITY$"
Route104_Text_PrettyPetalFlowShop:
.string "PRETTY PETAL FLOWER SHOP$"
Route104_Text_TrainerTipsDoubleBattles:
.string "TRAINER TIPS\p"
.string "In the HOENN region there are pairs\n"
.string "of TRAINERS who challenge others\l"
.string "for 2-on-2 POKéMON battles called\l"
.string "DOUBLE BATTLES.\p"
.string "In a DOUBLE BATTLE, the TRAINER must\n"
.string "send out two POKéMON, the one at the\l"
.string "left of the list and the top one.\l"
.string "Watch how POKéMON are lined up.$"
Route104_Text_MayWeShouldRegister:
.string "MAY: Oh, hi, {PLAYER}{KUN}!\p"
.string "DEVON upgraded your POKéNAV with\n"
.string "the MATCH CALL system, huh?\p"
.string "We should register each other so we\n"
.string "can get in contact anytime.$"
Route104_Text_RegisteredMay:
.string "{PLAYER} registered MAY\n"
.string "in the POKéNAV.$"
Route104_Text_MayHowsYourPokedex:
.string "MAY: Oh, by the way, {PLAYER}{KUN},\n"
.string "how's your POKéDEX coming along?$"
Route104_Text_MayMinesDecentLetsBattle:
.string "Mine's looking pretty decent.\n"
.string "So…\l"
.string "How about a little battle?$"
Route104_Text_MayHaventRaisedPokemon:
.string "MAY: Oh, what's the matter?\p"
.string "Haven't you caught or raised your\n"
.string "POKéMON very much?\p"
.string "That's not very good for a TRAINER!$"
Route104_Text_MayLetsBattle:
.string "MAY: So, what do you think?\n"
.string "How about a little battle here?$"
Route104_Text_MayIntro:
.string "MAY: You just became a TRAINER,\n"
.string "{PLAYER}{KUN}. I'm not going to lose!$"
Route104_Text_MayDefeat:
.string "Yikes!\n"
.string "You're better than I expected!$"
Route104_Text_MayPostBattle:
.string "MAY: I can tell you've gotten pretty\n"
.string "good with the way you handle POKéMON.\p"
.string "But instead of only making them\n"
.string "battle, you should be like MR. BRINEY.\p"
.string "It's important to become friends with\n"
.string "POKéMON, too.$"
Route104_Text_BrendanWeShouldRegister:
.string "BRENDAN: Oh, hey, {PLAYER}!\p"
.string "Cool, you had DEVON install the MATCH\n"
.string "CALL system on your POKéNAV!\p"
.string "Let's register each other in our\n"
.string "POKéNAVS so we can keep in touch.$"
Route104_Text_RegisteredBrendan:
.string "{PLAYER} registered BRENDAN\n"
.string "in the POKéNAV.$"
Route104_Text_BrendanHowsYourPokedex:
.string "BRENDAN: {PLAYER}, how's your POKéDEX?\n"
.string "Have you filled in any pages yet?$"
Route104_Text_BrendanDoingGreatLetsBattle:
.string "Me, I'm doing great!\p"
.string "Want to check out how good I am with\n"
.string "a battle?$"
Route104_Text_BrendanNoConfidence:
.string "BRENDAN: What's the matter? Don't have\n"
.string "any confidence in your POKéMON?$"
Route104_Text_BrendanLetsBattle:
.string "BRENDAN: What's up?\n"
.string "Want to have a battle with me?$"
Route104_Text_BrendanIntro:
.string "BRENDAN: I know you just became\n"
.string "a TRAINER, but I won't go easy!$"
Route104_Text_BrendanDefeat:
.string "Hmm…\n"
.string "You're pretty good.$"
Route104_Text_BrendanPostBattle:
.string "BRENDAN: You've gotten pretty decent\n"
.string "at handling POKéMON.\p"
.string "But, you know, you shouldn't just be\n"
.string "making POKéMON battle.\p"
.string "Like MR. BRINEY, it's important to\n"
.string "become friends with your POKéMON.$"
|