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
|
VictoryRoad_2F_EventScript_DoubleEdgeTutor:: @ 81C47AE
lock
faceplayer
goto_if_set FLAG_TUTOR_DOUBLE_EDGE, EventScript_DoubleEdgeTaught
msgbox Text_DoubleEdgeTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_DoubleEdgeDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_DoubleEdgeDeclined
msgbox Text_DoubleEdgeWhichMon
setvar VAR_0x8005, MOVETUTOR_DOUBLE_EDGE
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_DoubleEdgeDeclined
setflag FLAG_TUTOR_DOUBLE_EDGE
goto EventScript_DoubleEdgeTaught
end
EventScript_DoubleEdgeDeclined:: @ 81C4802
msgbox Text_DoubleEdgeDeclined
release
end
EventScript_DoubleEdgeTaught:: @ 81C480C
msgbox Text_DoubleEdgeTaught
release
end
EventScript_ThunderWaveTutor:: @ 81C4816
lock
faceplayer
goto_if_set FLAG_TUTOR_THUNDER_WAVE, EventScript_ThunderWaveTaught
msgbox Text_ThunderWaveTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_ThunderWaveDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_ThunderWaveDeclined
msgbox Text_ThunderWaveWhichMon
setvar VAR_0x8005, MOVETUTOR_THUNDER_WAVE
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_ThunderWaveDeclined
setflag FLAG_TUTOR_THUNDER_WAVE
goto EventScript_ThunderWaveTaught
end
EventScript_ThunderWaveDeclined:: @ 81C486A
msgbox Text_ThunderWaveDeclined
release
end
EventScript_ThunderWaveTaught:: @ 81C4874
msgbox Text_ThunderWaveTaught
release
end
RockTunnel_B1F_EventScript_RockSlideTutor:: @ 81C487E
lock
faceplayer
goto_if_set FLAG_TUTOR_ROCK_SLIDE, EventScript_RockSlideTaught
msgbox Text_RockSlideTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_RockSlideDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_RockSlideDeclined
msgbox Text_RockSlideWhichMon
setvar VAR_0x8005, MOVETUTOR_ROCK_SLIDE
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_RockSlideDeclined
setflag FLAG_TUTOR_ROCK_SLIDE
goto EventScript_RockSlideTaught
end
EventScript_RockSlideDeclined:: @ 81C48D2
msgbox Text_RockSlideDeclined
release
end
EventScript_RockSlideTaught:: @ 81C48DC
msgbox Text_RockSlideTaught
release
end
MtEmber_Exterior_EventScript_ExplosionTutor:: @ 81C48E6
lock
faceplayer
goto_if_set FLAG_TUTOR_EXPLOSION, EventScript_ExplosionTaught
msgbox Text_ExplosionTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_ExplosionDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_ExplosionDeclined
msgbox Text_ExplosionWhichMon
setvar VAR_0x8005, MOVETUTOR_EXPLOSION
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_ExplosionDeclined
setflag FLAG_TUTOR_EXPLOSION
goto EventScript_ExplosionTaught
end
EventScript_ExplosionDeclined:: @ 81C493A
msgbox Text_ExplosionDeclined
release
end
EventScript_ExplosionTaught:: @ 81C4944
msgbox Text_ExplosionTaught
release
end
Route4_EventScript_MegaPunchTutor:: @ 81C494E
lock
faceplayer
goto_if_set FLAG_TUTOR_MEGA_PUNCH, EventScript_MegaPunchTaught
msgbox Text_MegaPunchTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_MegaPunchDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_MegaPunchDeclined
msgbox Text_MegaPunchWhichMon
setvar VAR_0x8005, MOVETUTOR_MEGA_PUNCH
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_MegaPunchDeclined
setflag FLAG_TUTOR_MEGA_PUNCH
goto EventScript_MegaPunchTaught
end
EventScript_MegaPunchDeclined:: @ 81C49A2
msgbox Text_MegaPunchDeclined
release
end
EventScript_MegaPunchTaught:: @ 81C49AC
msgbox Text_MegaPunchTaught
release
end
Route4_EventScript_MegaKickTutor:: @ 81C49B6
lock
faceplayer
goto_if_set FLAG_TUTOR_MEGA_KICK, EventScript_MegaKickTaught
msgbox Text_MegaKickTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_MegaKickDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_MegaKickDeclined
msgbox Text_MegaKickWhichMon
setvar VAR_0x8005, MOVETUTOR_MEGA_KICK
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_MegaKickDeclined
setflag FLAG_TUTOR_MEGA_KICK
goto EventScript_MegaKickTaught
end
EventScript_MegaKickDeclined:: @ 81C4A0A
msgbox Text_MegaKickDeclined
release
end
EventScript_MegaKickTaught:: @ 81C4A14
msgbox Text_MegaKickTaught
release
end
EventScript_DreamEaterTutor:: @ 81C4A1E
lock
faceplayer
goto_if_set FLAG_TUTOR_DREAM_EATER, EventScript_DreamEaterTaught
msgbox Text_DreamEaterTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_DreamEaterDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_DreamEaterDeclined
msgbox Text_DreamEaterWhichMon
setvar VAR_0x8005, MOVETUTOR_DREAM_EATER
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_DreamEaterDeclined
setflag FLAG_TUTOR_DREAM_EATER
goto EventScript_DreamEaterTaught
end
EventScript_DreamEaterDeclined:: @ 81C4A72
msgbox Text_DreamEaterDeclined
release
end
EventScript_DreamEaterTaught:: @ 81C4A7C
msgbox Text_DreamEaterTaught
release
end
EventScript_SoftboiledTutor:: @ 81C4A86
lock
faceplayer
goto_if_set FLAG_TUTOR_SOFT_BOILED, EventScript_SoftboiledTaught
msgbox Text_SoftboiledTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_SoftboiledDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_SoftboiledDeclined
msgbox Text_SoftboiledWhichMon
setvar VAR_0x8005, MOVETUTOR_SOFT_BOILED
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_SoftboiledDeclined
setflag FLAG_TUTOR_SOFT_BOILED
goto EventScript_SoftboiledTaught
end
EventScript_SoftboiledDeclined:: @ 81C4ADA
msgbox Text_SoftboiledDeclined
release
end
EventScript_SoftboiledTaught:: @ 81C4AE4
msgbox Text_SoftboiledTaught
release
end
FuchsiaCity_EventScript_SubstituteTutor:: @ 81C4AEE
lock
faceplayer
goto_if_set FLAG_TUTOR_SUBSTITUTE, EventScript_SubstituteTaught
msgbox Text_SubstituteTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_SubstituteDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_SubstituteDeclined
msgbox Text_SubstituteWhichMon
setvar VAR_0x8005, MOVETUTOR_SUBSTITUTE
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_SubstituteDeclined
setflag FLAG_TUTOR_SUBSTITUTE
goto EventScript_SubstituteTaught
end
EventScript_SubstituteDeclined:: @ 81C4B42
msgbox Text_SubstituteDeclined
release
end
EventScript_SubstituteTaught:: @ 81C4B4C
msgbox Text_SubstituteTaught
release
end
SevenIsland_EventScript_SwordsDanceTutor:: @ 81C4B56
lock
faceplayer
goto_if_set FLAG_TUTOR_SWORDS_DANCE, EventScript_SwordsDanceTaught
msgbox Text_SwordsDanceTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_SwordsDanceDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_SwordsDanceDeclined
msgbox Text_SwordsDanceWhichMon
setvar VAR_0x8005, MOVETUTOR_SWORDS_DANCE
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_SwordsDanceDeclined
setflag FLAG_TUTOR_SWORDS_DANCE
goto EventScript_SwordsDanceTaught
end
EventScript_SwordsDanceDeclined:: @ 81C4BAA
msgbox Text_SwordsDanceDeclined
release
end
EventScript_SwordsDanceTaught:: @ 81C4BB4
msgbox Text_SwordsDanceTaught
release
end
PewterCity_Museum_1F_EventScript_SeismicTossTutor:: @ 81C4BBE
lock
faceplayer
goto_if_set FLAG_TUTOR_SEISMIC_TOSS, EventScript_SeismicTossTaught
msgbox Text_SeismicTossTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_SeismicTossDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_SeismicTossDeclined
msgbox Text_SeismicTossWhichMon
setvar VAR_0x8005, MOVETUTOR_SEISMIC_TOSS
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_SeismicTossDeclined
setflag FLAG_TUTOR_SEISMIC_TOSS
goto EventScript_SeismicTossTaught
end
EventScript_SeismicTossDeclined:: @ 81C4C12
msgbox Text_SeismicTossDeclined
release
end
EventScript_SeismicTossTaught:: @ 81C4C1C
msgbox Text_SeismicTossTaught
release
end
EventScript_CounterTutor:: @ 81C4C26
lock
faceplayer
goto_if_set FLAG_TUTOR_COUNTER, EventScript_CounterTaught
msgbox Text_CounterTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_CounterDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_CounterDeclined
msgbox Text_CounterWhichMon
setvar VAR_0x8005, MOVETUTOR_COUNTER
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_CounterDeclined
setflag FLAG_TUTOR_COUNTER
goto EventScript_CounterTaught
end
EventScript_CounterDeclined:: @ 81C4C7A
msgbox Text_CounterDeclined
release
end
EventScript_CounterTaught:: @ 81C4C84
msgbox Text_CounterTaught
release
end
EventScript_MetronomeTutor:: @ 81C4C8E
lock
faceplayer
goto_if_set FLAG_TUTOR_METRONOME, EventScript_MetronomeTaught
msgbox Text_MetronomeTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_MetronomeDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_MetronomeDeclined
msgbox Text_MetronomeWhichMon
setvar VAR_0x8005, MOVETUTOR_METRONOME
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_MetronomeDeclined
setflag FLAG_TUTOR_METRONOME
goto EventScript_MetronomeTaught
end
EventScript_MetronomeDeclined:: @ 81C4CE2
msgbox Text_MetronomeDeclined
release
end
EventScript_MetronomeTaught:: @ 81C4CEC
msgbox Text_MetronomeTaught
release
end
EventScript_MimicTutor:: @ 81C4CF6
goto_if_set FLAG_TUTOR_MIMIC, EventScript_MimicTaught
msgbox Text_MimicTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_MimicDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_MimicDeclined
msgbox Text_MimicWhichMon
setvar VAR_0x8005, MOVETUTOR_MIMIC
call EventScript_ChooseMoveTutorMon
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq EventScript_MimicDeclined
removeitem ITEM_POKE_DOLL, 1
setflag FLAG_TUTOR_MIMIC
goto EventScript_MimicTaught
end
EventScript_MimicDeclined:: @ 81C4D4F
msgbox Text_MimicDeclined
release
end
EventScript_MimicTaught:: @ 81C4D59
checkplayergender
compare VAR_RESULT, MALE
call_if_eq EventScript_MimicTaughtMale
compare VAR_RESULT, FEMALE
call_if_eq EventScript_MimicTaughtFemale
release
end
EventScript_MimicTaughtMale:: @ 81C4D72
msgbox Text_MimicTaughtMale
return
EventScript_MimicTaughtFemale:: @ 81C4D7B
msgbox Text_MimicTaughtFemale
return
FourIsland_House1_EventScript_BodySlamTutor:: @ 81C4D84
lock
faceplayer
goto_if_set FLAG_TUTOR_BODY_SLAM, EventScript_BodySlamTaught
msgbox Text_BodySlamTeach, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_BodySlamDeclined
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq EventScript_BodySlamDeclined
msgbox Text_BodySlamWhichMon
setvar VAR_0x8005, MOVETUTOR_BODY_SLAM
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq EventScript_BodySlamDeclined
setflag FLAG_TUTOR_BODY_SLAM
goto EventScript_BodySlamTaught
end
EventScript_BodySlamDeclined:: @ 81C4DD8
msgbox Text_BodySlamDeclined
release
end
EventScript_BodySlamTaught:: @ 81C4DE2
msgbox Text_BodySlamTaught
release
end
.set LOCALID_CAPE_BRINK_TUTOR, 1
TwoIsland_CapeBrink_House_EventScript_StarterTutor:: @ 81C4DEC
goto_if_questlog EventScript_ReleaseEnd
special QuestLog_CutRecording
lock
faceplayer
goto_if_set FLAG_LEARNED_ALL_MOVES_AT_CAPE_BRINK, CapeBrinkTutor_EventScript_TaughtAllMoves
goto_if_set FLAG_TEMP_2, CapeBrinkTutor_EventScript_MoveJustTaught
getfirstpartymonname 0
msgbox Text_UltimateMoveThatMon
specialvar VAR_RESULT, CapeBrinkGetMoveToTeachLeadPokemon
compare VAR_RESULT, FALSE
goto_if_eq CapeBrinkTutor_EventScript_NoLeadStarter
copyvar VAR_0x8009, VAR_0x8005
compare VAR_FACING, DIR_NORTH
call_if_eq CapeBrinkTutor_EventScript_JumpInPlaceDown
compare VAR_FACING, DIR_SOUTH
call_if_eq CapeBrinkTutor_EventScript_JumpInPlaceUp
compare VAR_FACING, DIR_EAST
call_if_eq CapeBrinkTutor_EventScript_JumpInPlaceLeft
compare VAR_FACING, DIR_WEST
call_if_eq CapeBrinkTutor_EventScript_JumpInPlaceRight
msgbox Text_AllowMeToTeachMonUltimateMove, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq CapeBrinkTutor_EventScript_DeclineMove
call EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, NO
goto_if_eq CapeBrinkTutor_EventScript_DeclineMove
msgbox Text_LetMeConferUltimateMove
closemessage
fadescreen FADE_TO_BLACK
goto CapeBrinkTutor_EventScript_ChooseMon
@ Unused
CapeBrinkTutor_EventScript_FadeTaughtMove:: @ 81C4E8F
fadescreen FADE_FROM_BLACK
goto CapeBrinkTutor_EventScript_TaughtMove
end
CapeBrinkTutor_EventScript_MoveJustTaught:: @ 81C4E97
msgbox Text_MakeBestUseOfMove
release
end
CapeBrinkTutor_EventScript_TaughtAllMoves:: @ 81C4EA1
msgbox Text_FeelRejuvenated
release
end
CapeBrinkTutor_EventScript_TaughtMove:: @ 81C4EAB
copyvar VAR_0x8005, VAR_0x8009
specialvar VAR_RESULT, HasLearnedAllMovesFromCapeBrinkTutor
compare VAR_RESULT, TRUE
goto_if_eq CapeBrinkTutor_EventScript_LearnedAllMoves
msgbox Text_TaughtMove
setflag FLAG_TEMP_2
release
end
CapeBrinkTutor_EventScript_LearnedAllMoves:: @ 81C4ECD
msgbox Text_PassedOnEverythingIKnow
setflag FLAG_LEARNED_ALL_MOVES_AT_CAPE_BRINK
release
end
CapeBrinkTutor_EventScript_ChooseMon:: @ 81C4EDA
call EventScript_ChooseMoveTutorMon
compare VAR_RESULT, FALSE
goto_if_eq CapeBrinkTutor_EventScript_DeclineMove
goto CapeBrinkTutor_EventScript_TaughtMove
end
CapeBrinkTutor_EventScript_JumpInPlaceDown:: @ 81C4EF0
applymovement LOCALID_CAPE_BRINK_TUTOR, Movement_JumpInPlaceDown
waitmovement 0
return
CapeBrinkTutor_EventScript_JumpInPlaceUp:: @ 81C4EFB
applymovement LOCALID_CAPE_BRINK_TUTOR, Movement_JumpInPlaceUp
waitmovement 0
return
CapeBrinkTutor_EventScript_JumpInPlaceLeft:: @ 81C4F06
applymovement LOCALID_CAPE_BRINK_TUTOR, Movement_JumpInPlaceLeft
waitmovement 0
return
CapeBrinkTutor_EventScript_JumpInPlaceRight:: @ 81C4F11
applymovement LOCALID_CAPE_BRINK_TUTOR, Movement_JumpInPlaceRight
waitmovement 0
return
CapeBrinkTutor_EventScript_DeclineMove:: @ 81C4F1C
msgbox Text_YouRejectIt
release
end
CapeBrinkTutor_EventScript_NoLeadStarter:: @ 81C4F26
msgbox Text_JustMistaken
release
end
EventScript_ChooseMoveTutorMon:: @ 81C4F30
special ChooseMonForMoveTutor
waitstate
lock
faceplayer
return
EventScript_CanOnlyBeLearnedOnce:: @ 81C4F37
textcolor 3
special DisableMsgBoxWalkaway
signmsg
msgbox Text_MoveCanOnlyBeLearnedOnce, MSGBOX_YESNO
normalmsg
call EventScript_RestorePrevTextColor
return
Movement_JumpInPlaceDown: @ 81C4F4C
jump_in_place_down
step_end
Movement_JumpInPlaceUp: @ 81C4F4E
jump_in_place_up
step_end
Movement_JumpInPlaceLeft: @ 81C4F50
jump_in_place_left
step_end
Movement_JumpInPlaceRight: @ 81C4F52
jump_in_place_right
step_end
|