route19.asm 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. Route19Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, Route19TrainerHeader0
  4. ld de, Route19ScriptPointers
  5. ld a, [wRoute19CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRoute19CurScript], a
  8. ret
  9. Route19ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. Route19TextPointers:
  14. dw Route19Text1
  15. dw Route19Text2
  16. dw Route19Text3
  17. dw Route19Text4
  18. dw Route19Text5
  19. dw Route19Text6
  20. dw Route19Text7
  21. dw Route19Text8
  22. dw Route19Text9
  23. dw Route19Text10
  24. dw Route19Text11
  25. Route19TrainerHeader0:
  26. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_0
  27. db ($4 << 4) ; trainer's view range
  28. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_0
  29. dw Route19BattleText1 ; TextBeforeBattle
  30. dw Route19AfterBattleText1 ; TextAfterBattle
  31. dw Route19EndBattleText1 ; TextEndBattle
  32. dw Route19EndBattleText1 ; TextEndBattle
  33. Route19TrainerHeader1:
  34. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_1
  35. db ($3 << 4) ; trainer's view range
  36. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_1
  37. dw Route19BattleText2 ; TextBeforeBattle
  38. dw Route19AfterBattleText2 ; TextAfterBattle
  39. dw Route19EndBattleText2 ; TextEndBattle
  40. dw Route19EndBattleText2 ; TextEndBattle
  41. Route19TrainerHeader2:
  42. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_2
  43. db ($3 << 4) ; trainer's view range
  44. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_2
  45. dw Route19BattleText3 ; TextBeforeBattle
  46. dw Route19AfterBattleText3 ; TextAfterBattle
  47. dw Route19EndBattleText3 ; TextEndBattle
  48. dw Route19EndBattleText3 ; TextEndBattle
  49. Route19TrainerHeader3:
  50. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_3
  51. db ($4 << 4) ; trainer's view range
  52. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_3
  53. dw Route19BattleText4 ; TextBeforeBattle
  54. dw Route19AfterBattleText4 ; TextAfterBattle
  55. dw Route19EndBattleText4 ; TextEndBattle
  56. dw Route19EndBattleText4 ; TextEndBattle
  57. Route19TrainerHeader4:
  58. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_4
  59. db ($4 << 4) ; trainer's view range
  60. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_4
  61. dw Route19BattleText5 ; TextBeforeBattle
  62. dw Route19AfterBattleText5 ; TextAfterBattle
  63. dw Route19EndBattleText5 ; TextEndBattle
  64. dw Route19EndBattleText5 ; TextEndBattle
  65. Route19TrainerHeader5:
  66. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_5
  67. db ($4 << 4) ; trainer's view range
  68. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_5
  69. dw Route19BattleText6 ; TextBeforeBattle
  70. dw Route19AfterBattleText6 ; TextAfterBattle
  71. dw Route19EndBattleText6 ; TextEndBattle
  72. dw Route19EndBattleText6 ; TextEndBattle
  73. Route19TrainerHeader6:
  74. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_6
  75. db ($3 << 4) ; trainer's view range
  76. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_6
  77. dw Route19BattleText7 ; TextBeforeBattle
  78. dw Route19AfterBattleText7 ; TextAfterBattle
  79. dw Route19EndBattleText7 ; TextEndBattle
  80. dw Route19EndBattleText7 ; TextEndBattle
  81. Route19TrainerHeader7:
  82. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_7, 1
  83. db ($4 << 4) ; trainer's view range
  84. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_7, 1
  85. dw Route19BattleText8 ; TextBeforeBattle
  86. dw Route19AfterBattleText8 ; TextAfterBattle
  87. dw Route19EndBattleText8 ; TextEndBattle
  88. dw Route19EndBattleText8 ; TextEndBattle
  89. Route19TrainerHeader8:
  90. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_8, 1
  91. db ($4 << 4) ; trainer's view range
  92. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_8, 1
  93. dw Route19BattleText9 ; TextBeforeBattle
  94. dw Route19AfterBattleText9 ; TextAfterBattle
  95. dw Route19EndBattleText9 ; TextEndBattle
  96. dw Route19EndBattleText9 ; TextEndBattle
  97. Route19TrainerHeader9:
  98. dbEventFlagBit EVENT_BEAT_ROUTE_19_TRAINER_9, 1
  99. db ($4 << 4) ; trainer's view range
  100. dwEventFlagAddress EVENT_BEAT_ROUTE_19_TRAINER_9, 1
  101. dw Route19BattleText10 ; TextBeforeBattle
  102. dw Route19AfterBattleText10 ; TextAfterBattle
  103. dw Route19EndBattleText10 ; TextEndBattle
  104. dw Route19EndBattleText10 ; TextEndBattle
  105. db $ff
  106. Route19Text1:
  107. TX_ASM
  108. ld hl, Route19TrainerHeader0
  109. call TalkToTrainer
  110. jp TextScriptEnd
  111. Route19Text2:
  112. TX_ASM
  113. ld hl, Route19TrainerHeader1
  114. call TalkToTrainer
  115. jp TextScriptEnd
  116. Route19Text3:
  117. TX_ASM
  118. ld hl, Route19TrainerHeader2
  119. call TalkToTrainer
  120. jp TextScriptEnd
  121. Route19Text4:
  122. TX_ASM
  123. ld hl, Route19TrainerHeader3
  124. call TalkToTrainer
  125. jp TextScriptEnd
  126. Route19Text5:
  127. TX_ASM
  128. ld hl, Route19TrainerHeader4
  129. call TalkToTrainer
  130. jp TextScriptEnd
  131. Route19Text6:
  132. TX_ASM
  133. ld hl, Route19TrainerHeader5
  134. call TalkToTrainer
  135. jp TextScriptEnd
  136. Route19Text7:
  137. TX_ASM
  138. ld hl, Route19TrainerHeader6
  139. call TalkToTrainer
  140. jp TextScriptEnd
  141. Route19Text8:
  142. TX_ASM
  143. ld hl, Route19TrainerHeader7
  144. call TalkToTrainer
  145. jp TextScriptEnd
  146. Route19Text9:
  147. TX_ASM
  148. ld hl, Route19TrainerHeader8
  149. call TalkToTrainer
  150. jp TextScriptEnd
  151. Route19Text10:
  152. TX_ASM
  153. ld hl, Route19TrainerHeader9
  154. call TalkToTrainer
  155. jp TextScriptEnd
  156. Route19BattleText1:
  157. TX_FAR _Route19BattleText1
  158. db "@"
  159. Route19EndBattleText1:
  160. TX_FAR _Route19EndBattleText1
  161. db "@"
  162. Route19AfterBattleText1:
  163. TX_FAR _Route19AfterBattleText1
  164. db "@"
  165. Route19BattleText2:
  166. TX_FAR _Route19BattleText2
  167. db "@"
  168. Route19EndBattleText2:
  169. TX_FAR _Route19EndBattleText2
  170. db "@"
  171. Route19AfterBattleText2:
  172. TX_FAR _Route19AfterBattleText2
  173. db "@"
  174. Route19BattleText3:
  175. TX_FAR _Route19BattleText3
  176. db "@"
  177. Route19EndBattleText3:
  178. TX_FAR _Route19EndBattleText3
  179. db "@"
  180. Route19AfterBattleText3:
  181. TX_FAR _Route19AfterBattleText3
  182. db "@"
  183. Route19BattleText4:
  184. TX_FAR _Route19BattleText4
  185. db "@"
  186. Route19EndBattleText4:
  187. TX_FAR _Route19EndBattleText4
  188. db "@"
  189. Route19AfterBattleText4:
  190. TX_FAR _Route19AfterBattleText4
  191. db "@"
  192. Route19BattleText5:
  193. TX_FAR _Route19BattleText5
  194. db "@"
  195. Route19EndBattleText5:
  196. TX_FAR _Route19EndBattleText5
  197. db "@"
  198. Route19AfterBattleText5:
  199. TX_FAR _Route19AfterBattleText5
  200. db "@"
  201. Route19BattleText6:
  202. TX_FAR _Route19BattleText6
  203. db "@"
  204. Route19EndBattleText6:
  205. TX_FAR _Route19EndBattleText6
  206. db "@"
  207. Route19AfterBattleText6:
  208. TX_FAR _Route19AfterBattleText6
  209. db "@"
  210. Route19BattleText7:
  211. TX_FAR _Route19BattleText7
  212. db "@"
  213. Route19EndBattleText7:
  214. TX_FAR _Route19EndBattleText7
  215. db "@"
  216. Route19AfterBattleText7:
  217. TX_FAR _Route19AfterBattleText7
  218. db "@"
  219. Route19BattleText8:
  220. TX_FAR _Route19BattleText8
  221. db "@"
  222. Route19EndBattleText8:
  223. TX_FAR _Route19EndBattleText8
  224. db "@"
  225. Route19AfterBattleText8:
  226. TX_FAR _Route19AfterBattleText8
  227. db "@"
  228. Route19BattleText9:
  229. TX_FAR _Route19BattleText9
  230. db "@"
  231. Route19EndBattleText9:
  232. TX_FAR _Route19EndBattleText9
  233. db "@"
  234. Route19AfterBattleText9:
  235. TX_FAR _Route19AfterBattleText9
  236. db "@"
  237. Route19BattleText10:
  238. TX_FAR _Route19BattleText10
  239. db "@"
  240. Route19EndBattleText10:
  241. TX_FAR _Route19EndBattleText10
  242. db "@"
  243. Route19AfterBattleText10:
  244. TX_FAR _Route19AfterBattleText10
  245. db "@"
  246. Route19Text11:
  247. TX_FAR _Route19Text11
  248. db "@"