route6.asm 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. Route6Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, Route6TrainerHeader0
  4. ld de, Route6ScriptPointers
  5. ld a, [wRoute6CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRoute6CurScript], a
  8. ret
  9. Route6ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. Route6TextPointers:
  14. dw Route6Text1
  15. dw Route6Text2
  16. dw Route6Text3
  17. dw Route6Text4
  18. dw Route6Text5
  19. dw Route6Text6
  20. dw Route6Text7
  21. Route6TrainerHeader0:
  22. dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_0
  23. db ($0 << 4) ; trainer's view range
  24. dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_0
  25. dw Route6BattleText1 ; TextBeforeBattle
  26. dw Route6AfterBattleText1 ; TextAfterBattle
  27. dw Route6EndBattleText1 ; TextEndBattle
  28. dw Route6EndBattleText1 ; TextEndBattle
  29. Route6TrainerHeader1:
  30. dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_1
  31. db ($0 << 4) ; trainer's view range
  32. dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_1
  33. dw Route6BattleText2 ; TextBeforeBattle
  34. dw Route6AfterBattleText1 ; TextAfterBattle
  35. dw Route6EndBattleText2 ; TextEndBattle
  36. dw Route6EndBattleText2 ; TextEndBattle
  37. Route6TrainerHeader2:
  38. dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_2
  39. db ($4 << 4) ; trainer's view range
  40. dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_2
  41. dw Route6BattleText3 ; TextBeforeBattle
  42. dw Route6AfterBattleText3 ; TextAfterBattle
  43. dw Route6EndBattleText3 ; TextEndBattle
  44. dw Route6EndBattleText3 ; TextEndBattle
  45. Route6TrainerHeader3:
  46. dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_3
  47. db ($3 << 4) ; trainer's view range
  48. dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_3
  49. dw Route6BattleText4 ; TextBeforeBattle
  50. dw Route6AfterBattleText4 ; TextAfterBattle
  51. dw Route6EndBattleText4 ; TextEndBattle
  52. dw Route6EndBattleText4 ; TextEndBattle
  53. Route6TrainerHeader4:
  54. dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_4
  55. db ($3 << 4) ; trainer's view range
  56. dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_4
  57. dw Route6BattleText5 ; TextBeforeBattle
  58. dw Route6AfterBattleText5 ; TextAfterBattle
  59. dw Route6EndBattleText5 ; TextEndBattle
  60. dw Route6EndBattleText5 ; TextEndBattle
  61. Route6TrainerHeader5:
  62. dbEventFlagBit EVENT_BEAT_ROUTE_6_TRAINER_5
  63. db ($3 << 4) ; trainer's view range
  64. dwEventFlagAddress EVENT_BEAT_ROUTE_6_TRAINER_5
  65. dw Route6BattleText6 ; TextBeforeBattle
  66. dw Route6AfterBattleText6 ; TextAfterBattle
  67. dw Route6EndBattleText6 ; TextEndBattle
  68. dw Route6EndBattleText6 ; TextEndBattle
  69. db $ff
  70. Route6Text1:
  71. TX_ASM
  72. ld hl, Route6TrainerHeader0
  73. call TalkToTrainer
  74. jp TextScriptEnd
  75. Route6BattleText1:
  76. TX_FAR _Route6BattleText1
  77. db "@"
  78. Route6EndBattleText1:
  79. TX_FAR _Route6EndBattleText1
  80. db "@"
  81. Route6AfterBattleText1:
  82. TX_FAR _Route6AfterBattleText1
  83. db "@"
  84. Route6Text2:
  85. TX_ASM
  86. ld hl, Route6TrainerHeader1
  87. call TalkToTrainer
  88. jp TextScriptEnd
  89. Route6BattleText2:
  90. TX_FAR _Route6BattleText2
  91. db "@"
  92. Route6EndBattleText2:
  93. TX_FAR _Route6EndBattleText2
  94. db "@"
  95. Route6Text3:
  96. TX_ASM
  97. ld hl, Route6TrainerHeader2
  98. call TalkToTrainer
  99. jp TextScriptEnd
  100. Route6BattleText3:
  101. TX_FAR _Route6BattleText3
  102. db "@"
  103. Route6EndBattleText3:
  104. TX_FAR _Route6EndBattleText3
  105. db "@"
  106. Route6AfterBattleText3:
  107. TX_FAR _Route6AfterBattleText3
  108. db "@"
  109. Route6Text4:
  110. TX_ASM
  111. ld hl, Route6TrainerHeader3
  112. call TalkToTrainer
  113. jp TextScriptEnd
  114. Route6BattleText4:
  115. TX_FAR _Route6BattleText4
  116. db "@"
  117. Route6EndBattleText4:
  118. TX_FAR _Route6EndBattleText4
  119. db "@"
  120. Route6AfterBattleText4:
  121. TX_FAR _Route6AfterBattleText4
  122. db "@"
  123. Route6Text5:
  124. TX_ASM
  125. ld hl, Route6TrainerHeader4
  126. call TalkToTrainer
  127. jp TextScriptEnd
  128. Route6BattleText5:
  129. TX_FAR _Route6BattleText5
  130. db "@"
  131. Route6EndBattleText5:
  132. TX_FAR _Route6EndBattleText5
  133. db "@"
  134. Route6AfterBattleText5:
  135. TX_FAR _Route6AfterBattleText5
  136. db "@"
  137. Route6Text6:
  138. TX_ASM
  139. ld hl, Route6TrainerHeader5
  140. call TalkToTrainer
  141. jp TextScriptEnd
  142. Route6BattleText6:
  143. TX_FAR _Route6BattleText6
  144. db "@"
  145. Route6EndBattleText6:
  146. TX_FAR _Route6EndBattleText6
  147. db "@"
  148. Route6AfterBattleText6:
  149. TX_FAR _Route6AfterBattleText6
  150. db "@"
  151. Route6Text7:
  152. TX_FAR _Route6Text7
  153. db "@"