pokemontower3.asm 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. PokemonTower3Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, PokemonTower3TrainerHeader0
  4. ld de, PokemonTower3ScriptPointers
  5. ld a, [wPokemonTower3CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wPokemonTower3CurScript], a
  8. ret
  9. PokemonTower3ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. PokemonTower3TextPointers:
  14. dw PokemonTower3Text1
  15. dw PokemonTower3Text2
  16. dw PokemonTower3Text3
  17. dw PickUpItemText
  18. PokemonTower3TrainerHeader0:
  19. dbEventFlagBit EVENT_BEAT_POKEMONTOWER_3_TRAINER_0
  20. db ($2 << 4) ; trainer's view range
  21. dwEventFlagAddress EVENT_BEAT_POKEMONTOWER_3_TRAINER_0
  22. dw PokemonTower3BattleText1 ; TextBeforeBattle
  23. dw PokemonTower3AfterBattleText1 ; TextAfterBattle
  24. dw PokemonTower3EndBattleText1 ; TextEndBattle
  25. dw PokemonTower3EndBattleText1 ; TextEndBattle
  26. PokemonTower3TrainerHeader1:
  27. dbEventFlagBit EVENT_BEAT_POKEMONTOWER_3_TRAINER_1
  28. db ($3 << 4) ; trainer's view range
  29. dwEventFlagAddress EVENT_BEAT_POKEMONTOWER_3_TRAINER_1
  30. dw PokemonTower3BattleText2 ; TextBeforeBattle
  31. dw PokemonTower3AfterBattleText2 ; TextAfterBattle
  32. dw PokemonTower3EndBattleText2 ; TextEndBattle
  33. dw PokemonTower3EndBattleText2 ; TextEndBattle
  34. PokemonTower3TrainerHeader2:
  35. dbEventFlagBit EVENT_BEAT_POKEMONTOWER_3_TRAINER_2
  36. db ($2 << 4) ; trainer's view range
  37. dwEventFlagAddress EVENT_BEAT_POKEMONTOWER_3_TRAINER_2
  38. dw PokemonTower3BattleText3 ; TextBeforeBattle
  39. dw PokemonTower3AfterBattleText3 ; TextAfterBattle
  40. dw PokemonTower3EndBattleText3 ; TextEndBattle
  41. dw PokemonTower3EndBattleText3 ; TextEndBattle
  42. db $ff
  43. PokemonTower3Text1:
  44. TX_ASM
  45. ld hl, PokemonTower3TrainerHeader0
  46. call TalkToTrainer
  47. jp TextScriptEnd
  48. PokemonTower3Text2:
  49. TX_ASM
  50. ld hl, PokemonTower3TrainerHeader1
  51. call TalkToTrainer
  52. jp TextScriptEnd
  53. PokemonTower3Text3:
  54. TX_ASM
  55. ld hl, PokemonTower3TrainerHeader2
  56. call TalkToTrainer
  57. jp TextScriptEnd
  58. PokemonTower3BattleText1:
  59. TX_FAR _PokemonTower3BattleText1
  60. db "@"
  61. PokemonTower3EndBattleText1:
  62. TX_FAR _PokemonTower3EndBattleText1
  63. db "@"
  64. PokemonTower3AfterBattleText1:
  65. TX_FAR _PokemonTower3AfterBattleText1
  66. db "@"
  67. PokemonTower3BattleText2:
  68. TX_FAR _PokemonTower3BattleText2
  69. db "@"
  70. PokemonTower3EndBattleText2:
  71. TX_FAR _PokemonTower3EndBattleText2
  72. db "@"
  73. PokemonTower3AfterBattleText2:
  74. TX_FAR _PokemonTower3AfterBattleText2
  75. db "@"
  76. PokemonTower3BattleText3:
  77. TX_FAR _PokemonTower3BattleText3
  78. db "@"
  79. PokemonTower3EndBattleText3:
  80. TX_FAR _PokemonTower3EndBattleText3
  81. db "@"
  82. PokemonTower3AfterBattleText3:
  83. TX_FAR _PokemonTower3AfterBattleText3
  84. db "@"