route17.asm 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. Route17Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, Route17TrainerHeader0
  4. ld de, Route17ScriptPointers
  5. ld a, [wRoute17CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRoute17CurScript], a
  8. ret
  9. Route17ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. Route17TextPointers:
  14. dw Route17Text1
  15. dw Route17Text2
  16. dw Route17Text3
  17. dw Route17Text4
  18. dw Route17Text5
  19. dw Route17Text6
  20. dw Route17Text7
  21. dw Route17Text8
  22. dw Route17Text9
  23. dw Route17Text10
  24. dw Route17Text11
  25. dw Route17Text12
  26. dw Route17Text13
  27. dw Route17Text14
  28. dw Route17Text15
  29. dw Route17Text16
  30. Route17TrainerHeader0:
  31. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_0
  32. db ($3 << 4) ; trainer's view range
  33. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_0
  34. dw Route17BattleText1 ; TextBeforeBattle
  35. dw Route17AfterBattleText1 ; TextAfterBattle
  36. dw Route17EndBattleText1 ; TextEndBattle
  37. dw Route17EndBattleText1 ; TextEndBattle
  38. Route17TrainerHeader1:
  39. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_1
  40. db ($4 << 4) ; trainer's view range
  41. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_1
  42. dw Route17BattleText2 ; TextBeforeBattle
  43. dw Route17AfterBattleText2 ; TextAfterBattle
  44. dw Route17EndBattleText2 ; TextEndBattle
  45. dw Route17EndBattleText2 ; TextEndBattle
  46. Route17TrainerHeader2:
  47. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_2
  48. db ($4 << 4) ; trainer's view range
  49. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_2
  50. dw Route17BattleText3 ; TextBeforeBattle
  51. dw Route17AfterBattleText3 ; TextAfterBattle
  52. dw Route17EndBattleText3 ; TextEndBattle
  53. dw Route17EndBattleText3 ; TextEndBattle
  54. Route17TrainerHeader3:
  55. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_3
  56. db ($4 << 4) ; trainer's view range
  57. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_3
  58. dw Route17BattleText4 ; TextBeforeBattle
  59. dw Route17AfterBattleText4 ; TextAfterBattle
  60. dw Route17EndBattleText4 ; TextEndBattle
  61. dw Route17EndBattleText4 ; TextEndBattle
  62. Route17TrainerHeader4:
  63. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_4
  64. db ($3 << 4) ; trainer's view range
  65. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_4
  66. dw Route17BattleText5 ; TextBeforeBattle
  67. dw Route17AfterBattleText5 ; TextAfterBattle
  68. dw Route17EndBattleText5 ; TextEndBattle
  69. dw Route17EndBattleText5 ; TextEndBattle
  70. Route17TrainerHeader5:
  71. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_5
  72. db ($2 << 4) ; trainer's view range
  73. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_5
  74. dw Route17BattleText6 ; TextBeforeBattle
  75. dw Route17AfterBattleText6 ; TextAfterBattle
  76. dw Route17EndBattleText6 ; TextEndBattle
  77. dw Route17EndBattleText6 ; TextEndBattle
  78. Route17TrainerHeader6:
  79. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_6
  80. db ($4 << 4) ; trainer's view range
  81. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_6
  82. dw Route17BattleText7 ; TextBeforeBattle
  83. dw Route17AfterBattleText7 ; TextAfterBattle
  84. dw Route17EndBattleText7 ; TextEndBattle
  85. dw Route17EndBattleText7 ; TextEndBattle
  86. Route17TrainerHeader7:
  87. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_7, 1
  88. db ($2 << 4) ; trainer's view range
  89. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_7, 1
  90. dw Route17BattleText8 ; TextBeforeBattle
  91. dw Route17AfterBattleText8 ; TextAfterBattle
  92. dw Route17EndBattleText8 ; TextEndBattle
  93. dw Route17EndBattleText8 ; TextEndBattle
  94. Route17TrainerHeader8:
  95. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_8, 1
  96. db ($3 << 4) ; trainer's view range
  97. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_8, 1
  98. dw Route17BattleText9 ; TextBeforeBattle
  99. dw Route17AfterBattleText9 ; TextAfterBattle
  100. dw Route17EndBattleText9 ; TextEndBattle
  101. dw Route17EndBattleText9 ; TextEndBattle
  102. Route17TrainerHeader9:
  103. dbEventFlagBit EVENT_BEAT_ROUTE_17_TRAINER_9, 1
  104. db ($4 << 4) ; trainer's view range
  105. dwEventFlagAddress EVENT_BEAT_ROUTE_17_TRAINER_9, 1
  106. dw Route17BattleText10 ; TextBeforeBattle
  107. dw Route17AfterBattleText10 ; TextAfterBattle
  108. dw Route17EndBattleText10 ; TextEndBattle
  109. dw Route17EndBattleText10 ; TextEndBattle
  110. db $ff
  111. Route17Text1:
  112. TX_ASM
  113. ld hl, Route17TrainerHeader0
  114. call TalkToTrainer
  115. jp TextScriptEnd
  116. Route17BattleText1:
  117. TX_FAR _Route17BattleText1
  118. db "@"
  119. Route17EndBattleText1:
  120. TX_FAR _Route17EndBattleText1
  121. db "@"
  122. Route17AfterBattleText1:
  123. TX_FAR _Route17AfterBattleText1
  124. db "@"
  125. Route17Text2:
  126. TX_ASM
  127. ld hl, Route17TrainerHeader1
  128. call TalkToTrainer
  129. jp TextScriptEnd
  130. Route17BattleText2:
  131. TX_FAR _Route17BattleText2
  132. db "@"
  133. Route17EndBattleText2:
  134. TX_FAR _Route17EndBattleText2
  135. db "@"
  136. Route17AfterBattleText2:
  137. TX_FAR _Route17AfterBattleText2
  138. db "@"
  139. Route17Text3:
  140. TX_ASM
  141. ld hl, Route17TrainerHeader2
  142. call TalkToTrainer
  143. jp TextScriptEnd
  144. Route17BattleText3:
  145. TX_FAR _Route17BattleText3
  146. db "@"
  147. Route17EndBattleText3:
  148. TX_FAR _Route17EndBattleText3
  149. db "@"
  150. Route17AfterBattleText3:
  151. TX_FAR _Route17AfterBattleText3
  152. db "@"
  153. Route17Text4:
  154. TX_ASM
  155. ld hl, Route17TrainerHeader3
  156. call TalkToTrainer
  157. jp TextScriptEnd
  158. Route17BattleText4:
  159. TX_FAR _Route17BattleText4
  160. db "@"
  161. Route17EndBattleText4:
  162. TX_FAR _Route17EndBattleText4
  163. db "@"
  164. Route17AfterBattleText4:
  165. TX_FAR _Route17AfterBattleText4
  166. db "@"
  167. Route17Text5:
  168. TX_ASM
  169. ld hl, Route17TrainerHeader4
  170. call TalkToTrainer
  171. jp TextScriptEnd
  172. Route17BattleText5:
  173. TX_FAR _Route17BattleText5
  174. db "@"
  175. Route17EndBattleText5:
  176. TX_FAR _Route17EndBattleText5
  177. db "@"
  178. Route17AfterBattleText5:
  179. TX_FAR _Route17AfterBattleText5
  180. db "@"
  181. Route17Text6:
  182. TX_ASM
  183. ld hl, Route17TrainerHeader5
  184. call TalkToTrainer
  185. jp TextScriptEnd
  186. Route17BattleText6:
  187. TX_FAR _Route17BattleText6
  188. db "@"
  189. Route17EndBattleText6:
  190. TX_FAR _Route17EndBattleText6
  191. db "@"
  192. Route17AfterBattleText6:
  193. TX_FAR _Route17AfterBattleText6
  194. db "@"
  195. Route17Text7:
  196. TX_ASM
  197. ld hl, Route17TrainerHeader6
  198. call TalkToTrainer
  199. jp TextScriptEnd
  200. Route17BattleText7:
  201. TX_FAR _Route17BattleText7
  202. db "@"
  203. Route17EndBattleText7:
  204. TX_FAR _Route17EndBattleText7
  205. db "@"
  206. Route17AfterBattleText7:
  207. TX_FAR _Route17AfterBattleText7
  208. db "@"
  209. Route17Text8:
  210. TX_ASM
  211. ld hl, Route17TrainerHeader7
  212. call TalkToTrainer
  213. jp TextScriptEnd
  214. Route17BattleText8:
  215. TX_FAR _Route17BattleText8
  216. db "@"
  217. Route17EndBattleText8:
  218. TX_FAR _Route17EndBattleText8
  219. db "@"
  220. Route17AfterBattleText8:
  221. TX_FAR _Route17AfterBattleText8
  222. db "@"
  223. Route17Text9:
  224. TX_ASM
  225. ld hl, Route17TrainerHeader8
  226. call TalkToTrainer
  227. jp TextScriptEnd
  228. Route17BattleText9:
  229. TX_FAR _Route17BattleText9
  230. db "@"
  231. Route17EndBattleText9:
  232. TX_FAR _Route17EndBattleText9
  233. db "@"
  234. Route17AfterBattleText9:
  235. TX_FAR _Route17AfterBattleText9
  236. db "@"
  237. Route17Text10:
  238. TX_ASM
  239. ld hl, Route17TrainerHeader9
  240. call TalkToTrainer
  241. jp TextScriptEnd
  242. Route17BattleText10:
  243. TX_FAR _Route17BattleText10
  244. db "@"
  245. Route17EndBattleText10:
  246. TX_FAR _Route17EndBattleText10
  247. db "@"
  248. Route17AfterBattleText10:
  249. TX_FAR _Route17AfterBattleText10
  250. db "@"
  251. Route17Text11:
  252. TX_FAR _Route17Text11
  253. db "@"
  254. Route17Text12:
  255. TX_FAR _Route17Text12
  256. db "@"
  257. Route17Text13:
  258. TX_FAR _Route17Text13
  259. db "@"
  260. Route17Text14:
  261. TX_FAR _Route17Text14
  262. db "@"
  263. Route17Text15:
  264. TX_FAR _Route17Text15
  265. db "@"
  266. Route17Text16:
  267. TX_FAR _Route17Text16
  268. db "@"