-
Notifications
You must be signed in to change notification settings - Fork 830
/
Copy pathcommon_2.asm
1577 lines (1261 loc) · 23.1 KB
/
common_2.asm
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
_NoPhotoText::
text "Oh, no picture?"
line "Come again, OK?"
done
_EggPhotoText::
text "An EGG? My talent"
line "is worth more…"
done
_NameRaterHelloText::
text "Hello, hello! I'm"
line "the NAME RATER."
para "I rate the names"
line "of #MON."
para "Would you like me"
line "to rate names?"
done
_NameRaterWhichMonText::
text "Which #MON's"
line "nickname should I"
cont "rate for you?"
prompt
_NameRaterBetterNameText::
text "Hm… @"
text_ram wStringBuffer1
text "…"
line "That's a fairly"
cont "decent name."
para "But, how about a"
line "slightly better"
cont "nickname?"
para "Want me to give it"
line "a better name?"
done
_NameRaterWhatNameText::
text "All right. What"
line "name should we"
cont "give it, then?"
prompt
_NameRaterFinishedText::
text "That's a better"
line "name than before!"
para "Well done!"
done
_NameRaterComeAgainText::
text "OK, then. Come"
line "again sometime."
done
_NameRaterPerfectNameText::
text "Hm… @"
text_ram wStringBuffer1
text "?"
line "What a great name!"
cont "It's perfect."
para "Treat @"
text_ram wStringBuffer1
text_start
line "with loving care."
done
_NameRaterEggText::
text "Whoa… That's just"
line "an EGG."
done
_NameRaterSameNameText::
text "It might look the"
line "same as before,"
para "but this new name"
line "is much better!"
para "Well done!"
done
_NameRaterNamedText::
text "All right. This"
line "#MON is now"
cont "named @"
text_ram wStringBuffer1
text "."
prompt
Text_Gained::
text_ram wStringBuffer1
text " gained@"
text_end
_BoostedExpPointsText::
; BUG: Five-digit experience gain is printed incorrectly (see docs/bugs_and_glitches.md)
text_start
line "a boosted"
cont "@"
text_decimal wStringBuffer2, 2, 4
text " EXP. Points!"
prompt
_ExpPointsText::
; BUG: Five-digit experience gain is printed incorrectly (see docs/bugs_and_glitches.md)
text_start
line "@"
text_decimal wStringBuffer2, 2, 4
text " EXP. Points!"
prompt
_GoMonText::
text "Go! @"
text_end
_DoItMonText::
text "Do it! @"
text_end
_GoForItMonText::
text "Go for it,"
line "@"
text_end
_YourFoesWeakGetmMonText::
text "Your foe's weak!"
line "Get'm, @"
text_end
_BattleMonNicknameText::
text_ram wBattleMonNickname
text "!"
done
_BattleMonNickCommaText::
text_ram wBattleMonNickname
text ",@"
text_end
_ThatsEnoughComeBackText::
text " that's"
line "enough! Come back!@"
text_end
_OKComeBackText::
text " OK!"
line "Come back!@"
text_end
_GoodComeBackText::
text " good!"
line "Come back!@"
text_end
_ComeBackText::
text " come"
line "back!"
done
_BootedTMText::
text "Booted up a TM."
prompt
_BootedHMText::
text "Booted up an HM."
prompt
_ContainedMoveText::
text "It contained"
line "@"
text_ram wStringBuffer2
text "."
para "Teach @"
text_ram wStringBuffer2
text_start
line "to a #MON?"
done
_TMHMNotCompatibleText::
text_ram wStringBuffer2
text " is"
line "not compatible"
cont "with @"
text_ram wStringBuffer1
text "."
para "It can't learn"
line "@"
text_ram wStringBuffer2
text "."
prompt
_NoRoomTMHMText::
text "You have no room"
line "for any more"
cont "@"
text_ram wStringBuffer1
text "S."
prompt
_ReceivedTMHMText::
text "You received"
line "@"
text_ram wStringBuffer1
text "!"
prompt
_MysteryGiftCanceledText::
text "The link has been"
line "cancelled."
prompt
_MysteryGiftCommErrorText::
text "Communication"
line "error."
prompt
_RetrieveMysteryGiftText::
text "Must retrieve GIFT"
line "at #MON CENTER."
prompt
_YourFriendIsNotReadyText::
text "Your friend isn't"
line "ready."
prompt
_MysteryGiftFiveADayText::
text "Sorry--only five"
line "GIFTS a day."
prompt
_MysteryGiftOneADayText::
text "Sorry. One GIFT"
line "a day per person."
prompt
_MysteryGiftSentText::
text_ram wMysteryGiftPartnerName
text " sent"
line "@"
text_ram wStringBuffer1
text "."
prompt
_MysteryGiftSentHomeText::
text_ram wMysteryGiftPartnerName
text " sent"
line "@"
text_ram wStringBuffer1
text_start
cont "to @"
text_ram wMysteryGiftPlayerName
text "'s home."
prompt
_NameCardReceivedCardText::
text "Received"
line "@"
text_ram wMysteryGiftCardHolderName
text "'s CARD."
prompt
_NameCardListedCardText::
text_ram wMysteryGiftCardHolderName
text "'s CARD was"
line "listed as no.@"
text_decimal wTextDecimalByte, 1, 2
text "."
prompt
_NameCardNotRegisteredCardText::
text "The CARD was not"
line "registered."
prompt
_NameCardLinkCancelledText::
text "The link has been"
line "cancelled."
prompt
_NameCardLinkCommErrorText::
text "Communication"
line "error."
prompt
_BadgeRequiredText::
text "Sorry! A new BADGE"
line "is required."
prompt
_CantUseItemText::
text "Can't use that"
line "here."
prompt
_UseCutText::
text_ram wStringBuffer2
text " used"
line "CUT!"
prompt
_CutNothingText::
text "There's nothing to"
line "CUT here."
prompt
_BlindingFlashText::
text "A blinding FLASH"
line "lights the area!@"
text_promptbutton
text_end
text_end ; unreferenced
_UsedSurfText::
text_ram wStringBuffer2
text " used"
line "SURF!"
done
_CantSurfText::
text "You can't SURF"
line "here."
prompt
_AlreadySurfingText::
text "You're already"
line "SURFING."
prompt
_AskSurfText::
text "The water is calm."
line "Want to SURF?"
done
_UseWaterfallText::
text_ram wStringBuffer2
text " used"
line "WATERFALL!"
done
_HugeWaterfallText::
text "Wow, it's a huge"
line "waterfall."
done
_AskWaterfallText::
text "Do you want to use"
line "WATERFALL?"
done
_UseDigText::
text_ram wStringBuffer2
text " used"
line "DIG!"
done
_UseEscapeRopeText::
text "<PLAYER> used an"
line "ESCAPE ROPE."
done
_CantUseDigText::
text "Can't use that"
line "here."
done
_TeleportReturnText::
text "Return to the last"
line "#MON CENTER."
done
_CantUseTeleportText::
text "Can't use that"
line "here."
para ""
done
_AlreadyUsingStrengthText::
text "A #MON is using"
line "STRENGTH already."
prompt
_UseStrengthText::
text_ram wStringBuffer2
text " used"
line "STRENGTH!"
done
_MoveBoulderText::
text_ram wStringBuffer1
text " can"
line "move boulders."
prompt
_AskStrengthText::
text "A #MON may be"
line "able to move this."
para "Want to use"
line "STRENGTH?"
done
_BouldersMoveText::
text "Boulders may now"
line "be moved!"
done
_BouldersMayMoveText::
text "A #MON may be"
line "able to move this."
done
_UseWhirlpoolText::
text_ram wStringBuffer2
text " used"
line "WHIRLPOOL!"
prompt
_MayPassWhirlpoolText::
text "It's a vicious"
line "whirlpool!"
para "A #MON may be"
line "able to pass it."
done
_AskWhirlpoolText::
text "A whirlpool is in"
line "the way."
para "Want to use"
line "WHIRLPOOL?"
done
_UseHeadbuttText::
text_ram wStringBuffer2
text " did a"
line "HEADBUTT!"
prompt
_HeadbuttNothingText::
text "Nope. Nothing…"
done
_AskHeadbuttText::
text "A #MON could be"
line "in this tree."
para "Want to HEADBUTT"
line "it?"
done
_UseRockSmashText::
text_ram wStringBuffer2
text " used"
line "ROCK SMASH!"
prompt
_MaySmashText::
text "Maybe a #MON"
line "can break this."
done
_AskRockSmashText::
text "This rock looks"
line "breakable."
para "Want to use ROCK"
line "SMASH?"
done
_RodBiteText::
text "Oh!"
line "A bite!"
prompt
_RodNothingText::
text "Not even a nibble!"
prompt
_UnusedNothingHereText::
text "Looks like there's"
line "nothing here."
prompt
_CantGetOffBikeText::
text "You can't get off"
line "here!"
done
_GotOnBikeText::
text "<PLAYER> got on the"
line "@"
text_ram wStringBuffer2
text "."
done
_GotOffBikeText::
text "<PLAYER> got off"
line "the @"
text_ram wStringBuffer2
text "."
done
_AskCutText::
text "This tree can be"
line "CUT!"
para "Want to use CUT?"
done
_CanCutText::
text "This tree can be"
line "CUT!"
done
_FoundItemText::
text "<PLAYER> found"
line "@"
text_ram wStringBuffer3
text "!"
done
_CantCarryItemText::
text "But <PLAYER> can't"
line "carry any more"
cont "items."
done
_WhitedOutText::
text "<PLAYER> is out of"
line "useable #MON!"
para "<PLAYER> whited"
line "out!"
done
_ItemfinderItemNearbyText::
text "Yes! ITEMFINDER"
line "indicates there's"
cont "an item nearby."
prompt
_ItemfinderNopeText::
text "Nope! ITEMFINDER"
line "isn't responding."
prompt
_PoisonFaintText::
text_ram wStringBuffer3
text_start
line "fainted!"
prompt
_PoisonWhiteoutText::
text "<PLAYER> is out of"
line "useable #MON!"
para "<PLAYER> whited"
line "out!"
prompt
_UseSweetScentText::
text_ram wStringBuffer3
text " used"
line "SWEET SCENT!"
done
_SweetScentNothingText::
text "Looks like there's"
line "nothing here…"
done
_SquirtbottleNothingText::
text "<PLAYER> sprinkled"
line "water."
para "But nothing"
line "happened…"
done
_UseSacredAshText::
text "<PLAYER>'s #MON"
line "were all healed!"
done
_AnEggCantHoldAnItemText::
text "An EGG can't hold"
line "an item."
prompt
_PackNoItemText::
text "No items."
done
_AskThrowAwayText::
text "Throw away how"
line "many?"
done
_AskQuantityThrowAwayText::
text "Throw away @"
text_decimal wItemQuantityChange, 1, 2
text_start
line "@"
text_ram wStringBuffer2
text "(S)?"
done
_ThrewAwayText::
text "Threw away"
line "@"
text_ram wStringBuffer2
text "(S)."
prompt
_OakThisIsntTheTimeText::
text "OAK: <PLAYER>!"
line "This isn't the"
cont "time to use that!"
prompt
_YouDontHaveAMonText::
text "You don't have a"
line "#MON!"
prompt
_RegisteredItemText::
text "Registered the"
line "@"
text_ram wStringBuffer2
text "."
prompt
_CantRegisterText::
text "You can't register"
line "that item."
prompt
_AskItemMoveText::
text "Where should this"
line "be moved to?"
done
_PackEmptyText::
text_start
done
_YouCantUseItInABattleText::
text "You can't use it"
line "in a battle."
prompt
_AreYouABoyOrAreYouAGirlText::
text "Are you a boy?"
line "Or are you a girl?"
done
Text_BattleEffectActivate::
text "<USER>'s"
line "@"
text_ram wStringBuffer2
text_end
text_end ; unreferenced
_BattleStatWentWayUpText::
text_pause
text "<SCROLL>went way up!"
prompt
_BattleStatWentUpText::
text " went up!"
prompt
Text_BattleFoeEffectActivate::
text "<TARGET>'s"
line "@"
text_ram wStringBuffer2
text_end
text_end ; unreferenced
_BattleStatSharplyFellText::
text_pause
text "<SCROLL>sharply fell!"
prompt
_BattleStatFellText::
text " fell!"
prompt
Text_BattleUser::
text "<USER>@"
text_end
_BattleMadeWhirlwindText::
text_start
line "made a whirlwind!"
prompt
_BattleTookSunlightText::
text_start
line "took in sunlight!"
prompt
_BattleLoweredHeadText::
text_start
line "lowered its head!"
prompt
_BattleGlowingText::
text_start
line "is glowing!"
prompt
_BattleFlewText::
text_start
line "flew up high!"
prompt
_BattleDugText::
text_start
line "dug a hole!"
prompt
_ActorNameText::
text "<USER>@"
text_end
_UsedMove1Text::
text_start
line "used @"
text_end
_UsedMove2Text::
text_start
line "used @"
text_end
_UsedInsteadText::
text "instead,"
cont "@"
text_end
_MoveNameText::
text_ram wStringBuffer2
text_end
text_end ; unreferenced
_EndUsedMove1Text::
text "!"
done
_EndUsedMove2Text::
text "!"
done
_EndUsedMove3Text::
text "!"
done
_EndUsedMove4Text::
text "!"
done
_EndUsedMove5Text::
text "!"
done
Text_BreedHuh::
text "Huh?"
para "@"
text_end
_BreedClearboxText::
text_start
done
_BreedEggHatchText::
text_ram wStringBuffer1
text " came"
line "out of its EGG!@"
sound_caught_mon
text_promptbutton
text_end
text_end ; unreferenced
_BreedAskNicknameText::
text "Give a nickname to"
line "@"
text_ram wStringBuffer1
text "?"
done
_LeftWithDayCareLadyText::
text "It's @"
text_ram wBreedMon2Nickname
text_start
line "that was left with"
cont "the DAY-CARE LADY."
done
_LeftWithDayCareManText::
text "It's @"
text_ram wBreedMon1Nickname
text_start
line "that was left with"
cont "the DAY-CARE MAN."
done
_BreedBrimmingWithEnergyText::
text "It's brimming with"
line "energy."
prompt
_BreedNoInterestText::
text "It has no interest"
line "in @"
text_ram wStringBuffer1
text "."
prompt
_BreedAppearsToCareForText::
text "It appears to care"
line "for @"
text_ram wStringBuffer1
text "."
prompt
_BreedFriendlyText::
text "It's friendly with"
line "@"
text_ram wStringBuffer1
text "."
prompt
_BreedShowsInterestText::
text "It shows interest"
line "in @"
text_ram wStringBuffer1
text "."
prompt
_EmptyMailboxText::
text "There's no MAIL"
line "here."
prompt
_MailClearedPutAwayText::
text "The cleared MAIL"
line "was put away."
prompt
_MailPackFullText::
text "The PACK is full."
prompt
_MailMessageLostText::
text "The MAIL's message"
line "will be lost. OK?"
done
_MailAlreadyHoldingItemText::
text "It's already hold-"
line "ing an item."
prompt
_MailEggText::
text "An EGG can't hold"
line "any MAIL."
prompt
_MailMovedFromBoxText::
text "The MAIL was moved"
line "from the MAILBOX."
prompt
_YesPromptText:: ; unreferenced
text "Yes"
prompt
_NoPromptText:: ; unreferenced
text "No"
prompt
_AnimationTypeText:: ; unreferenced
text_decimal wcf64, 1, 3
text " @"
text_ram wStringBuffer1
text_start
line "Animation type @"
text_ram wStringBuffer2
text_end
text_end ; unreferenced
_MonNumberText:: ; unreferenced
text "#MON number?"
done
_WasSentToBillsPCText::
text_ram wStringBuffer1
text " was"
line "sent to BILL's PC."
prompt
_PCGottaHavePokemonText::
text "You gotta have"
line "#MON to call!"
prompt
_PCWhatText::
text "What?"
done
_PCMonHoldingMailText::
text "There is a #MON"
line "holding MAIL."
para "Please remove the"
line "MAIL."
prompt
_PCNoSingleMonText::
text "You don't have a"
line "single #MON!"
prompt
_PCCantDepositLastMonText::
text "You can't deposit"
line "your last #MON!"
prompt
_PCCantTakeText::
text "You can't take any"
line "more #MON."
prompt
_ContestCaughtMonText::
text "Caught @"
text_ram wStringBuffer1
text "!"
prompt
_ContestAskSwitchText::
text "Switch #MON?"
done
_ContestAlreadyCaughtText::
text "You already caught"
line "a @"
text_ram wStringBuffer1
text "."
prompt
_ContestJudging_FirstPlaceText::
text "This Bug-Catching"
line "Contest winner is@"
text_pause
text "…"
para "@"
text_ram wBugContestWinnerName
text ","
line "who caught a"
cont "@"
text_ram wStringBuffer1
text "!@"
text_end
_ContestJudging_FirstPlaceScoreText::
text_start
para "The winning score"
line "was @"
text_decimal wBugContestFirstPlaceScore, 2, 3
text " points!"
prompt
_ContestJudging_SecondPlaceText::
text "Placing second was"
line "@"
text_ram wBugContestWinnerName
text ","