ssanne9.asm 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. SSAnne9Script:
  2. ld a, $1
  3. ld [wAutoTextBoxDrawingControl], a
  4. xor a
  5. ld [wDoNotWaitForButtonPressAfterDisplayingText], a
  6. ld hl, SSAnne9TrainerHeader0
  7. ld de, SSAnne9ScriptPointers
  8. ld a, [wSSAnne9CurScript]
  9. call ExecuteCurMapScriptInTable
  10. ld [wSSAnne9CurScript], a
  11. ret
  12. SSAnne9ScriptPointers:
  13. dw CheckFightingMapTrainers
  14. dw DisplayEnemyTrainerTextAndStartBattle
  15. dw EndTrainerBattle
  16. SSAnne9TextPointers:
  17. dw SSAnne9Text1
  18. dw SSAnne9Text2
  19. dw SSAnne9Text3
  20. dw SSAnne9Text4
  21. dw SSAnne9Text5
  22. dw PickUpItemText
  23. dw SSAnne9Text7
  24. dw SSAnne9Text8
  25. dw PickUpItemText
  26. dw SSAnne9Text10
  27. dw SSAnne9Text11
  28. dw SSAnne9Text12
  29. dw SSAnne9Text13
  30. SSAnne9TrainerHeader0:
  31. dbEventFlagBit EVENT_BEAT_SS_ANNE_9_TRAINER_0
  32. db ($2 << 4) ; trainer's view range
  33. dwEventFlagAddress EVENT_BEAT_SS_ANNE_9_TRAINER_0
  34. dw SSAnne9BattleText1 ; TextBeforeBattle
  35. dw SSAnne9AfterBattleText1 ; TextAfterBattle
  36. dw SSAnne9EndBattleText1 ; TextEndBattle
  37. dw SSAnne9EndBattleText1 ; TextEndBattle
  38. SSAnne9TrainerHeader1:
  39. dbEventFlagBit EVENT_BEAT_SS_ANNE_9_TRAINER_1
  40. db ($3 << 4) ; trainer's view range
  41. dwEventFlagAddress EVENT_BEAT_SS_ANNE_9_TRAINER_1
  42. dw SSAnne9BattleText2 ; TextBeforeBattle
  43. dw SSAnne9AfterBattleText2 ; TextAfterBattle
  44. dw SSAnne9EndBattleText2 ; TextEndBattle
  45. dw SSAnne9EndBattleText2 ; TextEndBattle
  46. SSAnne9TrainerHeader2:
  47. dbEventFlagBit EVENT_BEAT_SS_ANNE_9_TRAINER_2
  48. db ($3 << 4) ; trainer's view range
  49. dwEventFlagAddress EVENT_BEAT_SS_ANNE_9_TRAINER_2
  50. dw SSAnne9BattleText3 ; TextBeforeBattle
  51. dw SSAnne9AfterBattleText3 ; TextAfterBattle
  52. dw SSAnne9EndBattleText3 ; TextEndBattle
  53. dw SSAnne9EndBattleText3 ; TextEndBattle
  54. SSAnne9TrainerHeader3:
  55. dbEventFlagBit EVENT_BEAT_SS_ANNE_9_TRAINER_3
  56. db ($2 << 4) ; trainer's view range
  57. dwEventFlagAddress EVENT_BEAT_SS_ANNE_9_TRAINER_3
  58. dw SSAnne9BattleText4 ; TextBeforeBattle
  59. dw SSAnne9AfterBattleText4 ; TextAfterBattle
  60. dw SSAnne9EndBattleText4 ; TextEndBattle
  61. dw SSAnne9EndBattleText4 ; TextEndBattle
  62. db $ff
  63. SSAnne9Text1:
  64. TX_ASM
  65. ld hl, SSAnne9TrainerHeader0
  66. call TalkToTrainer
  67. jp TextScriptEnd
  68. SSAnne9Text2:
  69. TX_ASM
  70. ld hl, SSAnne9TrainerHeader1
  71. call TalkToTrainer
  72. jp TextScriptEnd
  73. SSAnne9Text3:
  74. TX_ASM
  75. ld hl, SSAnne9TrainerHeader2
  76. call TalkToTrainer
  77. jp TextScriptEnd
  78. SSAnne9Text4:
  79. TX_ASM
  80. ld hl, SSAnne9TrainerHeader3
  81. call TalkToTrainer
  82. jp TextScriptEnd
  83. SSAnne9Text5:
  84. TX_ASM
  85. call SaveScreenTilesToBuffer1
  86. ld hl, SSAnne9Text_61bf2
  87. call PrintText
  88. call LoadScreenTilesFromBuffer1
  89. ld a, SNORLAX
  90. call DisplayPokedex
  91. jp TextScriptEnd
  92. SSAnne9Text_61bf2:
  93. TX_FAR _SSAnne9Text_61bf2
  94. db "@"
  95. SSAnne9Text7:
  96. TX_ASM
  97. ld hl, SSAnne9Text_61c01
  98. call PrintText
  99. jp TextScriptEnd
  100. SSAnne9Text_61c01:
  101. TX_FAR _SSAnne9Text_61c01
  102. db "@"
  103. SSAnne9Text8:
  104. TX_ASM
  105. ld hl, SSAnne9Text_61c10
  106. call PrintText
  107. jp TextScriptEnd
  108. SSAnne9Text_61c10:
  109. TX_FAR _SSAnne9Text_61c10
  110. db "@"
  111. SSAnne9Text10:
  112. TX_ASM
  113. ld hl, SSAnne9Text_61c1f
  114. call PrintText
  115. jp TextScriptEnd
  116. SSAnne9Text_61c1f:
  117. TX_FAR _SSAnne9Text_61c1f
  118. db "@"
  119. SSAnne9Text11:
  120. TX_ASM
  121. ld hl, SSAnne9Text_61c2e
  122. call PrintText
  123. jp TextScriptEnd
  124. SSAnne9Text_61c2e:
  125. TX_FAR _SSAnne9Text_61c2e
  126. db "@"
  127. SSAnne9Text12:
  128. TX_ASM
  129. ld hl, SSAnne9Text_61c3d
  130. call PrintText
  131. jp TextScriptEnd
  132. SSAnne9Text_61c3d:
  133. TX_FAR _SSAnne9Text_61c3d
  134. db "@"
  135. SSAnne9Text13:
  136. TX_ASM
  137. ld hl, SSAnne9Text_61c4c
  138. call PrintText
  139. jp TextScriptEnd
  140. SSAnne9Text_61c4c:
  141. TX_FAR _SSAnne9Text_61c4c
  142. db "@"
  143. SSAnne9BattleText1:
  144. TX_FAR _SSAnne9BattleText1
  145. db "@"
  146. SSAnne9EndBattleText1:
  147. TX_FAR _SSAnne9EndBattleText1
  148. db "@"
  149. SSAnne9AfterBattleText1:
  150. TX_FAR _SSAnne9AfterBattleText1
  151. db "@"
  152. SSAnne9BattleText2:
  153. TX_FAR _SSAnne9BattleText2
  154. db "@"
  155. SSAnne9EndBattleText2:
  156. TX_FAR _SSAnne9EndBattleText2
  157. db "@"
  158. SSAnne9AfterBattleText2:
  159. TX_FAR _SSAnne9AfterBattleText2
  160. db "@"
  161. SSAnne9BattleText3:
  162. TX_FAR _SSAnne9BattleText3
  163. db "@"
  164. SSAnne9EndBattleText3:
  165. TX_FAR _SSAnne9EndBattleText3
  166. db "@"
  167. SSAnne9AfterBattleText3:
  168. TX_FAR _SSAnne9AfterBattleText3
  169. db "@"
  170. SSAnne9BattleText4:
  171. TX_FAR _SSAnne9BattleText4
  172. db "@"
  173. SSAnne9EndBattleText4:
  174. TX_FAR _SSAnne9EndBattleText4
  175. db "@"
  176. SSAnne9AfterBattleText4:
  177. TX_FAR _SSAnne9AfterBattleText4
  178. db "@"