route3.asm 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. Route3Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, Route3TrainerHeader0
  4. ld de, Route3ScriptPointers
  5. ld a, [wRoute3CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRoute3CurScript], a
  8. ret
  9. Route3ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. Route3TextPointers:
  14. dw Route3Text1
  15. dw Route3Text2
  16. dw Route3Text3
  17. dw Route3Text4
  18. dw Route3Text5
  19. dw Route3Text6
  20. dw Route3Text7
  21. dw Route3Text8
  22. dw Route3Text9
  23. dw Route3Text10
  24. Route3TrainerHeader0:
  25. dbEventFlagBit EVENT_BEAT_ROUTE_3_TRAINER_0
  26. db ($2 << 4) ; trainer's view range
  27. dwEventFlagAddress EVENT_BEAT_ROUTE_3_TRAINER_0
  28. dw Route3BattleText1 ; TextBeforeBattle
  29. dw Route3AfterBattleText1 ; TextAfterBattle
  30. dw Route3EndBattleText1 ; TextEndBattle
  31. dw Route3EndBattleText1 ; TextEndBattle
  32. Route3TrainerHeader1:
  33. dbEventFlagBit EVENT_BEAT_ROUTE_3_TRAINER_1
  34. db ($3 << 4) ; trainer's view range
  35. dwEventFlagAddress EVENT_BEAT_ROUTE_3_TRAINER_1
  36. dw Route3BattleText2 ; TextBeforeBattle
  37. dw Route3AfterBattleText2 ; TextAfterBattle
  38. dw Route3EndBattleText2 ; TextEndBattle
  39. dw Route3EndBattleText2 ; TextEndBattle
  40. Route3TrainerHeader2:
  41. dbEventFlagBit EVENT_BEAT_ROUTE_3_TRAINER_2
  42. db ($2 << 4) ; trainer's view range
  43. dwEventFlagAddress EVENT_BEAT_ROUTE_3_TRAINER_2
  44. dw Route3BattleText3 ; TextBeforeBattle
  45. dw Route3AfterBattleText3 ; TextAfterBattle
  46. dw Route3EndBattleText3 ; TextEndBattle
  47. dw Route3EndBattleText3 ; TextEndBattle
  48. Route3TrainerHeader3:
  49. dbEventFlagBit EVENT_BEAT_ROUTE_3_TRAINER_3
  50. db ($1 << 4) ; trainer's view range
  51. dwEventFlagAddress EVENT_BEAT_ROUTE_3_TRAINER_3
  52. dw Route3BattleText4 ; TextBeforeBattle
  53. dw Route3AfterBattleText4 ; TextAfterBattle
  54. dw Route3EndBattleText4 ; TextEndBattle
  55. dw Route3EndBattleText4 ; TextEndBattle
  56. Route3TrainerHeader4:
  57. dbEventFlagBit EVENT_BEAT_ROUTE_3_TRAINER_4
  58. db ($4 << 4) ; trainer's view range
  59. dwEventFlagAddress EVENT_BEAT_ROUTE_3_TRAINER_4
  60. dw Route3BattleText5 ; TextBeforeBattle
  61. dw Route3AfterBattleText5 ; TextAfterBattle
  62. dw Route3EndBattleText5 ; TextEndBattle
  63. dw Route3EndBattleText5 ; TextEndBattle
  64. Route3TrainerHeader5:
  65. dbEventFlagBit EVENT_BEAT_ROUTE_3_TRAINER_5
  66. db ($3 << 4) ; trainer's view range
  67. dwEventFlagAddress EVENT_BEAT_ROUTE_3_TRAINER_5
  68. dw Route3BattleText6 ; TextBeforeBattle
  69. dw Route3AfterBattleText6 ; TextAfterBattle
  70. dw Route3EndBattleText6 ; TextEndBattle
  71. dw Route3EndBattleText6 ; TextEndBattle
  72. Route3TrainerHeader6:
  73. dbEventFlagBit EVENT_BEAT_ROUTE_3_TRAINER_6, 1
  74. db ($3 << 4) ; trainer's view range
  75. dwEventFlagAddress EVENT_BEAT_ROUTE_3_TRAINER_6, 1
  76. dw Route3BattleText7 ; TextBeforeBattle
  77. dw Route3AfterBattleText7 ; TextAfterBattle
  78. dw Route3EndBattleText7 ; TextEndBattle
  79. dw Route3EndBattleText7 ; TextEndBattle
  80. Route3TrainerHeader7:
  81. dbEventFlagBit EVENT_BEAT_ROUTE_3_TRAINER_7, 1
  82. db ($2 << 4) ; trainer's view range
  83. dwEventFlagAddress EVENT_BEAT_ROUTE_3_TRAINER_7, 1
  84. dw Route3BattleText8 ; TextBeforeBattle
  85. dw Route3AfterBattleText8 ; TextAfterBattle
  86. dw Route3EndBattleText8 ; TextEndBattle
  87. dw Route3EndBattleText8 ; TextEndBattle
  88. db $ff
  89. Route3Text1:
  90. TX_FAR _Route3Text1
  91. db "@"
  92. Route3Text2:
  93. TX_ASM
  94. ld hl, Route3TrainerHeader0
  95. call TalkToTrainer
  96. jp TextScriptEnd
  97. Route3BattleText1:
  98. TX_FAR _Route3BattleText1
  99. db "@"
  100. Route3EndBattleText1:
  101. TX_FAR _Route3EndBattleText1
  102. db "@"
  103. Route3AfterBattleText1:
  104. TX_FAR _Route3AfterBattleText1
  105. db "@"
  106. Route3Text3:
  107. TX_ASM
  108. ld hl, Route3TrainerHeader1
  109. call TalkToTrainer
  110. jp TextScriptEnd
  111. Route3BattleText2:
  112. TX_FAR _Route3BattleText2
  113. db "@"
  114. Route3EndBattleText2:
  115. TX_FAR _Route3EndBattleText2
  116. db "@"
  117. Route3AfterBattleText2:
  118. TX_FAR _Route3AfterBattleText2
  119. db "@"
  120. Route3Text4:
  121. TX_ASM
  122. ld hl, Route3TrainerHeader2
  123. call TalkToTrainer
  124. jp TextScriptEnd
  125. Route3BattleText3:
  126. TX_FAR _Route3BattleText3
  127. db "@"
  128. Route3EndBattleText3:
  129. TX_FAR _Route3EndBattleText3
  130. db "@"
  131. Route3AfterBattleText3:
  132. TX_FAR _Route3AfterBattleText3
  133. db "@"
  134. Route3Text5:
  135. TX_ASM
  136. ld hl, Route3TrainerHeader3
  137. call TalkToTrainer
  138. jp TextScriptEnd
  139. Route3BattleText4:
  140. TX_FAR _Route3BattleText4
  141. db "@"
  142. Route3EndBattleText4:
  143. TX_FAR _Route3EndBattleText4
  144. db "@"
  145. Route3AfterBattleText4:
  146. TX_FAR _Route3AfterBattleText4
  147. db "@"
  148. Route3Text6:
  149. TX_ASM
  150. ld hl, Route3TrainerHeader4
  151. call TalkToTrainer
  152. jp TextScriptEnd
  153. Route3BattleText5:
  154. TX_FAR _Route3BattleText5
  155. db "@"
  156. Route3EndBattleText5:
  157. TX_FAR _Route3EndBattleText5
  158. db "@"
  159. Route3AfterBattleText5:
  160. TX_FAR _Route3AfterBattleText5
  161. db "@"
  162. Route3Text7:
  163. TX_ASM
  164. ld hl, Route3TrainerHeader5
  165. call TalkToTrainer
  166. jp TextScriptEnd
  167. Route3BattleText6:
  168. TX_FAR _Route3BattleText6
  169. db "@"
  170. Route3EndBattleText6:
  171. TX_FAR _Route3EndBattleText6
  172. db "@"
  173. Route3AfterBattleText6:
  174. TX_FAR _Route3AfterBattleText6
  175. db "@"
  176. Route3Text8:
  177. TX_ASM
  178. ld hl, Route3TrainerHeader6
  179. call TalkToTrainer
  180. jp TextScriptEnd
  181. Route3BattleText7:
  182. TX_FAR _Route3BattleText7
  183. db "@"
  184. Route3EndBattleText7:
  185. TX_FAR _Route3EndBattleText7
  186. db "@"
  187. Route3AfterBattleText7:
  188. TX_FAR _Route3AfterBattleText7
  189. db "@"
  190. Route3Text9:
  191. TX_ASM
  192. ld hl, Route3TrainerHeader7
  193. call TalkToTrainer
  194. jp TextScriptEnd
  195. Route3BattleText8:
  196. TX_FAR _Route3BattleText8
  197. db "@"
  198. Route3EndBattleText8:
  199. TX_FAR _Route3EndBattleText8
  200. db "@"
  201. Route3AfterBattleText8:
  202. TX_FAR _Route3AfterBattleText8
  203. db "@"
  204. Route3Text10:
  205. TX_FAR _Route3Text10
  206. db "@"