route11.asm 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. Route11Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, Route11TrainerHeader0
  4. ld de, Route11ScriptPointers
  5. ld a, [wRoute11CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRoute11CurScript], a
  8. ret
  9. Route11ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. Route11TextPointers:
  14. dw Route11Text1
  15. dw Route11Text2
  16. dw Route11Text3
  17. dw Route11Text4
  18. dw Route11Text5
  19. dw Route11Text6
  20. dw Route11Text7
  21. dw Route11Text8
  22. dw Route11Text9
  23. dw Route11Text10
  24. dw Route11Text11
  25. Route11TrainerHeader0:
  26. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_0
  27. db ($3 << 4) ; trainer's view range
  28. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_0
  29. dw Route11BattleText1 ; TextBeforeBattle
  30. dw Route11AfterBattleText1 ; TextAfterBattle
  31. dw Route11EndBattleText1 ; TextEndBattle
  32. dw Route11EndBattleText1 ; TextEndBattle
  33. Route11TrainerHeader1:
  34. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_1
  35. db ($2 << 4) ; trainer's view range
  36. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_1
  37. dw Route11BattleText2 ; TextBeforeBattle
  38. dw Route11AfterBattleText2 ; TextAfterBattle
  39. dw Route11EndBattleText2 ; TextEndBattle
  40. dw Route11EndBattleText2 ; TextEndBattle
  41. Route11TrainerHeader2:
  42. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_2
  43. db ($3 << 4) ; trainer's view range
  44. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_2
  45. dw Route11BattleText3 ; TextBeforeBattle
  46. dw Route11AfterBattleText3 ; TextAfterBattle
  47. dw Route11EndBattleText3 ; TextEndBattle
  48. dw Route11EndBattleText3 ; TextEndBattle
  49. Route11TrainerHeader3:
  50. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_3
  51. db ($3 << 4) ; trainer's view range
  52. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_3
  53. dw Route11BattleText4 ; TextBeforeBattle
  54. dw Route11AfterBattleText4 ; TextAfterBattle
  55. dw Route11EndBattleText4 ; TextEndBattle
  56. dw Route11EndBattleText4 ; TextEndBattle
  57. Route11TrainerHeader4:
  58. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_4
  59. db ($4 << 4) ; trainer's view range
  60. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_4
  61. dw Route11BattleText5 ; TextBeforeBattle
  62. dw Route11AfterBattleText5 ; TextAfterBattle
  63. dw Route11EndBattleText5 ; TextEndBattle
  64. dw Route11EndBattleText5 ; TextEndBattle
  65. Route11TrainerHeader5:
  66. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_5
  67. db ($3 << 4) ; trainer's view range
  68. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_5
  69. dw Route11BattleText6 ; TextBeforeBattle
  70. dw Route11AfterBattleText6 ; TextAfterBattle
  71. dw Route11EndBattleText6 ; TextEndBattle
  72. dw Route11EndBattleText6 ; TextEndBattle
  73. Route11TrainerHeader6:
  74. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_6
  75. db ($3 << 4) ; trainer's view range
  76. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_6
  77. dw Route11BattleText7 ; TextBeforeBattle
  78. dw Route11AfterBattleText7 ; TextAfterBattle
  79. dw Route11EndBattleText7 ; TextEndBattle
  80. dw Route11EndBattleText7 ; TextEndBattle
  81. Route11TrainerHeader7:
  82. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_7, 1
  83. db ($4 << 4) ; trainer's view range
  84. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_7, 1
  85. dw Route11BattleText8 ; TextBeforeBattle
  86. dw Route11AfterBattleText8 ; TextAfterBattle
  87. dw Route11EndBattleText8 ; TextEndBattle
  88. dw Route11EndBattleText8 ; TextEndBattle
  89. Route11TrainerHeader8:
  90. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_8, 1
  91. db ($3 << 4) ; trainer's view range
  92. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_8, 1
  93. dw Route11BattleText9 ; TextBeforeBattle
  94. dw Route11AfterBattleText9 ; TextAfterBattle
  95. dw Route11EndBattleText9 ; TextEndBattle
  96. dw Route11EndBattleText9 ; TextEndBattle
  97. Route11TrainerHeader9:
  98. dbEventFlagBit EVENT_BEAT_ROUTE_11_TRAINER_9, 1
  99. db ($4 << 4) ; trainer's view range
  100. dwEventFlagAddress EVENT_BEAT_ROUTE_11_TRAINER_9, 1
  101. dw Route11BattleText10 ; TextBeforeBattle
  102. dw Route11AfterBattleText10 ; TextAfterBattle
  103. dw Route11EndBattleText10 ; TextEndBattle
  104. dw Route11EndBattleText10 ; TextEndBattle
  105. db $ff
  106. Route11Text1:
  107. TX_ASM
  108. ld hl, Route11TrainerHeader0
  109. call TalkToTrainer
  110. jp TextScriptEnd
  111. Route11BattleText1:
  112. TX_FAR _Route11BattleText1
  113. db "@"
  114. Route11EndBattleText1:
  115. TX_FAR _Route11EndBattleText1
  116. db "@"
  117. Route11AfterBattleText1:
  118. TX_FAR _Route11AfterBattleText1
  119. db "@"
  120. Route11Text2:
  121. TX_ASM
  122. ld hl, Route11TrainerHeader1
  123. call TalkToTrainer
  124. jp TextScriptEnd
  125. Route11BattleText2:
  126. TX_FAR _Route11BattleText2
  127. db "@"
  128. Route11EndBattleText2:
  129. TX_FAR _Route11EndBattleText2
  130. db "@"
  131. Route11AfterBattleText2:
  132. TX_FAR _Route11AfterBattleText2
  133. db "@"
  134. Route11Text3:
  135. TX_ASM
  136. ld hl, Route11TrainerHeader2
  137. call TalkToTrainer
  138. jp TextScriptEnd
  139. Route11BattleText3:
  140. TX_FAR _Route11BattleText3
  141. db "@"
  142. Route11EndBattleText3:
  143. TX_FAR _Route11EndBattleText3
  144. db "@"
  145. Route11AfterBattleText3:
  146. TX_FAR _Route11AfterBattleText3
  147. db "@"
  148. Route11Text4:
  149. TX_ASM
  150. ld hl, Route11TrainerHeader3
  151. call TalkToTrainer
  152. jp TextScriptEnd
  153. Route11BattleText4:
  154. TX_FAR _Route11BattleText4
  155. db "@"
  156. Route11EndBattleText4:
  157. TX_FAR _Route11EndBattleText4
  158. db "@"
  159. Route11AfterBattleText4:
  160. TX_FAR _Route11AfterBattleText4
  161. db "@"
  162. Route11Text5:
  163. TX_ASM
  164. ld hl, Route11TrainerHeader4
  165. call TalkToTrainer
  166. jp TextScriptEnd
  167. Route11BattleText5:
  168. TX_FAR _Route11BattleText5
  169. db "@"
  170. Route11EndBattleText5:
  171. TX_FAR _Route11EndBattleText5
  172. db "@"
  173. Route11AfterBattleText5:
  174. TX_FAR _Route11AfterBattleText5
  175. db "@"
  176. Route11Text6:
  177. TX_ASM
  178. ld hl, Route11TrainerHeader5
  179. call TalkToTrainer
  180. jp TextScriptEnd
  181. Route11BattleText6:
  182. TX_FAR _Route11BattleText6
  183. db "@"
  184. Route11EndBattleText6:
  185. TX_FAR _Route11EndBattleText6
  186. db "@"
  187. Route11AfterBattleText6:
  188. TX_FAR _Route11AfterBattleText6
  189. db "@"
  190. Route11Text7:
  191. TX_ASM
  192. ld hl, Route11TrainerHeader6
  193. call TalkToTrainer
  194. jp TextScriptEnd
  195. Route11BattleText7:
  196. TX_FAR _Route11BattleText7
  197. db "@"
  198. Route11EndBattleText7:
  199. TX_FAR _Route11EndBattleText7
  200. db "@"
  201. Route11AfterBattleText7:
  202. TX_FAR _Route11AfterBattleText7
  203. db "@"
  204. Route11Text8:
  205. TX_ASM
  206. ld hl, Route11TrainerHeader7
  207. call TalkToTrainer
  208. jp TextScriptEnd
  209. Route11BattleText8:
  210. TX_FAR _Route11BattleText8
  211. db "@"
  212. Route11EndBattleText8:
  213. TX_FAR _Route11EndBattleText8
  214. db "@"
  215. Route11AfterBattleText8:
  216. TX_FAR _Route11AfterBattleText8
  217. db "@"
  218. Route11Text9:
  219. TX_ASM
  220. ld hl, Route11TrainerHeader8
  221. call TalkToTrainer
  222. jp TextScriptEnd
  223. Route11BattleText9:
  224. TX_FAR _Route11BattleText9
  225. db "@"
  226. Route11EndBattleText9:
  227. TX_FAR _Route11EndBattleText9
  228. db "@"
  229. Route11AfterBattleText9:
  230. TX_FAR _Route11AfterBattleText9
  231. db "@"
  232. Route11Text10:
  233. TX_ASM
  234. ld hl, Route11TrainerHeader9
  235. call TalkToTrainer
  236. jp TextScriptEnd
  237. Route11BattleText10:
  238. TX_FAR _Route11BattleText10
  239. db "@"
  240. Route11EndBattleText10:
  241. TX_FAR _Route11EndBattleText10
  242. db "@"
  243. Route11AfterBattleText10:
  244. TX_FAR _Route11AfterBattleText10
  245. db "@"
  246. Route11Text11:
  247. TX_FAR _Route11Text11
  248. db "@"