route13.asm 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. Route13Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, Route13TrainerHeader0
  4. ld de, Route13ScriptPointers
  5. ld a, [wRoute13CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRoute13CurScript], a
  8. ret
  9. Route13ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. Route13TextPointers:
  14. dw Route13Text1
  15. dw Route13Text2
  16. dw Route13Text3
  17. dw Route13Text4
  18. dw Route13Text5
  19. dw Route13Text6
  20. dw Route13Text7
  21. dw Route13Text8
  22. dw Route13Text9
  23. dw Route13Text10
  24. dw Route13Text11
  25. dw Route13Text12
  26. dw Route13Text13
  27. Route13TrainerHeader0:
  28. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_0
  29. db ($2 << 4) ; trainer's view range
  30. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_0
  31. dw Route13BattleText2 ; TextBeforeBattle
  32. dw Route13AfterBattleText2 ; TextAfterBattle
  33. dw Route13EndBattleText2 ; TextEndBattle
  34. dw Route13EndBattleText2 ; TextEndBattle
  35. Route13TrainerHeader1:
  36. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_1
  37. db ($2 << 4) ; trainer's view range
  38. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_1
  39. dw Route13BattleText3 ; TextBeforeBattle
  40. dw Route13AfterBattleText3 ; TextAfterBattle
  41. dw Route13EndBattleText3 ; TextEndBattle
  42. dw Route13EndBattleText3 ; TextEndBattle
  43. Route13TrainerHeader2:
  44. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_2
  45. db ($2 << 4) ; trainer's view range
  46. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_2
  47. dw Route13BattleText4 ; TextBeforeBattle
  48. dw Route13AfterBattleText4 ; TextAfterBattle
  49. dw Route13EndBattleText4 ; TextEndBattle
  50. dw Route13EndBattleText4 ; TextEndBattle
  51. Route13TrainerHeader3:
  52. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_3
  53. db ($2 << 4) ; trainer's view range
  54. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_3
  55. dw Route13BattleText5 ; TextBeforeBattle
  56. dw Route13AfterBattleText5 ; TextAfterBattle
  57. dw Route13EndBattleText5 ; TextEndBattle
  58. dw Route13EndBattleText5 ; TextEndBattle
  59. Route13TrainerHeader4:
  60. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_4
  61. db ($4 << 4) ; trainer's view range
  62. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_4
  63. dw Route13BattleText6 ; TextBeforeBattle
  64. dw Route13AfterBattleText6 ; TextAfterBattle
  65. dw Route13EndBattleText6 ; TextEndBattle
  66. dw Route13EndBattleText6 ; TextEndBattle
  67. Route13TrainerHeader5:
  68. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_5
  69. db ($2 << 4) ; trainer's view range
  70. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_5
  71. dw Route13BattleText7 ; TextBeforeBattle
  72. dw Route13AfterBattleText7 ; TextAfterBattle
  73. dw Route13EndBattleText7 ; TextEndBattle
  74. dw Route13EndBattleText7 ; TextEndBattle
  75. Route13TrainerHeader6:
  76. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_6
  77. db ($4 << 4) ; trainer's view range
  78. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_6
  79. dw Route13BattleText8 ; TextBeforeBattle
  80. dw Route13AfterBattleText8 ; TextAfterBattle
  81. dw Route13EndBattleText8 ; TextEndBattle
  82. dw Route13EndBattleText8 ; TextEndBattle
  83. Route13TrainerHeader7:
  84. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_7, 1
  85. db ($2 << 4) ; trainer's view range
  86. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_7, 1
  87. dw Route13BattleText9 ; TextBeforeBattle
  88. dw Route13AfterBattleText9 ; TextAfterBattle
  89. dw Route13EndBattleText9 ; TextEndBattle
  90. dw Route13EndBattleText9 ; TextEndBattle
  91. Route13TrainerHeader8:
  92. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_8, 1
  93. db ($2 << 4) ; trainer's view range
  94. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_8, 1
  95. dw Route13BattleText10 ; TextBeforeBattle
  96. dw Route13AfterBattleText10 ; TextAfterBattle
  97. dw Route13EndBattleText10 ; TextEndBattle
  98. dw Route13EndBattleText10 ; TextEndBattle
  99. Route13TrainerHeader9:
  100. dbEventFlagBit EVENT_BEAT_ROUTE_13_TRAINER_9, 1
  101. db ($4 << 4) ; trainer's view range
  102. dwEventFlagAddress EVENT_BEAT_ROUTE_13_TRAINER_9, 1
  103. dw Route13BattleText11 ; TextBeforeBattle
  104. dw Route13AfterBattleText11 ; TextAfterBattle
  105. dw Route13EndBattleText11 ; TextEndBattle
  106. dw Route13EndBattleText11 ; TextEndBattle
  107. db $ff
  108. Route13Text1:
  109. TX_ASM
  110. ld hl, Route13TrainerHeader0
  111. call TalkToTrainer
  112. jp TextScriptEnd
  113. Route13BattleText2:
  114. TX_FAR _Route13BattleText2
  115. db "@"
  116. Route13EndBattleText2:
  117. TX_FAR _Route13EndBattleText2
  118. db "@"
  119. Route13AfterBattleText2:
  120. TX_FAR _Route13AfterBattleText2
  121. db "@"
  122. Route13Text2:
  123. TX_ASM
  124. ld hl, Route13TrainerHeader1
  125. call TalkToTrainer
  126. jp TextScriptEnd
  127. Route13BattleText3:
  128. TX_FAR _Route13BattleText3
  129. db "@"
  130. Route13EndBattleText3:
  131. TX_FAR _Route13EndBattleText3
  132. db "@"
  133. Route13AfterBattleText3:
  134. TX_FAR _Route13AfterBattleText3
  135. db "@"
  136. Route13Text3:
  137. TX_ASM
  138. ld hl, Route13TrainerHeader2
  139. call TalkToTrainer
  140. jp TextScriptEnd
  141. Route13BattleText4:
  142. TX_FAR _Route13BattleText4
  143. db "@"
  144. Route13EndBattleText4:
  145. TX_FAR _Route13EndBattleText4
  146. db "@"
  147. Route13AfterBattleText4:
  148. TX_FAR _Route13AfterBattleText4
  149. db "@"
  150. Route13Text4:
  151. TX_ASM
  152. ld hl, Route13TrainerHeader3
  153. call TalkToTrainer
  154. jp TextScriptEnd
  155. Route13BattleText5:
  156. TX_FAR _Route13BattleText5
  157. db "@"
  158. Route13EndBattleText5:
  159. TX_FAR _Route13EndBattleText5
  160. db "@"
  161. Route13AfterBattleText5:
  162. TX_FAR _Route13AfterBattleText5
  163. db "@"
  164. Route13Text5:
  165. TX_ASM
  166. ld hl, Route13TrainerHeader4
  167. call TalkToTrainer
  168. jp TextScriptEnd
  169. Route13BattleText6:
  170. TX_FAR _Route13BattleText6
  171. db "@"
  172. Route13EndBattleText6:
  173. TX_FAR _Route13EndBattleText6
  174. db "@"
  175. Route13AfterBattleText6:
  176. TX_FAR _Route13AfterBattleText6
  177. db "@"
  178. Route13Text6:
  179. TX_ASM
  180. ld hl, Route13TrainerHeader5
  181. call TalkToTrainer
  182. jp TextScriptEnd
  183. Route13BattleText7:
  184. TX_FAR _Route13BattleText7
  185. db "@"
  186. Route13EndBattleText7:
  187. TX_FAR _Route13EndBattleText7
  188. db "@"
  189. Route13AfterBattleText7:
  190. TX_FAR _Route13AfterBattleText7
  191. db "@"
  192. Route13Text7:
  193. TX_ASM
  194. ld hl, Route13TrainerHeader6
  195. call TalkToTrainer
  196. jp TextScriptEnd
  197. Route13BattleText8:
  198. TX_FAR _Route13BattleText8
  199. db "@"
  200. Route13EndBattleText8:
  201. TX_FAR _Route13EndBattleText8
  202. db "@"
  203. Route13AfterBattleText8:
  204. TX_FAR _Route13AfterBattleText8
  205. db "@"
  206. Route13Text8:
  207. TX_ASM
  208. ld hl, Route13TrainerHeader7
  209. call TalkToTrainer
  210. jp TextScriptEnd
  211. Route13BattleText9:
  212. TX_FAR _Route13BattleText9
  213. db "@"
  214. Route13EndBattleText9:
  215. TX_FAR _Route13EndBattleText9
  216. db "@"
  217. Route13AfterBattleText9:
  218. TX_FAR _Route13AfterBattleText9
  219. db "@"
  220. Route13Text9:
  221. TX_ASM
  222. ld hl, Route13TrainerHeader8
  223. call TalkToTrainer
  224. jp TextScriptEnd
  225. Route13BattleText10:
  226. TX_FAR _Route13BattleText10
  227. db "@"
  228. Route13EndBattleText10:
  229. TX_FAR _Route13EndBattleText10
  230. db "@"
  231. Route13AfterBattleText10:
  232. TX_FAR _Route13AfterBattleText10
  233. db "@"
  234. Route13Text10:
  235. TX_ASM
  236. ld hl, Route13TrainerHeader9
  237. call TalkToTrainer
  238. jp TextScriptEnd
  239. Route13BattleText11:
  240. TX_FAR _Route13BattleText11
  241. db "@"
  242. Route13EndBattleText11:
  243. TX_FAR _Route13EndBattleText11
  244. db "@"
  245. Route13AfterBattleText11:
  246. TX_FAR _Route13AfterBattleText11
  247. db "@"
  248. Route13Text11:
  249. TX_FAR _Route13Text11
  250. db "@"
  251. Route13Text12:
  252. TX_FAR _Route13Text12
  253. db "@"
  254. Route13Text13:
  255. TX_FAR _Route13Text13
  256. db "@"