mtmoon1.asm 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. MtMoon1Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, MtMoon1TrainerHeader0
  4. ld de, MtMoon1ScriptPointers
  5. ld a, [wMtMoon1CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wMtMoon1CurScript], a
  8. ret
  9. MtMoon1ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. MtMoon1TextPointers:
  14. dw MtMoon1Text1
  15. dw MtMoon1Text2
  16. dw MtMoon1Text3
  17. dw MtMoon1Text4
  18. dw MtMoon1Text5
  19. dw MtMoon1Text6
  20. dw MtMoon1Text7
  21. dw PickUpItemText
  22. dw PickUpItemText
  23. dw PickUpItemText
  24. dw PickUpItemText
  25. dw PickUpItemText
  26. dw PickUpItemText
  27. dw MtMoon1Text14
  28. MtMoon1TrainerHeader0:
  29. dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_0
  30. db ($2 << 4) ; trainer's view range
  31. dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_0
  32. dw MtMoon1BattleText2 ; TextBeforeBattle
  33. dw MtMoon1AfterBattleText2 ; TextAfterBattle
  34. dw MtMoon1EndBattleText2 ; TextEndBattle
  35. dw MtMoon1EndBattleText2 ; TextEndBattle
  36. MtMoon1TrainerHeader1:
  37. dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_1
  38. db ($3 << 4) ; trainer's view range
  39. dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_1
  40. dw MtMoon1BattleText3 ; TextBeforeBattle
  41. dw MtMoon1AfterBattleText3 ; TextAfterBattle
  42. dw MtMoon1EndBattleText3 ; TextEndBattle
  43. dw MtMoon1EndBattleText3 ; TextEndBattle
  44. MtMoon1TrainerHeader2:
  45. dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_2
  46. db ($3 << 4) ; trainer's view range
  47. dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_2
  48. dw MtMoon1BattleText4 ; TextBeforeBattle
  49. dw MtMoon1AfterBattleText4 ; TextAfterBattle
  50. dw MtMoon1EndBattleText4 ; TextEndBattle
  51. dw MtMoon1EndBattleText4 ; TextEndBattle
  52. MtMoon1TrainerHeader3:
  53. dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_3
  54. db ($3 << 4) ; trainer's view range
  55. dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_3
  56. dw MtMoon1BattleText5 ; TextBeforeBattle
  57. dw MtMoon1AfterBattleText5 ; TextAfterBattle
  58. dw MtMoon1EndBattleText5 ; TextEndBattle
  59. dw MtMoon1EndBattleText5 ; TextEndBattle
  60. MtMoon1TrainerHeader4:
  61. dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_4
  62. db ($3 << 4) ; trainer's view range
  63. dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_4
  64. dw MtMoon1BattleText6 ; TextBeforeBattle
  65. dw MtMoon1AfterBattleText6 ; TextAfterBattle
  66. dw MtMoon1EndBattleText6 ; TextEndBattle
  67. dw MtMoon1EndBattleText6 ; TextEndBattle
  68. MtMoon1TrainerHeader5:
  69. dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_5
  70. db ($3 << 4) ; trainer's view range
  71. dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_5
  72. dw MtMoon1BattleText7 ; TextBeforeBattle
  73. dw MtMoon1AfterBattleText7 ; TextAfterBattle
  74. dw MtMoon1EndBattleText7 ; TextEndBattle
  75. dw MtMoon1EndBattleText7 ; TextEndBattle
  76. MtMoon1TrainerHeader6:
  77. dbEventFlagBit EVENT_BEAT_MT_MOON_1_TRAINER_6
  78. db ($3 << 4) ; trainer's view range
  79. dwEventFlagAddress EVENT_BEAT_MT_MOON_1_TRAINER_6
  80. dw MtMoon1BattleText8 ; TextBeforeBattle
  81. dw MtMoon1AfterBattleText8 ; TextAfterBattle
  82. dw MtMoon1EndBattleText8 ; TextEndBattle
  83. dw MtMoon1EndBattleText8 ; TextEndBattle
  84. db $ff
  85. MtMoon1Text1:
  86. TX_ASM
  87. ld hl, MtMoon1TrainerHeader0
  88. call TalkToTrainer
  89. jp TextScriptEnd
  90. MtMoon1Text2:
  91. TX_ASM
  92. ld hl, MtMoon1TrainerHeader1
  93. call TalkToTrainer
  94. jp TextScriptEnd
  95. MtMoon1Text3:
  96. TX_ASM
  97. ld hl, MtMoon1TrainerHeader2
  98. call TalkToTrainer
  99. jp TextScriptEnd
  100. MtMoon1Text4:
  101. TX_ASM
  102. ld hl, MtMoon1TrainerHeader3
  103. call TalkToTrainer
  104. jp TextScriptEnd
  105. MtMoon1Text5:
  106. TX_ASM
  107. ld hl, MtMoon1TrainerHeader4
  108. call TalkToTrainer
  109. jp TextScriptEnd
  110. MtMoon1Text6:
  111. TX_ASM
  112. ld hl, MtMoon1TrainerHeader5
  113. call TalkToTrainer
  114. jp TextScriptEnd
  115. MtMoon1Text7:
  116. TX_ASM
  117. ld hl, MtMoon1TrainerHeader6
  118. call TalkToTrainer
  119. jp TextScriptEnd
  120. MtMoon1BattleText2:
  121. TX_FAR _MtMoon1BattleText2
  122. db "@"
  123. MtMoon1EndBattleText2:
  124. TX_FAR _MtMoon1EndBattleText2
  125. db "@"
  126. MtMoon1AfterBattleText2:
  127. TX_FAR _MtMoon1AfterBattleText2
  128. db "@"
  129. MtMoon1BattleText3:
  130. TX_FAR _MtMoon1BattleText3
  131. db "@"
  132. MtMoon1EndBattleText3:
  133. TX_FAR _MtMoon1EndBattleText3
  134. db "@"
  135. MtMoon1AfterBattleText3:
  136. TX_FAR _MtMoon1AfterBattleText3
  137. db "@"
  138. MtMoon1BattleText4:
  139. TX_FAR _MtMoon1BattleText4
  140. db "@"
  141. MtMoon1EndBattleText4:
  142. TX_FAR _MtMoon1EndBattleText4
  143. db "@"
  144. MtMoon1AfterBattleText4:
  145. TX_FAR _MtMoon1AfterBattleText4
  146. db "@"
  147. MtMoon1BattleText5:
  148. TX_FAR _MtMoon1BattleText5
  149. db "@"
  150. MtMoon1EndBattleText5:
  151. TX_FAR _MtMoon1EndBattleText5
  152. db "@"
  153. MtMoon1AfterBattleText5:
  154. TX_FAR _MtMoon1AfterBattleText5
  155. db "@"
  156. MtMoon1BattleText6:
  157. TX_FAR _MtMoon1BattleText6
  158. db "@"
  159. MtMoon1EndBattleText6:
  160. TX_FAR _MtMoon1EndBattleText6
  161. db "@"
  162. MtMoon1AfterBattleText6:
  163. TX_FAR _MtMoon1AfterBattleText6
  164. db "@"
  165. MtMoon1BattleText7:
  166. TX_FAR _MtMoon1BattleText7
  167. db "@"
  168. MtMoon1EndBattleText7:
  169. TX_FAR _MtMoon1EndBattleText7
  170. db "@"
  171. MtMoon1AfterBattleText7:
  172. TX_FAR _MtMoon1AfterBattleText7
  173. db "@"
  174. MtMoon1BattleText8:
  175. TX_FAR _MtMoon1BattleText8
  176. db "@"
  177. MtMoon1EndBattleText8:
  178. TX_FAR _MtMoon1EndBattleText8
  179. db "@"
  180. MtMoon1AfterBattleText8:
  181. TX_FAR _MtMoon1AfterBattleText8
  182. db "@"
  183. MtMoon1Text14:
  184. TX_FAR _MtMoon1Text14
  185. db "@"