ssanne8.asm 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. SSAnne8Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, SSAnne8TrainerHeader0
  4. ld de, SSAnne8ScriptPointers
  5. ld a, [wSSAnne8CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wSSAnne8CurScript], a
  8. ret
  9. SSAnne8ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. SSAnne8TextPointers:
  14. dw SSAnne8Text1
  15. dw SSAnne8Text2
  16. dw SSAnne8Text3
  17. dw SSAnne8Text4
  18. dw SSAnne8Text5
  19. dw SSAnne8Text6
  20. dw SSAnne8Text7
  21. dw SSAnne8Text8
  22. dw SSAnne8Text9
  23. dw PickUpItemText
  24. dw SSAnne8Text11
  25. SSAnne8TrainerHeader0:
  26. dbEventFlagBit EVENT_BEAT_SS_ANNE_8_TRAINER_0
  27. db ($2 << 4) ; trainer's view range
  28. dwEventFlagAddress EVENT_BEAT_SS_ANNE_8_TRAINER_0
  29. dw SSAnne8BattleText1 ; TextBeforeBattle
  30. dw SSAnne8AfterBattleText1 ; TextAfterBattle
  31. dw SSAnne8EndBattleText1 ; TextEndBattle
  32. dw SSAnne8EndBattleText1 ; TextEndBattle
  33. SSAnne8TrainerHeader1:
  34. dbEventFlagBit EVENT_BEAT_SS_ANNE_8_TRAINER_1
  35. db ($3 << 4) ; trainer's view range
  36. dwEventFlagAddress EVENT_BEAT_SS_ANNE_8_TRAINER_1
  37. dw SSAnne8BattleText2 ; TextBeforeBattle
  38. dw SSAnne8AfterBattleText2 ; TextAfterBattle
  39. dw SSAnne8EndBattleText2 ; TextEndBattle
  40. dw SSAnne8EndBattleText2 ; TextEndBattle
  41. SSAnne8TrainerHeader2:
  42. dbEventFlagBit EVENT_BEAT_SS_ANNE_8_TRAINER_2
  43. db ($2 << 4) ; trainer's view range
  44. dwEventFlagAddress EVENT_BEAT_SS_ANNE_8_TRAINER_2
  45. dw SSAnne8BattleText3 ; TextBeforeBattle
  46. dw SSAnne8AfterBattleText3 ; TextAfterBattle
  47. dw SSAnne8EndBattleText3 ; TextEndBattle
  48. dw SSAnne8EndBattleText3 ; TextEndBattle
  49. SSAnne8TrainerHeader3:
  50. dbEventFlagBit EVENT_BEAT_SS_ANNE_8_TRAINER_3
  51. db ($2 << 4) ; trainer's view range
  52. dwEventFlagAddress EVENT_BEAT_SS_ANNE_8_TRAINER_3
  53. dw SSAnne8BattleText4 ; TextBeforeBattle
  54. dw SSAnne8AfterBattleText4 ; TextAfterBattle
  55. dw SSAnne8EndBattleText4 ; TextEndBattle
  56. dw SSAnne8EndBattleText4 ; TextEndBattle
  57. db $ff
  58. SSAnne8Text1:
  59. TX_ASM
  60. ld hl, SSAnne8TrainerHeader0
  61. call TalkToTrainer
  62. jp TextScriptEnd
  63. SSAnne8Text2:
  64. TX_ASM
  65. ld hl, SSAnne8TrainerHeader1
  66. call TalkToTrainer
  67. jp TextScriptEnd
  68. SSAnne8Text3:
  69. TX_ASM
  70. ld hl, SSAnne8TrainerHeader2
  71. call TalkToTrainer
  72. jp TextScriptEnd
  73. SSAnne8Text4:
  74. TX_ASM
  75. ld hl, SSAnne8TrainerHeader3
  76. call TalkToTrainer
  77. jp TextScriptEnd
  78. SSAnne8Text8:
  79. TX_FAR _SSAnne8Text8
  80. TX_ASM
  81. ld a, WIGGLYTUFF
  82. call PlayCry
  83. jp TextScriptEnd
  84. SSAnne8BattleText1:
  85. TX_FAR _SSAnne8BattleText1
  86. db "@"
  87. SSAnne8EndBattleText1:
  88. TX_FAR _SSAnne8EndBattleText1
  89. db "@"
  90. SSAnne8AfterBattleText1:
  91. TX_FAR _SSAnne8AfterBattleText1
  92. db "@"
  93. SSAnne8BattleText2:
  94. TX_FAR _SSAnne8BattleText2
  95. db "@"
  96. SSAnne8EndBattleText2:
  97. TX_FAR _SSAnne8EndBattleText2
  98. db "@"
  99. SSAnne8AfterBattleText2:
  100. TX_FAR _SSAnne8AfterBattleText2
  101. db "@"
  102. SSAnne8BattleText3:
  103. TX_FAR _SSAnne8BattleText3
  104. db "@"
  105. SSAnne8EndBattleText3:
  106. TX_FAR _SSAnne8EndBattleText3
  107. db "@"
  108. SSAnne8AfterBattleText3:
  109. TX_FAR _SSAnne8AfterBattleText3
  110. db "@"
  111. SSAnne8BattleText4:
  112. TX_FAR _SSAnne8BattleText4
  113. db "@"
  114. SSAnne8EndBattleText4:
  115. TX_FAR _SSAnne8EndBattleText4
  116. db "@"
  117. SSAnne8AfterBattleText4:
  118. TX_FAR _SSAnne8AfterBattleText4
  119. db "@"
  120. SSAnne8Text5:
  121. TX_FAR _SSAnne8Text5
  122. db "@"
  123. SSAnne8Text6:
  124. TX_FAR _SSAnne8Text6
  125. db "@"
  126. SSAnne8Text7:
  127. TX_FAR _SSAnne8Text7
  128. db "@"
  129. SSAnne8Text9:
  130. TX_FAR _SSAnne8Text9
  131. db "@"
  132. SSAnne8Text11:
  133. TX_FAR _SSAnne8Text11
  134. db "@"