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
|
DewfordTown_MapScripts:: @ 814DFF8
map_script MAP_SCRIPT_ON_TRANSITION, DewfordTown_MapScript1_14DFFE
.byte 0
DewfordTown_MapScript1_14DFFE:: @ 814DFFE
setflag FLAG_VISITED_DEWFORD_TOWN
end
DewfordTown_EventScript_14E002:: @ 814E002
lock
faceplayer
goto_if_unset FLAG_DELIVERED_STEVEN_LETTER, DewfordTown_EventScript_14E076
message DewfordTown_Text_16B522
waitmessage
multichoicedefault 21, 6, 0, 2, 0
switch VAR_RESULT
case 0, DewfordTown_EventScript_14E04B
case 1, DewfordTown_EventScript_14E05B
case 2, DewfordTown_EventScript_14E06B
case 127, DewfordTown_EventScript_14E06B
end
DewfordTown_EventScript_14E04B:: @ 814E04B
msgbox DewfordTown_Text_16B57D, MSGBOX_DEFAULT
closemessage
goto DewfordTown_EventScript_14E151
release
end
DewfordTown_EventScript_14E05B:: @ 814E05B
msgbox DewfordTown_Text_16B5D2, MSGBOX_DEFAULT
closemessage
goto DewfordTown_EventScript_14E1D8
release
end
DewfordTown_EventScript_14E06B:: @ 814E06B
msgbox DewfordTown_Text_16B627, MSGBOX_DEFAULT
closemessage
release
end
DewfordTown_EventScript_14E076:: @ 814E076
msgbox DewfordTown_Text_16B3BC, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq DewfordTown_EventScript_14E093
msgbox DewfordTown_Text_16B471, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E093:: @ 814E093
msgbox DewfordTown_Text_16B417, MSGBOX_DEFAULT
closemessage
goto DewfordTown_EventScript_14E151
end
DewfordTown_EventScript_14E0A2:: @ 814E0A2
msgbox DewfordTown_Text_16B23B, MSGBOX_NPC
end
DewfordTown_EventScript_14E0AB:: @ 814E0AB
msgbox DewfordTown_Text_16B2A7, MSGBOX_SIGN
end
DewfordTown_EventScript_14E0B4:: @ 814E0B4
msgbox DewfordTown_Text_16B2D5, MSGBOX_SIGN
end
DewfordTown_EventScript_14E0BD:: @ 814E0BD
msgbox DewfordTown_Text_16B317, MSGBOX_SIGN
end
DewfordTown_EventScript_14E0C6:: @ 814E0C6
lock
faceplayer
goto_if_set FLAG_RECEIVED_OLD_ROD, DewfordTown_EventScript_14E11B
msgbox DewfordTown_Text_16B665, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq DewfordTown_EventScript_14E0F0
compare VAR_RESULT, NO
goto_if_eq DewfordTown_EventScript_14E111
end
DewfordTown_EventScript_14E0F0:: @ 814E0F0
msgbox DewfordTown_Text_16B6A8, MSGBOX_DEFAULT
giveitem ITEM_OLD_ROD
setflag FLAG_RECEIVED_OLD_ROD
msgbox DewfordTown_Text_16B6F9, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E111:: @ 814E111
msgbox DewfordTown_Text_16B828, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E11B:: @ 814E11B
message DewfordTown_Text_16B84E
waitmessage
multichoice 20, 8, 50, 1
compare VAR_RESULT, 0
goto_if_eq DewfordTown_EventScript_14E13D
compare VAR_RESULT, 1
goto_if_eq DewfordTown_EventScript_14E147
end
DewfordTown_EventScript_14E13D:: @ 814E13D
msgbox DewfordTown_Text_16B866, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E147:: @ 814E147
msgbox DewfordTown_Text_16B89A, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E151:: @ 814E151
call EventScript_BackupMrBrineyLocation
setobjectpriority 2, MAP_DEWFORD_TOWN, 0
setobjectpriority 255, MAP_DEWFORD_TOWN, 0
applymovement 2, DewfordTown_Movement_14E40E
waitmovement 0
removeobject 2
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E402
waitmovement 0
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
call Common_EventScript_PlayBrineysBoatMusic
applymovement 4, DewfordTown_Movement_14E293
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E293
waitmovement 0
showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE104
call Common_EventScript_StopBrineysBoatMusic
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E405
waitmovement 0
showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE104
clearflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE
clearflag FLAG_HIDE_PEEKO_BRINEY_HOUSE
clearflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
hideobjectat 4, MAP_DEWFORD_TOWN
setvar VAR_BOARD_BRINEY_BOAT_ROUTE104_STATE, 2
resetobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
warp MAP_ROUTE104_MR_BRINEYS_HOUSE, 255, 5, 4
copyvar VAR_BRINEY_LOCATION, VAR_0x8008
waitstate
release
end
DewfordTown_EventScript_14E1D8:: @ 814E1D8
call EventScript_BackupMrBrineyLocation
setobjectpriority 2, MAP_DEWFORD_TOWN, 0
setobjectpriority 255, MAP_DEWFORD_TOWN, 1
applymovement 2, DewfordTown_Movement_14E40E
waitmovement 0
removeobject 2
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E402
waitmovement 0
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
call Common_EventScript_PlayBrineysBoatMusic
applymovement 4, DewfordTown_Movement_14E356
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E356
waitmovement 0
call Common_EventScript_StopBrineysBoatMusic
showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE109
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E409
waitmovement 0
setobjectxyperm 2, 21, 26
addobject 2
setobjectpriority 2, MAP_ROUTE109, 0
applymovement 2, DewfordTown_Movement_14E410
waitmovement 0
clearflag FLAG_HIDE_MR_BRINEY_ROUTE109
addobject 1
clearflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
hideobjectat 4, MAP_DEWFORD_TOWN
call_if_unset FLAG_DELIVERED_DEVON_GOODS, DewfordTown_EventScript_14E281
call_if_set FLAG_DELIVERED_DEVON_GOODS, DewfordTown_EventScript_14E28A
closemessage
copyvar VAR_BRINEY_LOCATION, VAR_0x8008
resetobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
resetobjectpriority 2, MAP_ROUTE109
moveobjectoffscreen 2
release
end
DewfordTown_EventScript_14E281:: @ 814E281
msgbox DewfordTown_Text_16E080, MSGBOX_DEFAULT
return
DewfordTown_EventScript_14E28A:: @ 814E28A
msgbox DewfordTown_Text_16E1FA, MSGBOX_DEFAULT
return
DewfordTown_Movement_14E293:: @ 814E293
walk_up
walk_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_up
walk_up
walk_left
walk_left
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_left
walk_fast_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fastest_left
walk_fast_left
walk_fast_left
walk_fast_up
walk_fast_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_up
walk_up
walk_up
walk_up
step_end
DewfordTown_Movement_14E356:: @ 814E356
walk_right
walk_fast_right
walk_fast_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fastest_right
walk_fast_right
walk_fast_right
walk_fast_up
walk_fast_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fastest_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
step_end
DewfordTown_Movement_14E402:: @ 814E402
walk_right
walk_up
step_end
DewfordTown_Movement_14E405:: @ 814E405
walk_up
walk_up
walk_up
step_end
DewfordTown_Movement_14E409:: @ 814E409
walk_up
walk_up
walk_up
walk_in_place_fastest_down
step_end
DewfordTown_Movement_14E40E:: @ 814E40E
walk_up
step_end
DewfordTown_Movement_14E410:: @ 814E410
walk_up
walk_up
step_end
DewfordTown_EventScript_14E413:: @ 814E413
lock
faceplayer
call Common_EventScript_BufferTrendyPhrase
msgbox DewfordTown_Text_16B9CE, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq DewfordTown_EventScript_14E439
compare VAR_RESULT, NO
goto_if_eq DewfordTown_EventScript_14E443
end
DewfordTown_EventScript_14E439:: @ 814E439
msgbox DewfordTown_Text_16BD37, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E443:: @ 814E443
msgbox DewfordTown_Text_16BADC, MSGBOX_DEFAULT
setvar VAR_0x8004, 9
call Common_EventScript_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
goto_if_eq DewfordTown_EventScript_14E46E
compare VAR_RESULT, 0
goto_if_eq DewfordTown_EventScript_14E485
end
DewfordTown_EventScript_14E46E:: @ 814E46E
incrementgamestat GAME_STAT_STARTED_TRENDS
compare VAR_0x8004, 0
goto_if_eq DewfordTown_EventScript_14E48F
msgbox DewfordTown_Text_16BB44, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E485:: @ 814E485
msgbox DewfordTown_Text_16BCE9, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E48F:: @ 814E48F
msgbox DewfordTown_Text_16BCA2, MSGBOX_DEFAULT
release
end
@ 814E499
msgbox DewfordTown_Text_16BD79, MSGBOX_DEFAULT
release
end
|