ssanne10.asm 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. SSAnne10Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, SSAnne10TrainerHeader0
  4. ld de, SSAnne10ScriptPointers
  5. ld a, [wSSAnne10CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wSSAnne10CurScript], a
  8. ret
  9. SSAnne10ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. SSAnne10TextPointers:
  14. dw SSAnne10Text1
  15. dw SSAnne10Text2
  16. dw SSAnne10Text3
  17. dw SSAnne10Text4
  18. dw SSAnne10Text5
  19. dw SSAnne10Text6
  20. dw SSAnne10Text7
  21. dw SSAnne10Text8
  22. dw PickUpItemText
  23. dw PickUpItemText
  24. dw PickUpItemText
  25. SSAnne10TrainerHeader0:
  26. dbEventFlagBit EVENT_BEAT_SS_ANNE_10_TRAINER_0
  27. db ($2 << 4) ; trainer's view range
  28. dwEventFlagAddress EVENT_BEAT_SS_ANNE_10_TRAINER_0
  29. dw SSAnne10BattleText1 ; TextBeforeBattle
  30. dw SSAnne10AfterBattleText1 ; TextAfterBattle
  31. dw SSAnne10EndBattleText1 ; TextEndBattle
  32. dw SSAnne10EndBattleText1 ; TextEndBattle
  33. SSAnne10TrainerHeader1:
  34. dbEventFlagBit EVENT_BEAT_SS_ANNE_10_TRAINER_1
  35. db ($3 << 4) ; trainer's view range
  36. dwEventFlagAddress EVENT_BEAT_SS_ANNE_10_TRAINER_1
  37. dw SSAnne10BattleText2 ; TextBeforeBattle
  38. dw SSAnne10AfterBattleText2 ; TextAfterBattle
  39. dw SSAnne10EndBattleText2 ; TextEndBattle
  40. dw SSAnne10EndBattleText2 ; TextEndBattle
  41. SSAnne10TrainerHeader2:
  42. dbEventFlagBit EVENT_BEAT_SS_ANNE_10_TRAINER_2
  43. db ($2 << 4) ; trainer's view range
  44. dwEventFlagAddress EVENT_BEAT_SS_ANNE_10_TRAINER_2
  45. dw SSAnne10BattleText3 ; TextBeforeBattle
  46. dw SSAnne10AfterBattleText3 ; TextAfterBattle
  47. dw SSAnne10EndBattleText3 ; TextEndBattle
  48. dw SSAnne10EndBattleText3 ; TextEndBattle
  49. SSAnne10TrainerHeader3:
  50. dbEventFlagBit EVENT_BEAT_SS_ANNE_10_TRAINER_3
  51. db ($2 << 4) ; trainer's view range
  52. dwEventFlagAddress EVENT_BEAT_SS_ANNE_10_TRAINER_3
  53. dw SSAnne10BattleText4 ; TextBeforeBattle
  54. dw SSAnne10AfterBattleText4 ; TextAfterBattle
  55. dw SSAnne10EndBattleText4 ; TextEndBattle
  56. dw SSAnne10EndBattleText4 ; TextEndBattle
  57. SSAnne10TrainerHeader4:
  58. dbEventFlagBit EVENT_BEAT_SS_ANNE_10_TRAINER_4
  59. db ($2 << 4) ; trainer's view range
  60. dwEventFlagAddress EVENT_BEAT_SS_ANNE_10_TRAINER_4
  61. dw SSAnne10BattleText5 ; TextBeforeBattle
  62. dw SSAnne10AfterBattleText5 ; TextAfterBattle
  63. dw SSAnne10EndBattleText5 ; TextEndBattle
  64. dw SSAnne10EndBattleText5 ; TextEndBattle
  65. SSAnne10TrainerHeader5:
  66. dbEventFlagBit EVENT_BEAT_SS_ANNE_10_TRAINER_5
  67. db ($3 << 4) ; trainer's view range
  68. dwEventFlagAddress EVENT_BEAT_SS_ANNE_10_TRAINER_5
  69. dw SSAnne10BattleText6 ; TextBeforeBattle
  70. dw SSAnne10AfterBattleText6 ; TextAfterBattle
  71. dw SSAnne10EndBattleText6 ; TextEndBattle
  72. dw SSAnne10EndBattleText6 ; TextEndBattle
  73. db $ff
  74. SSAnne10Text1:
  75. TX_ASM
  76. ld hl, SSAnne10TrainerHeader0
  77. call TalkToTrainer
  78. jp TextScriptEnd
  79. SSAnne10Text2:
  80. TX_ASM
  81. ld hl, SSAnne10TrainerHeader1
  82. call TalkToTrainer
  83. jp TextScriptEnd
  84. SSAnne10Text3:
  85. TX_ASM
  86. ld hl, SSAnne10TrainerHeader2
  87. call TalkToTrainer
  88. jp TextScriptEnd
  89. SSAnne10Text4:
  90. TX_ASM
  91. ld hl, SSAnne10TrainerHeader3
  92. call TalkToTrainer
  93. jp TextScriptEnd
  94. SSAnne10Text5:
  95. TX_ASM
  96. ld hl, SSAnne10TrainerHeader4
  97. call TalkToTrainer
  98. jp TextScriptEnd
  99. SSAnne10Text6:
  100. TX_ASM
  101. ld hl, SSAnne10TrainerHeader5
  102. call TalkToTrainer
  103. jp TextScriptEnd
  104. SSAnne10Text8:
  105. TX_FAR _SSAnne10Text8
  106. TX_ASM
  107. ld a, MACHOKE
  108. call PlayCry
  109. jp TextScriptEnd
  110. SSAnne10BattleText1:
  111. TX_FAR _SSAnne10BattleText1
  112. db "@"
  113. SSAnne10EndBattleText1:
  114. TX_FAR _SSAnne10EndBattleText1
  115. db "@"
  116. SSAnne10AfterBattleText1:
  117. TX_FAR _SSAnne10AfterBattleText1
  118. db "@"
  119. SSAnne10BattleText2:
  120. TX_FAR _SSAnne10BattleText2
  121. db "@"
  122. SSAnne10EndBattleText2:
  123. TX_FAR _SSAnne10EndBattleText2
  124. db "@"
  125. SSAnne10AfterBattleText2:
  126. TX_FAR _SSAnne10AfterBattleText2
  127. db "@"
  128. SSAnne10BattleText3:
  129. TX_FAR _SSAnne10BattleText3
  130. db "@"
  131. SSAnne10EndBattleText3:
  132. TX_FAR _SSAnne10EndBattleText3
  133. db "@"
  134. SSAnne10AfterBattleText3:
  135. TX_FAR _SSAnne10AfterBattleText3
  136. db "@"
  137. SSAnne10BattleText4:
  138. TX_FAR _SSAnne10BattleText4
  139. db "@"
  140. SSAnne10EndBattleText4:
  141. TX_FAR _SSAnne10EndBattleText4
  142. db "@"
  143. SSAnne10AfterBattleText4:
  144. TX_FAR _SSAnne10AfterBattleText4
  145. db "@"
  146. SSAnne10BattleText5:
  147. TX_FAR _SSAnne10BattleText5
  148. db "@"
  149. SSAnne10EndBattleText5:
  150. TX_FAR _SSAnne10EndBattleText5
  151. db "@"
  152. SSAnne10AfterBattleText5:
  153. TX_FAR _SSAnne10AfterBattleText5
  154. db "@"
  155. SSAnne10BattleText6:
  156. TX_FAR _SSAnne10BattleText6
  157. db "@"
  158. SSAnne10EndBattleText6:
  159. TX_FAR _SSAnne10EndBattleText6
  160. db "@"
  161. SSAnne10AfterBattleText6:
  162. TX_FAR _SSAnne10AfterBattleText6
  163. db "@"
  164. SSAnne10Text7:
  165. TX_FAR _SSAnne10Text7
  166. db "@"