viridianforest.asm 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. ViridianForestScript:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, ViridianForestTrainerHeader0
  4. ld de, ViridianForestScriptPointers
  5. ld a, [wViridianForestCurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wViridianForestCurScript], a
  8. ret
  9. ViridianForestScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. ViridianForestTextPointers:
  14. dw ViridianForestText1
  15. dw ViridianForestText2
  16. dw ViridianForestText3
  17. dw ViridianForestText4
  18. dw PickUpItemText
  19. dw PickUpItemText
  20. dw PickUpItemText
  21. dw ViridianForestText8
  22. dw ViridianForestText9
  23. dw ViridianForestText10
  24. dw ViridianForestText11
  25. dw ViridianForestText12
  26. dw ViridianForestText13
  27. dw ViridianForestText14
  28. ViridianForestTrainerHeader0:
  29. dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_0
  30. db ($4 << 4) ; trainer's view range
  31. dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_0
  32. dw ViridianForestBattleText1 ; TextBeforeBattle
  33. dw ViridianForestAfterBattleText1 ; TextAfterBattle
  34. dw ViridianForestEndBattleText1 ; TextEndBattle
  35. dw ViridianForestEndBattleText1 ; TextEndBattle
  36. ViridianForestTrainerHeader1:
  37. dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_1
  38. db ($4 << 4) ; trainer's view range
  39. dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_1
  40. dw ViridianForestBattleText2 ; TextBeforeBattle
  41. dw ViridianForestAfterBattleText2 ; TextAfterBattle
  42. dw ViridianForestEndBattleText2 ; TextEndBattle
  43. dw ViridianForestEndBattleText2 ; TextEndBattle
  44. ViridianForestTrainerHeader2:
  45. dbEventFlagBit EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_2
  46. db ($1 << 4) ; trainer's view range
  47. dwEventFlagAddress EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_2
  48. dw ViridianForestBattleText3 ; TextBeforeBattle
  49. dw ViridianForestAfterBattleText3 ; TextAfterBattle
  50. dw ViridianForestEndBattleText3 ; TextEndBattle
  51. dw ViridianForestEndBattleText3 ; TextEndBattle
  52. db $ff
  53. ViridianForestText1:
  54. TX_FAR _ViridianForestText1
  55. db "@"
  56. ViridianForestText2:
  57. TX_ASM
  58. ld hl, ViridianForestTrainerHeader0
  59. call TalkToTrainer
  60. jp TextScriptEnd
  61. ViridianForestText3:
  62. TX_ASM
  63. ld hl, ViridianForestTrainerHeader1
  64. call TalkToTrainer
  65. jp TextScriptEnd
  66. ViridianForestText4:
  67. TX_ASM
  68. ld hl, ViridianForestTrainerHeader2
  69. call TalkToTrainer
  70. jp TextScriptEnd
  71. ViridianForestBattleText1:
  72. TX_FAR _ViridianForestBattleText1
  73. db "@"
  74. ViridianForestEndBattleText1:
  75. TX_FAR _ViridianForestEndBattleText1
  76. db "@"
  77. ViridianForestAfterBattleText1:
  78. TX_FAR _ViridianFrstAfterBattleText1
  79. db "@"
  80. ViridianForestBattleText2:
  81. TX_FAR _ViridianForestBattleText2
  82. db "@"
  83. ViridianForestEndBattleText2:
  84. TX_FAR _ViridianForestEndBattleText2
  85. db "@"
  86. ViridianForestAfterBattleText2:
  87. TX_FAR _ViridianFrstAfterBattleText2
  88. db "@"
  89. ViridianForestBattleText3:
  90. TX_FAR _ViridianForestBattleText3
  91. db "@"
  92. ViridianForestEndBattleText3:
  93. TX_FAR _ViridianForestEndBattleText3
  94. db "@"
  95. ViridianForestAfterBattleText3:
  96. TX_FAR _ViridianFrstAfterBattleText3
  97. db "@"
  98. ViridianForestText8:
  99. TX_FAR _ViridianForestText8
  100. db "@"
  101. ViridianForestText9:
  102. TX_FAR _ViridianForestText9
  103. db "@"
  104. ViridianForestText10:
  105. TX_FAR _ViridianForestText10
  106. db "@"
  107. ViridianForestText11:
  108. TX_FAR _ViridianForestText11
  109. db "@"
  110. ViridianForestText12:
  111. TX_FAR _ViridianForestText12
  112. db "@"
  113. ViridianForestText13:
  114. TX_FAR _ViridianForestText13
  115. db "@"
  116. ViridianForestText14:
  117. TX_FAR _ViridianForestText14
  118. db "@"