pokemontower4.asm 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. PokemonTower4Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, PokemonTower4TrainerHeader0
  4. ld de, PokemonTower4ScriptPointers
  5. ld a, [wPokemonTower4CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wPokemonTower4CurScript], a
  8. ret
  9. PokemonTower4ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. PokemonTower4TextPointers:
  14. dw PokemonTower4Text1
  15. dw PokemonTower4Text2
  16. dw PokemonTower4Text3
  17. dw PickUpItemText
  18. dw PickUpItemText
  19. dw PickUpItemText
  20. PokemonTower4TrainerHeader0:
  21. dbEventFlagBit EVENT_BEAT_POKEMONTOWER_4_TRAINER_0
  22. db ($2 << 4) ; trainer's view range
  23. dwEventFlagAddress EVENT_BEAT_POKEMONTOWER_4_TRAINER_0
  24. dw PokemonTower4BattleText1 ; TextBeforeBattle
  25. dw PokemonTower4AfterBattleText1 ; TextAfterBattle
  26. dw PokemonTower4EndBattleText1 ; TextEndBattle
  27. dw PokemonTower4EndBattleText1 ; TextEndBattle
  28. PokemonTower4TrainerHeader1:
  29. dbEventFlagBit EVENT_BEAT_POKEMONTOWER_4_TRAINER_1
  30. db ($2 << 4) ; trainer's view range
  31. dwEventFlagAddress EVENT_BEAT_POKEMONTOWER_4_TRAINER_1
  32. dw PokemonTower4BattleText2 ; TextBeforeBattle
  33. dw PokemonTower4AfterBattleText2 ; TextAfterBattle
  34. dw PokemonTower4EndBattleText2 ; TextEndBattle
  35. dw PokemonTower4EndBattleText2 ; TextEndBattle
  36. PokemonTower4TrainerHeader2:
  37. dbEventFlagBit EVENT_BEAT_POKEMONTOWER_4_TRAINER_2
  38. db ($2 << 4) ; trainer's view range
  39. dwEventFlagAddress EVENT_BEAT_POKEMONTOWER_4_TRAINER_2
  40. dw PokemonTower4BattleText3 ; TextBeforeBattle
  41. dw PokemonTower4AfterBattleText3 ; TextAfterBattle
  42. dw PokemonTower4EndBattleText3 ; TextEndBattle
  43. dw PokemonTower4EndBattleText3 ; TextEndBattle
  44. db $ff
  45. PokemonTower4Text1:
  46. TX_ASM
  47. ld hl, PokemonTower4TrainerHeader0
  48. call TalkToTrainer
  49. jp TextScriptEnd
  50. PokemonTower4Text2:
  51. TX_ASM
  52. ld hl, PokemonTower4TrainerHeader1
  53. call TalkToTrainer
  54. jp TextScriptEnd
  55. PokemonTower4Text3:
  56. TX_ASM
  57. ld hl, PokemonTower4TrainerHeader2
  58. call TalkToTrainer
  59. jp TextScriptEnd
  60. PokemonTower4BattleText1:
  61. TX_FAR _PokemonTower4BattleText1
  62. db "@"
  63. PokemonTower4EndBattleText1:
  64. TX_FAR _PokemonTower4EndBattleText1
  65. db "@"
  66. PokemonTower4AfterBattleText1:
  67. TX_FAR _PokemonTower4AfterBattleText1
  68. db "@"
  69. PokemonTower4BattleText2:
  70. TX_FAR _PokemonTower4BattleText2
  71. db "@"
  72. PokemonTower4EndBattleText2:
  73. TX_FAR _PokemonTower4EndBattleText2
  74. db "@"
  75. PokemonTower4AfterBattleText2:
  76. TX_FAR _PokemonTower4AfterBattleText2
  77. db "@"
  78. PokemonTower4BattleText3:
  79. TX_FAR _PokemonTower4BattleText3
  80. db "@"
  81. PokemonTower4EndBattleText3:
  82. TX_FAR _PokemonTower4EndBattleText3
  83. db "@"
  84. PokemonTower4AfterBattleText3:
  85. TX_FAR _PokemonTower4AfterBattleText3
  86. db "@"