route14.asm 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. Route14Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, Route14TrainerHeader0
  4. ld de, Route14ScriptPointers
  5. ld a, [wRoute14CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRoute14CurScript], a
  8. ret
  9. Route14ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. Route14TextPointers:
  14. dw Route14Text1
  15. dw Route14Text2
  16. dw Route14Text3
  17. dw Route14Text4
  18. dw Route14Text5
  19. dw Route14Text6
  20. dw Route14Text7
  21. dw Route14Text8
  22. dw Route14Text9
  23. dw Route14Text10
  24. dw Route14Text11
  25. Route14TrainerHeader0:
  26. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_0
  27. db ($2 << 4) ; trainer's view range
  28. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_0
  29. dw Route14BattleText1 ; TextBeforeBattle
  30. dw Route14AfterBattleText1 ; TextAfterBattle
  31. dw Route14EndBattleText1 ; TextEndBattle
  32. dw Route14EndBattleText1 ; TextEndBattle
  33. Route14TrainerHeader1:
  34. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_1
  35. db ($2 << 4) ; trainer's view range
  36. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_1
  37. dw Route14BattleText2 ; TextBeforeBattle
  38. dw Route14AfterBattleText2 ; TextAfterBattle
  39. dw Route14EndBattleText2 ; TextEndBattle
  40. dw Route14EndBattleText2 ; TextEndBattle
  41. Route14TrainerHeader2:
  42. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_2
  43. db ($4 << 4) ; trainer's view range
  44. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_2
  45. dw Route14BattleText3 ; TextBeforeBattle
  46. dw Route14AfterBattleText3 ; TextAfterBattle
  47. dw Route14EndBattleText3 ; TextEndBattle
  48. dw Route14EndBattleText3 ; TextEndBattle
  49. Route14TrainerHeader3:
  50. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_3
  51. db ($3 << 4) ; trainer's view range
  52. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_3
  53. dw Route14BattleText4 ; TextBeforeBattle
  54. dw Route14AfterBattleText4 ; TextAfterBattle
  55. dw Route14EndBattleText4 ; TextEndBattle
  56. dw Route14EndBattleText4 ; TextEndBattle
  57. Route14TrainerHeader4:
  58. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_4
  59. db ($3 << 4) ; trainer's view range
  60. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_4
  61. dw Route14BattleText5 ; TextBeforeBattle
  62. dw Route14AfterBattleText5 ; TextAfterBattle
  63. dw Route14EndBattleText5 ; TextEndBattle
  64. dw Route14EndBattleText5 ; TextEndBattle
  65. Route14TrainerHeader5:
  66. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_5
  67. db ($4 << 4) ; trainer's view range
  68. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_5
  69. dw Route14BattleText6 ; TextBeforeBattle
  70. dw Route14AfterBattleText6 ; TextAfterBattle
  71. dw Route14EndBattleText6 ; TextEndBattle
  72. dw Route14EndBattleText6 ; TextEndBattle
  73. Route14TrainerHeader6:
  74. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_6
  75. db ($4 << 4) ; trainer's view range
  76. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_6
  77. dw Route14BattleText7 ; TextBeforeBattle
  78. dw Route14AfterBattleText7 ; TextAfterBattle
  79. dw Route14EndBattleText7 ; TextEndBattle
  80. dw Route14EndBattleText7 ; TextEndBattle
  81. Route14TrainerHeader7:
  82. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_7, 1
  83. db ($4 << 4) ; trainer's view range
  84. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_7, 1
  85. dw Route14BattleText8 ; TextBeforeBattle
  86. dw Route14AfterBattleText8 ; TextAfterBattle
  87. dw Route14EndBattleText8 ; TextEndBattle
  88. dw Route14EndBattleText8 ; TextEndBattle
  89. Route14TrainerHeader8:
  90. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_8, 1
  91. db ($3 << 4) ; trainer's view range
  92. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_8, 1
  93. dw Route14BattleText9 ; TextBeforeBattle
  94. dw Route14AfterBattleText9 ; TextAfterBattle
  95. dw Route14EndBattleText9 ; TextEndBattle
  96. dw Route14EndBattleText9 ; TextEndBattle
  97. Route14TrainerHeader9:
  98. dbEventFlagBit EVENT_BEAT_ROUTE_14_TRAINER_9, 1
  99. db ($4 << 4) ; trainer's view range
  100. dwEventFlagAddress EVENT_BEAT_ROUTE_14_TRAINER_9, 1
  101. dw Route14BattleText10 ; TextBeforeBattle
  102. dw Route14AfterBattleText10 ; TextAfterBattle
  103. dw Route14EndBattleText10 ; TextEndBattle
  104. dw Route14EndBattleText10 ; TextEndBattle
  105. db $ff
  106. Route14Text1:
  107. TX_ASM
  108. ld hl, Route14TrainerHeader0
  109. call TalkToTrainer
  110. jp TextScriptEnd
  111. Route14BattleText1:
  112. TX_FAR _Route14BattleText1
  113. db "@"
  114. Route14EndBattleText1:
  115. TX_FAR _Route14EndBattleText1
  116. db "@"
  117. Route14AfterBattleText1:
  118. TX_FAR _Route14AfterBattleText1
  119. db "@"
  120. Route14Text2:
  121. TX_ASM
  122. ld hl, Route14TrainerHeader1
  123. call TalkToTrainer
  124. jp TextScriptEnd
  125. Route14BattleText2:
  126. TX_FAR _Route14BattleText2
  127. db "@"
  128. Route14EndBattleText2:
  129. TX_FAR _Route14EndBattleText2
  130. db "@"
  131. Route14AfterBattleText2:
  132. TX_FAR _Route14AfterBattleText2
  133. db "@"
  134. Route14Text3:
  135. TX_ASM
  136. ld hl, Route14TrainerHeader2
  137. call TalkToTrainer
  138. jp TextScriptEnd
  139. Route14BattleText3:
  140. TX_FAR _Route14BattleText3
  141. db "@"
  142. Route14EndBattleText3:
  143. TX_FAR _Route14EndBattleText3
  144. db "@"
  145. Route14AfterBattleText3:
  146. TX_FAR _Route14AfterBattleText3
  147. db "@"
  148. Route14Text4:
  149. TX_ASM
  150. ld hl, Route14TrainerHeader3
  151. call TalkToTrainer
  152. jp TextScriptEnd
  153. Route14BattleText4:
  154. TX_FAR _Route14BattleText4
  155. db "@"
  156. Route14EndBattleText4:
  157. TX_FAR _Route14EndBattleText4
  158. db "@"
  159. Route14AfterBattleText4:
  160. TX_FAR _Route14AfterBattleText4
  161. db "@"
  162. Route14Text5:
  163. TX_ASM
  164. ld hl, Route14TrainerHeader4
  165. call TalkToTrainer
  166. jp TextScriptEnd
  167. Route14BattleText5:
  168. TX_FAR _Route14BattleText5
  169. db "@"
  170. Route14EndBattleText5:
  171. TX_FAR _Route14EndBattleText5
  172. db "@"
  173. Route14AfterBattleText5:
  174. TX_FAR _Route14AfterBattleText5
  175. db "@"
  176. Route14Text6:
  177. TX_ASM
  178. ld hl, Route14TrainerHeader5
  179. call TalkToTrainer
  180. jp TextScriptEnd
  181. Route14BattleText6:
  182. TX_FAR _Route14BattleText6
  183. db "@"
  184. Route14EndBattleText6:
  185. TX_FAR _Route14EndBattleText6
  186. db "@"
  187. Route14AfterBattleText6:
  188. TX_FAR _Route14AfterBattleText6
  189. db "@"
  190. Route14Text7:
  191. TX_ASM
  192. ld hl, Route14TrainerHeader6
  193. call TalkToTrainer
  194. jp TextScriptEnd
  195. Route14BattleText7:
  196. TX_FAR _Route14BattleText7
  197. db "@"
  198. Route14EndBattleText7:
  199. TX_FAR _Route14EndBattleText7
  200. db "@"
  201. Route14AfterBattleText7:
  202. TX_FAR _Route14AfterBattleText7
  203. db "@"
  204. Route14Text8:
  205. TX_ASM
  206. ld hl, Route14TrainerHeader7
  207. call TalkToTrainer
  208. jp TextScriptEnd
  209. Route14BattleText8:
  210. TX_FAR _Route14BattleText8
  211. db "@"
  212. Route14EndBattleText8:
  213. TX_FAR _Route14EndBattleText8
  214. db "@"
  215. Route14AfterBattleText8:
  216. TX_FAR _Route14AfterBattleText8
  217. db "@"
  218. Route14Text9:
  219. TX_ASM
  220. ld hl, Route14TrainerHeader8
  221. call TalkToTrainer
  222. jp TextScriptEnd
  223. Route14BattleText9:
  224. TX_FAR _Route14BattleText9
  225. db "@"
  226. Route14EndBattleText9:
  227. TX_FAR _Route14EndBattleText9
  228. db "@"
  229. Route14AfterBattleText9:
  230. TX_FAR _Route14AfterBattleText9
  231. db "@"
  232. Route14Text10:
  233. TX_ASM
  234. ld hl, Route14TrainerHeader9
  235. call TalkToTrainer
  236. jp TextScriptEnd
  237. Route14BattleText10:
  238. TX_FAR _Route14BattleText10
  239. db "@"
  240. Route14EndBattleText10:
  241. TX_FAR _Route14EndBattleText10
  242. db "@"
  243. Route14AfterBattleText10:
  244. TX_FAR _Route14AfterBattleText10
  245. db "@"
  246. Route14Text11:
  247. TX_FAR _Route14Text11
  248. db "@"