route10.asm 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. Route10Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, Route10TrainerHeader0
  4. ld de, Route10ScriptPointers
  5. ld a, [wRoute10CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRoute10CurScript], a
  8. ret
  9. Route10ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. Route10TextPointers:
  14. dw Route10Text1
  15. dw Route10Text2
  16. dw Route10Text3
  17. dw Route10Text4
  18. dw Route10Text5
  19. dw Route10Text6
  20. dw Route10Text7
  21. dw PokeCenterSignText
  22. dw Route10Text9
  23. dw Route10Text10
  24. Route10TrainerHeader0:
  25. dbEventFlagBit EVENT_BEAT_ROUTE_10_TRAINER_0
  26. db ($4 << 4) ; trainer's view range
  27. dwEventFlagAddress EVENT_BEAT_ROUTE_10_TRAINER_0
  28. dw Route10BattleText1 ; TextBeforeBattle
  29. dw Route10AfterBattleText1 ; TextAfterBattle
  30. dw Route10EndBattleText1 ; TextEndBattle
  31. dw Route10EndBattleText1 ; TextEndBattle
  32. Route10TrainerHeader1:
  33. dbEventFlagBit EVENT_BEAT_ROUTE_10_TRAINER_1
  34. db ($3 << 4) ; trainer's view range
  35. dwEventFlagAddress EVENT_BEAT_ROUTE_10_TRAINER_1
  36. dw Route10BattleText2 ; TextBeforeBattle
  37. dw Route10AfterBattleText2 ; TextAfterBattle
  38. dw Route10EndBattleText2 ; TextEndBattle
  39. dw Route10EndBattleText2 ; TextEndBattle
  40. Route10TrainerHeader2:
  41. dbEventFlagBit EVENT_BEAT_ROUTE_10_TRAINER_2
  42. db ($4 << 4) ; trainer's view range
  43. dwEventFlagAddress EVENT_BEAT_ROUTE_10_TRAINER_2
  44. dw Route10BattleText3 ; TextBeforeBattle
  45. dw Route10AfterBattleText3 ; TextAfterBattle
  46. dw Route10EndBattleText3 ; TextEndBattle
  47. dw Route10EndBattleText3 ; TextEndBattle
  48. Route10TrainerHeader3:
  49. dbEventFlagBit EVENT_BEAT_ROUTE_10_TRAINER_3
  50. db ($3 << 4) ; trainer's view range
  51. dwEventFlagAddress EVENT_BEAT_ROUTE_10_TRAINER_3
  52. dw Route10BattleText4 ; TextBeforeBattle
  53. dw Route10AfterBattleText4 ; TextAfterBattle
  54. dw Route10EndBattleText4 ; TextEndBattle
  55. dw Route10EndBattleText4 ; TextEndBattle
  56. Route10TrainerHeader4:
  57. dbEventFlagBit EVENT_BEAT_ROUTE_10_TRAINER_4
  58. db ($2 << 4) ; trainer's view range
  59. dwEventFlagAddress EVENT_BEAT_ROUTE_10_TRAINER_4
  60. dw Route10BattleText5 ; TextBeforeBattle
  61. dw Route10AfterBattleText5 ; TextAfterBattle
  62. dw Route10EndBattleText5 ; TextEndBattle
  63. dw Route10EndBattleText5 ; TextEndBattle
  64. Route10TrainerHeader5:
  65. dbEventFlagBit EVENT_BEAT_ROUTE_10_TRAINER_5
  66. db ($2 << 4) ; trainer's view range
  67. dwEventFlagAddress EVENT_BEAT_ROUTE_10_TRAINER_5
  68. dw Route10BattleText6 ; TextBeforeBattle
  69. dw Route10AfterBattleText6 ; TextAfterBattle
  70. dw Route10EndBattleText6 ; TextEndBattle
  71. dw Route10EndBattleText6 ; TextEndBattle
  72. db $ff
  73. Route10Text1:
  74. TX_ASM
  75. ld hl, Route10TrainerHeader0
  76. call TalkToTrainer
  77. jp TextScriptEnd
  78. Route10BattleText1:
  79. TX_FAR _Route10BattleText1
  80. db "@"
  81. Route10EndBattleText1:
  82. TX_FAR _Route10EndBattleText1
  83. db "@"
  84. Route10AfterBattleText1:
  85. TX_FAR _Route10AfterBattleText1
  86. db "@"
  87. Route10Text2:
  88. TX_ASM
  89. ld hl, Route10TrainerHeader1
  90. call TalkToTrainer
  91. jp TextScriptEnd
  92. Route10BattleText2:
  93. TX_FAR _Route10BattleText2
  94. db "@"
  95. Route10EndBattleText2:
  96. TX_FAR _Route10EndBattleText2
  97. db "@"
  98. Route10AfterBattleText2:
  99. TX_FAR _Route10AfterBattleText2
  100. db "@"
  101. Route10Text3:
  102. TX_ASM
  103. ld hl, Route10TrainerHeader2
  104. call TalkToTrainer
  105. jp TextScriptEnd
  106. Route10BattleText3:
  107. TX_FAR _Route10BattleText3
  108. db "@"
  109. Route10EndBattleText3:
  110. TX_FAR _Route10EndBattleText3
  111. db "@"
  112. Route10AfterBattleText3:
  113. TX_FAR _Route10AfterBattleText3
  114. db "@"
  115. Route10Text4:
  116. TX_ASM
  117. ld hl, Route10TrainerHeader3
  118. call TalkToTrainer
  119. jp TextScriptEnd
  120. Route10BattleText4:
  121. TX_FAR _Route10BattleText4
  122. db "@"
  123. Route10EndBattleText4:
  124. TX_FAR _Route10EndBattleText4
  125. db "@"
  126. Route10AfterBattleText4:
  127. TX_FAR _Route10AfterBattleText4
  128. db "@"
  129. Route10Text5:
  130. TX_ASM
  131. ld hl, Route10TrainerHeader4
  132. call TalkToTrainer
  133. jp TextScriptEnd
  134. Route10BattleText5:
  135. TX_FAR _Route10BattleText5
  136. db "@"
  137. Route10EndBattleText5:
  138. TX_FAR _Route10EndBattleText5
  139. db "@"
  140. Route10AfterBattleText5:
  141. TX_FAR _Route10AfterBattleText5
  142. db "@"
  143. Route10Text6:
  144. TX_ASM
  145. ld hl, Route10TrainerHeader5
  146. call TalkToTrainer
  147. jp TextScriptEnd
  148. Route10BattleText6:
  149. TX_FAR _Route10BattleText6
  150. db "@"
  151. Route10EndBattleText6:
  152. TX_FAR _Route10EndBattleText6
  153. db "@"
  154. Route10AfterBattleText6:
  155. TX_FAR _Route10AfterBattleText6
  156. db "@"
  157. Route10Text9:
  158. Route10Text7:
  159. TX_FAR _Route10Text7 ; _Route10Text9
  160. db "@"
  161. Route10Text10:
  162. TX_FAR _Route10Text10
  163. db "@"