-
Notifications
You must be signed in to change notification settings - Fork 817
/
battle.asm
1107 lines (910 loc) · 15.9 KB
/
battle.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
BattleText:: ; used only for BANK(BattleText)
BattleText_PlayerPickedUpPayDayMoney:
text "<PLAYER> picked up"
line "¥@"
deciram wPayDayMoney, 3, 6
text "!"
prompt
WildPokemonAppearedText:
text "Wild @"
text_from_ram wEnemyMonNick
text_start
line "appeared!"
prompt
HookedPokemonAttackedText:
text "The hooked"
line "@"
text_from_ram wEnemyMonNick
text_start
cont "attacked!"
prompt
PokemonFellFromTreeText:
text_from_ram wEnemyMonNick
text " fell"
line "out of the tree!"
prompt
WildCelebiAppearedText:
text "Wild @"
text_from_ram wEnemyMonNick
text_start
line "appeared!"
prompt
WantsToBattleText::
text "<ENEMY>"
line "wants to battle!"
prompt
BattleText_WildFled:
text "Wild @"
text_from_ram wEnemyMonNick
text_start
line "fled!"
prompt
BattleText_EnemyFled:
text "Enemy @"
text_from_ram wEnemyMonNick
text_start
line "fled!"
prompt
HurtByPoisonText:
text "<USER>"
line "is hurt by poison!"
prompt
HurtByBurnText:
text "<USER>'s"
line "hurt by its burn!"
prompt
LeechSeedSapsText:
text "LEECH SEED saps"
line "<USER>!"
prompt
HasANightmareText:
text "<USER>"
line "has a NIGHTMARE!"
prompt
HurtByCurseText:
text "<USER>'s"
line "hurt by the CURSE!"
prompt
SandstormHitsText:
text "The SANDSTORM hits"
line "<USER>!"
prompt
PerishCountText:
text "<USER>'s"
line "PERISH count is @"
deciram wDeciramBuffer, 1, 1
text "!"
prompt
BattleText_TargetRecoveredWithItem:
text "<TARGET>"
line "recovered with"
cont "@"
text_from_ram wStringBuffer1
text "."
prompt
BattleText_UserRecoveredPPUsing:
text "<USER>"
line "recovered PP using"
cont "@"
text_from_ram wStringBuffer1
text "."
prompt
BattleText_TargetWasHitByFutureSight:
text "<TARGET>"
line "was hit by FUTURE"
cont "SIGHT!"
prompt
BattleText_SafeguardFaded:
text "<USER>'s"
line "SAFEGUARD faded!"
prompt
BattleText_MonsLightScreenFell:
text_from_ram wStringBuffer1
text " #MON's"
line "LIGHT SCREEN fell!"
prompt
BattleText_MonsReflectFaded:
text_from_ram wStringBuffer1
text " #MON's"
line "REFLECT faded!"
prompt
BattleText_RainContinuesToFall:
text "Rain continues to"
line "fall."
prompt
BattleText_TheSunlightIsStrong:
text "The sunlight is"
line "strong."
prompt
BattleText_TheSandstormRages:
text "The SANDSTORM"
line "rages."
prompt
BattleText_TheRainStopped:
text "The rain stopped."
prompt
BattleText_TheSunlightFaded:
text "The sunlight"
line "faded."
prompt
BattleText_TheSandstormSubsided:
text "The SANDSTORM"
line "subsided."
prompt
BattleText_EnemyMonFainted:
text "Enemy @"
text_from_ram wEnemyMonNick
text_start
line "fainted!"
prompt
GotMoneyForWinningText:
text "<PLAYER> got ¥@"
deciram wBattleReward, 3, 6
text_start
line "for winning!"
prompt
BattleText_EnemyWasDefeated:
text "<ENEMY>"
line "was defeated!"
prompt
TiedAgainstText:
text "Tied against"
line "<ENEMY>!"
prompt
SentSomeToMomText:
text "<PLAYER> got ¥@"
deciram wBattleReward, 3, 6
text_start
line "for winning!"
cont "Sent some to MOM!"
prompt
SentHalfToMomText:
text "Sent half to MOM!"
prompt
SentAllToMomText:
text "Sent all to MOM!"
prompt
BattleText_0x80a4f:
text "<RIVAL>: Huh? I"
line "should've chosen"
cont "your #MON!"
prompt
BattleText_MonFainted:
text_from_ram wBattleMonNick
text_start
line "fainted!"
prompt
BattleText_UseNextMon:
text "Use next #MON?"
done
BattleText_0x80a93:
text "<RIVAL>: Yes!"
line "I guess I chose a"
cont "good #MON!"
prompt
LostAgainstText:
text "Lost against"
line "<ENEMY>!"
prompt
BattleText_EnemyIsAboutToUseWillPlayerChangeMon:
text "<ENEMY>"
line "is about to use"
cont "@"
text_from_ram wEnemyMonNick
text "."
para "Will <PLAYER>"
line "change #MON?"
done
BattleText_EnemySentOut:
text "<ENEMY>"
line "sent out"
cont "@"
text_from_ram wEnemyMonNick
text "!"
done
BattleText_TheresNoWillToBattle:
text "There's no will to"
line "battle!"
prompt
BattleText_AnEGGCantBattle:
text "An EGG can't"
line "battle!"
prompt
BattleText_CantEscape2:
text "Can't escape!"
prompt
BattleText_TheresNoEscapeFromTrainerBattle:
text "No! There's no"
line "running from a"
cont "trainer battle!"
prompt
BattleText_GotAwaySafely:
text "Got away safely!"
prompt
BattleText_UserFledUsingAStringBuffer1:
text "<USER>"
line "fled using a"
cont "@"
text_from_ram wStringBuffer1
text "!"
prompt
BattleText_CantEscape:
text "Can't escape!"
prompt
BattleText_UserHurtBySpikes:
text "<USER>'s"
line "hurt by SPIKES!"
prompt
RecoveredUsingText:
text "<TARGET>"
line "recovered using a"
cont "@"
text_from_ram wStringBuffer1
text "!"
prompt
BattleText_UsersStringBuffer1Activated:
text "<USER>'s"
line "@"
text_from_ram wStringBuffer1
text_start
cont "activated!"
prompt
BattleText_ItemsCantBeUsedHere:
text "Items can't be"
line "used here."
prompt
BattleText_MonIsAlreadyOut:
text_from_ram wBattleMonNick
text_start
line "is already out."
prompt
BattleText_MonCantBeRecalled:
text_from_ram wBattleMonNick
text_start
line "can't be recalled!"
prompt
BattleText_TheresNoPPLeftForThisMove:
text "There's no PP left"
line "for this move!"
prompt
BattleText_TheMoveIsDisabled:
text "The move is"
line "DISABLED!"
prompt
BattleText_MonHasNoMovesLeft:
text_from_ram wBattleMonNick
text_start
line "has no moves left!"
done
BattleText_TargetsEncoreEnded:
text "<TARGET>'s"
line "ENCORE ended!"
prompt
BattleText_StringBuffer1GrewToLevel:
text_from_ram wStringBuffer1
text " grew to"
line "level @"
deciram wCurPartyLevel, 1, 3
text "!@"
sound_dex_fanfare_50_79
db "@@"
BattleText_WildMonIsEating:
text "Wild @"
text_from_ram wEnemyMonNick
text_start
line "is eating!"
prompt
BattleText_WildMonIsAngry:
text "Wild @"
text_from_ram wEnemyMonNick
text_start
line "is angry!"
prompt
FastAsleepText:
text "<USER>"
line "is fast asleep!"
prompt
WokeUpText:
text "<USER>"
line "woke up!"
prompt
FrozenSolidText:
text "<USER>"
line "is frozen solid!"
prompt
FlinchedText:
text "<USER>"
line "flinched!"
prompt
MustRechargeText:
text "<USER>"
line "must recharge!"
prompt
DisabledNoMoreText:
text "<USER>'s"
line "disabled no more!"
prompt
IsConfusedText:
text "<USER>"
line "is confused!"
prompt
HurtItselfText:
text "It hurt itself in"
line "its confusion!"
prompt
ConfusedNoMoreText:
text "<USER>'s"
line "confused no more!"
prompt
BecameConfusedText:
text "<TARGET>"
line "became confused!"
prompt
; ItemHealedConfusion
BattleText_ItemHealedConfusion: ; ItemHealedConfusion
text "A @"
text_from_ram wStringBuffer1
text " rid"
line "<TARGET>"
cont "of its confusion."
prompt
AlreadyConfusedText:
text "<TARGET>'s"
line "already confused!"
prompt
BattleText_UsersHurtByStringBuffer1:
text "<USER>'s"
line "hurt by"
cont "@"
text_from_ram wStringBuffer1
text "!"
prompt
BattleText_UserWasReleasedFromStringBuffer1:
text "<USER>"
line "was released from"
cont "@"
text_from_ram wStringBuffer1
text "!"
prompt
UsedBindText:
text "<USER>"
line "used BIND on"
cont "<TARGET>!"
prompt
WhirlpoolTrapText:
text "<TARGET>"
line "was trapped!"
prompt
FireSpinTrapText:
text "<TARGET>"
line "was trapped!"
prompt
WrappedByText:
text "<TARGET>"
line "was WRAPPED by"
cont "<USER>!"
prompt
ClampedByText:
text "<TARGET>"
line "was CLAMPED by"
cont "<USER>!"
prompt
StoringEnergyText:
text "<USER>"
line "is storing energy!"
prompt
UnleashedEnergyText:
text "<USER>"
line "unleashed energy!"
prompt
HungOnText:
text "<TARGET>"
line "hung on with"
cont "@"
text_from_ram wStringBuffer1
text "!"
prompt
EnduredText:
text "<TARGET>"
line "ENDURED the hit!"
prompt
InLoveWithText:
text "<USER>"
line "is in love with"
cont "<TARGET>!"
prompt
InfatuationText:
text "<USER>'s"
line "infatuation kept"
cont "it from attacking!"
prompt
DisabledMoveText:
text "<USER>'s"
line "@"
text_from_ram wStringBuffer1
text " is"
cont "DISABLED!"
prompt
LoafingAroundText:
text_from_ram wBattleMonNick
text " is"
line "loafing around."
prompt
BeganToNapText:
text_from_ram wBattleMonNick
text " began"
line "to nap!"
prompt
WontObeyText:
text_from_ram wBattleMonNick
text " won't"
line "obey!"
prompt
TurnedAwayText:
text_from_ram wBattleMonNick
text " turned"
line "away!"
prompt
IgnoredOrdersText:
text_from_ram wBattleMonNick
text " ignored"
line "orders!"
prompt
IgnoredSleepingText:
text_from_ram wBattleMonNick
text " ignored"
line "orders…sleeping!"
prompt
NoPPLeftText:
text "But no PP is left"
line "for the move!"
prompt
HasNoPPLeftText:
text "<USER>"
line "has no PP left for"
cont "@"
text_from_ram wStringBuffer2
text "!"
prompt
WentToSleepText:
text "<USER>"
line "went to sleep!"
done
RestedText:
text "<USER>"
line "fell asleep and"
cont "became healthy!"
done
RegainedHealthText:
text "<USER>"
line "regained health!"
prompt
AttackMissedText:
text "<USER>'s"
line "attack missed!"
prompt
AttackMissed2Text:
text "<USER>'s"
line "attack missed!"
prompt
CrashedText:
text "<USER>"
line "kept going and"
cont "crashed!"
prompt
UnaffectedText:
text "<TARGET>'s"
line "unaffected!"
prompt
DoesntAffectText:
text "It doesn't affect"
line "<TARGET>!"
prompt
CriticalHitText:
text "A critical hit!"
prompt
OneHitKOText:
text "It's a one-hit KO!"
prompt
SuperEffectiveText:
text "It's super-"
line "effective!"
prompt
NotVeryEffectiveText:
text "It's not very"
line "effective…"
prompt
TookDownWithItText:
text "<TARGET>"
line "took down with it,"
cont "<USER>!"
prompt
RageBuildingText:
text "<USER>'s"
line "RAGE is building!"
prompt
GotAnEncoreText:
text "<TARGET>"
line "got an ENCORE!"
prompt
SharedPainText:
text "The battlers"
line "shared pain!"
prompt
TookAimText:
text "<USER>"
line "took aim!"
prompt
SketchedText:
text "<USER>"
line "SKETCHED"
cont "@"
text_from_ram wStringBuffer1
text "!"
prompt
DestinyBondEffectText:
text "<USER>'s"
line "trying to take its"
cont "opponent with it!"
prompt
SpiteEffectText:
text "<TARGET>'s"
line "@"
text_from_ram wStringBuffer1
text " was"
cont "reduced by @"
deciram wDeciramBuffer, 1, 1
text "!"
prompt
BellChimedText:
text "A bell chimed!"
line ""
prompt
FellAsleepText:
text "<TARGET>"
line "fell asleep!"
prompt
AlreadyAsleepText:
text "<TARGET>'s"
line "already asleep!"
prompt
WasPoisonedText:
text "<TARGET>"
line "was poisoned!"
prompt
BadlyPoisonedText:
text "<TARGET>'s"
line "badly poisoned!"
prompt
AlreadyPoisonedText:
text "<TARGET>'s"
line "already poisoned!"
prompt
SuckedHealthText:
text "Sucked health from"
line "<TARGET>!"
prompt
DreamEatenText:
text "<TARGET>'s"
line "dream was eaten!"
prompt
WasBurnedText:
text "<TARGET>"
line "was burned!"
prompt
DefrostedOpponentText:
text "<TARGET>"
line "was defrosted!"
prompt
WasFrozenText:
text "<TARGET>"
line "was frozen solid!"
prompt
WontRiseAnymoreText:
text "<USER>'s"
line "@"
text_from_ram wStringBuffer2
text " won't"
cont "rise anymore!"
prompt
WontDropAnymoreText:
text "<TARGET>'s"
line "@"
text_from_ram wStringBuffer2
text " won't"
cont "drop anymore!"
prompt
FledFromBattleText::
text "<USER>"
line "fled from battle!"
prompt
FledInFearText:
text "<TARGET>"
line "fled in fear!"
prompt
BlownAwayText:
text "<TARGET>"
line "was blown away!"
prompt
PlayerHitTimesText:
text "Hit @"
deciram wPlayerDamageTaken, 1, 1
text " times!"
prompt
EnemyHitTimesText:
text "Hit @"
deciram wEnemyDamageTaken, 1, 1
text " times!"
prompt
MistText:
text "<USER>'s"
line "shrouded in MIST!"
prompt
ProtectedByMistText:
text "<TARGET>'s"
line "protected by MIST."
prompt
GettingPumpedText:
interpret_data
text "<USER>'s"
line "getting pumped!"
prompt
RecoilText:
text "<USER>'s"
line "hit with recoil!"
prompt
MadeSubstituteText:
text "<USER>"
line "made a SUBSTITUTE!"
prompt
HasSubstituteText:
text "<USER>"
line "has a SUBSTITUTE!"
prompt
TooWeakSubText:
text "Too weak to make"
line "a SUBSTITUTE!"
prompt
SubTookDamageText:
text "The SUBSTITUTE"
line "took damage for"
cont "<TARGET>!"
prompt
SubFadedText:
text "<TARGET>'s"
line "SUBSTITUTE faded!"
prompt
LearnedMoveText:
text "<USER>"
line "learned"
cont "@"
text_from_ram wStringBuffer1
text "!"
prompt
WasSeededText:
text "<TARGET>"
line "was seeded!"
prompt
EvadedText:
text "<TARGET>"
line "evaded the attack!"
prompt
WasDisabledText:
text "<TARGET>'s"
line "@"
text_from_ram wStringBuffer1
text " was"
cont "DISABLED!"
prompt
CoinsScatteredText:
text "Coins scattered"
line "everywhere!"
prompt
TransformedTypeText:
text "<USER>"
line "transformed into"
cont "the @"
text_from_ram wStringBuffer1
text "-type!"
prompt
EliminatedStatsText:
text "All stat changes"
line "were eliminated!"
prompt
TransformedText:
text "<USER>"
line "TRANSFORMED into"
cont "@"
text_from_ram wStringBuffer1
text "!"
prompt
LightScreenEffectText:
text "<USER>'s"
line "SPCL.DEF rose!"
prompt
ReflectEffectText:
text "<USER>'s"
line "DEFENSE rose!"
prompt
NothingHappenedText:
text "But nothing"
line "happened."
prompt
ButItFailedText:
text "But it failed!"
prompt
ItFailedText:
text "It failed!"
prompt
DidntAffect1Text:
text "It didn't affect"
line "<TARGET>!"
prompt
DidntAffect2Text:
text "It didn't affect"
line "<TARGET>!"
prompt
HPIsFullText:
text "<USER>'s"
line "HP is full!"
prompt
DraggedOutText:
text "<USER>"
line "was dragged out!"
prompt
ParalyzedText:
text "<TARGET>'s"
line "paralyzed! Maybe"
cont "it can't attack!"
prompt
FullyParalyzedText:
text "<USER>'s"
line "fully paralyzed!"
prompt
AlreadyParalyzedText:
text "<TARGET>'s"
line "already paralyzed!"
prompt
ProtectedByText:
text "<TARGET>'s"
line "protected by"
cont "@"
text_from_ram wStringBuffer1
text "!"
prompt
MirrorMoveFailedText:
text "The MIRROR MOVE"
next "failed!"
prompt
StoleText:
text "<USER>"
line "stole @"
text_from_ram wStringBuffer1
text_start
cont "from its foe!"
prompt
CantEscapeNowText:
text "<TARGET>"
line "can't escape now!"
prompt
StartedNightmareText:
text "<TARGET>"
line "started to have a"
cont "NIGHTMARE!"
prompt
WasDefrostedText:
text "<USER>"
line "was defrosted!"
prompt
PutACurseText:
text "<USER>"
line "cut its own HP and"
para "put a CURSE on"
line "<TARGET>!"
prompt
ProtectedItselfText:
text "<USER>"
line "PROTECTED itself!"
prompt
ProtectingItselfText:
text "<TARGET>'s"
line "PROTECTING itself!"
done
SpikesText:
text "SPIKES scattered"
line "all around"
cont "<TARGET>!"
prompt
IdentifiedText:
text "<USER>"
line "identified"
cont "<TARGET>!"
prompt
StartPerishText:
text "Both #MON will"