rocktunnel2.asm 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. RockTunnel2Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, RockTunnel2TrainerHeader0
  4. ld de, RockTunnel2ScriptPointers
  5. ld a, [wRockTunnel2CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRockTunnel2CurScript], a
  8. ret
  9. RockTunnel2ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. RockTunnel2TextPointers:
  14. dw RockTunnel2Text1
  15. dw RockTunnel2Text2
  16. dw RockTunnel2Text3
  17. dw RockTunnel2Text4
  18. dw RockTunnel2Text5
  19. dw RockTunnel2Text6
  20. dw RockTunnel2Text7
  21. dw RockTunnel2Text8
  22. RockTunnel2TrainerHeader0:
  23. dbEventFlagBit EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_0
  24. db ($4 << 4) ; trainer's view range
  25. dwEventFlagAddress EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_0
  26. dw RockTunnel2BattleText2 ; TextBeforeBattle
  27. dw RockTunnel2AfterBattleText2 ; TextAfterBattle
  28. dw RockTunnel2EndBattleText2 ; TextEndBattle
  29. dw RockTunnel2EndBattleText2 ; TextEndBattle
  30. RockTunnel2TrainerHeader1:
  31. dbEventFlagBit EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_1
  32. db ($3 << 4) ; trainer's view range
  33. dwEventFlagAddress EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_1
  34. dw RockTunnel2BattleText3 ; TextBeforeBattle
  35. dw RockTunnel2AfterBattleText3 ; TextAfterBattle
  36. dw RockTunnel2EndBattleText3 ; TextEndBattle
  37. dw RockTunnel2EndBattleText3 ; TextEndBattle
  38. RockTunnel2TrainerHeader2:
  39. dbEventFlagBit EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_2
  40. db ($3 << 4) ; trainer's view range
  41. dwEventFlagAddress EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_2
  42. dw RockTunnel2BattleText4 ; TextBeforeBattle
  43. dw RockTunnel2AfterBattleText4 ; TextAfterBattle
  44. dw RockTunnel2EndBattleText4 ; TextEndBattle
  45. dw RockTunnel2EndBattleText4 ; TextEndBattle
  46. RockTunnel2TrainerHeader3:
  47. dbEventFlagBit EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_3
  48. db ($4 << 4) ; trainer's view range
  49. dwEventFlagAddress EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_3
  50. dw RockTunnel2BattleText5 ; TextBeforeBattle
  51. dw RockTunnel2AfterBattleText5 ; TextAfterBattle
  52. dw RockTunnel2EndBattleText5 ; TextEndBattle
  53. dw RockTunnel2EndBattleText5 ; TextEndBattle
  54. RockTunnel2TrainerHeader4:
  55. dbEventFlagBit EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_4
  56. db ($3 << 4) ; trainer's view range
  57. dwEventFlagAddress EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_4
  58. dw RockTunnel2BattleText6 ; TextBeforeBattle
  59. dw RockTunnel2AfterBattleText6 ; TextAfterBattle
  60. dw RockTunnel2EndBattleText6 ; TextEndBattle
  61. dw RockTunnel2EndBattleText6 ; TextEndBattle
  62. RockTunnel2TrainerHeader5:
  63. dbEventFlagBit EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_5
  64. db ($4 << 4) ; trainer's view range
  65. dwEventFlagAddress EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_5
  66. dw RockTunnel2BattleText7 ; TextBeforeBattle
  67. dw RockTunnel2AfterBattleText7 ; TextAfterBattle
  68. dw RockTunnel2EndBattleText7 ; TextEndBattle
  69. dw RockTunnel2EndBattleText7 ; TextEndBattle
  70. RockTunnel2TrainerHeader6:
  71. dbEventFlagBit EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_6
  72. db ($3 << 4) ; trainer's view range
  73. dwEventFlagAddress EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_6
  74. dw RockTunnel2BattleText8 ; TextBeforeBattle
  75. dw RockTunnel2AfterBattleText8 ; TextAfterBattle
  76. dw RockTunnel2EndBattleText8 ; TextEndBattle
  77. dw RockTunnel2EndBattleText8 ; TextEndBattle
  78. RockTunnel2TrainerHeader7:
  79. dbEventFlagBit EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_7, 1
  80. db ($3 << 4) ; trainer's view range
  81. dwEventFlagAddress EVENT_BEAT_ROCK_TUNNEL_2_TRAINER_7, 1
  82. dw RockTunnel2BattleText9 ; TextBeforeBattle
  83. dw RockTunnel2AfterBattleText9 ; TextAfterBattle
  84. dw RockTunnel2EndBattleText9 ; TextEndBattle
  85. dw RockTunnel2EndBattleText9 ; TextEndBattle
  86. db $ff
  87. RockTunnel2Text1:
  88. TX_ASM
  89. ld hl, RockTunnel2TrainerHeader0
  90. call TalkToTrainer
  91. jp TextScriptEnd
  92. RockTunnel2Text2:
  93. TX_ASM
  94. ld hl, RockTunnel2TrainerHeader1
  95. call TalkToTrainer
  96. jp TextScriptEnd
  97. RockTunnel2Text3:
  98. TX_ASM
  99. ld hl, RockTunnel2TrainerHeader2
  100. call TalkToTrainer
  101. jp TextScriptEnd
  102. RockTunnel2Text4:
  103. TX_ASM
  104. ld hl, RockTunnel2TrainerHeader3
  105. call TalkToTrainer
  106. jp TextScriptEnd
  107. RockTunnel2Text5:
  108. TX_ASM
  109. ld hl, RockTunnel2TrainerHeader4
  110. call TalkToTrainer
  111. jp TextScriptEnd
  112. RockTunnel2Text6:
  113. TX_ASM
  114. ld hl, RockTunnel2TrainerHeader5
  115. call TalkToTrainer
  116. jp TextScriptEnd
  117. RockTunnel2Text7:
  118. TX_ASM
  119. ld hl, RockTunnel2TrainerHeader6
  120. call TalkToTrainer
  121. jp TextScriptEnd
  122. RockTunnel2Text8:
  123. TX_ASM
  124. ld hl, RockTunnel2TrainerHeader7
  125. call TalkToTrainer
  126. jp TextScriptEnd
  127. RockTunnel2BattleText2:
  128. TX_FAR _RockTunnel2BattleText2
  129. db "@"
  130. RockTunnel2EndBattleText2:
  131. TX_FAR _RockTunnel2EndBattleText2
  132. db "@"
  133. RockTunnel2AfterBattleText2:
  134. TX_FAR _RockTunnel2AfterBattleText2
  135. db "@"
  136. RockTunnel2BattleText3:
  137. TX_FAR _RockTunnel2BattleText3
  138. db "@"
  139. RockTunnel2EndBattleText3:
  140. TX_FAR _RockTunnel2EndBattleText3
  141. db "@"
  142. RockTunnel2AfterBattleText3:
  143. TX_FAR _RockTunnel2AfterBattleText3
  144. db "@"
  145. RockTunnel2BattleText4:
  146. TX_FAR _RockTunnel2BattleText4
  147. db "@"
  148. RockTunnel2EndBattleText4:
  149. TX_FAR _RockTunnel2EndBattleText4
  150. db "@"
  151. RockTunnel2AfterBattleText4:
  152. TX_FAR _RockTunnel2AfterBattleText4
  153. db "@"
  154. RockTunnel2BattleText5:
  155. TX_FAR _RockTunnel2BattleText5
  156. db "@"
  157. RockTunnel2EndBattleText5:
  158. TX_FAR _RockTunnel2EndBattleText5
  159. db "@"
  160. RockTunnel2AfterBattleText5:
  161. TX_FAR _RockTunnel2AfterBattleText5
  162. db "@"
  163. RockTunnel2BattleText6:
  164. TX_FAR _RockTunnel2BattleText6
  165. db "@"
  166. RockTunnel2EndBattleText6:
  167. TX_FAR _RockTunnel2EndBattleText6
  168. db "@"
  169. RockTunnel2AfterBattleText6:
  170. TX_FAR _RockTunnel2AfterBattleText6
  171. db "@"
  172. RockTunnel2BattleText7:
  173. TX_FAR _RockTunnel2BattleText7
  174. db "@"
  175. RockTunnel2EndBattleText7:
  176. TX_FAR _RockTunnel2EndBattleText7
  177. db "@"
  178. RockTunnel2AfterBattleText7:
  179. TX_FAR _RockTunnel2AfterBattleText7
  180. db "@"
  181. RockTunnel2BattleText8:
  182. TX_FAR _RockTunnel2BattleText8
  183. db "@"
  184. RockTunnel2EndBattleText8:
  185. TX_FAR _RockTunnel2EndBattleText8
  186. db "@"
  187. RockTunnel2AfterBattleText8:
  188. TX_FAR _RockTunnel2AfterBattleText8
  189. db "@"
  190. RockTunnel2BattleText9:
  191. TX_FAR _RockTunnel2BattleText9
  192. db "@"
  193. RockTunnel2EndBattleText9:
  194. TX_FAR _RockTunnel2EndBattleText9
  195. db "@"
  196. RockTunnel2AfterBattleText9:
  197. TX_FAR _RockTunnel2AfterBattleText9
  198. db "@"