ssanne5.asm 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. SSAnne5Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, SSAnne5TrainerHeader0
  4. ld de, SSAnne5ScriptPointers
  5. ld a, [wSSAnne5CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wSSAnne5CurScript], a
  8. ret
  9. SSAnne5ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. SSAnne5TextPointers:
  14. dw SSAnne5Text1
  15. dw SSAnne5Text2
  16. dw SSAnne5Text3
  17. dw SSAnne5Text4
  18. dw SSAnne5Text5
  19. SSAnne5TrainerHeader0:
  20. dbEventFlagBit EVENT_BEAT_SS_ANNE_5_TRAINER_0
  21. db ($3 << 4) ; trainer's view range
  22. dwEventFlagAddress EVENT_BEAT_SS_ANNE_5_TRAINER_0
  23. dw SSAnne5BattleText1 ; TextBeforeBattle
  24. dw SSAnne5AfterBattleText1 ; TextAfterBattle
  25. dw SSAnne5EndBattleText1 ; TextEndBattle
  26. dw SSAnne5EndBattleText1 ; TextEndBattle
  27. SSAnne5TrainerHeader1:
  28. dbEventFlagBit EVENT_BEAT_SS_ANNE_5_TRAINER_1
  29. db ($3 << 4) ; trainer's view range
  30. dwEventFlagAddress EVENT_BEAT_SS_ANNE_5_TRAINER_1
  31. dw SSAnne5BattleText2 ; TextBeforeBattle
  32. dw SSAnne5AfterBattleText2 ; TextAfterBattle
  33. dw SSAnne5EndBattleText2 ; TextEndBattle
  34. dw SSAnne5EndBattleText2 ; TextEndBattle
  35. db $ff
  36. SSAnne5Text1:
  37. TX_FAR _SSAnne5Text1
  38. db "@"
  39. SSAnne5Text2:
  40. TX_FAR _SSAnne5Text2
  41. db "@"
  42. SSAnne5Text3:
  43. TX_FAR _SSAnne5Text3
  44. db "@"
  45. SSAnne5Text4:
  46. TX_ASM
  47. ld hl, SSAnne5TrainerHeader0
  48. call TalkToTrainer
  49. jp TextScriptEnd
  50. SSAnne5BattleText1:
  51. TX_FAR _SSAnne5BattleText1
  52. db "@"
  53. SSAnne5EndBattleText1:
  54. TX_FAR _SSAnne5EndBattleText1
  55. db "@"
  56. SSAnne5AfterBattleText1:
  57. TX_FAR _SSAnne5AfterBattleText1
  58. db "@"
  59. SSAnne5Text5:
  60. TX_ASM
  61. ld hl, SSAnne5TrainerHeader1
  62. call TalkToTrainer
  63. jp TextScriptEnd
  64. SSAnne5BattleText2:
  65. TX_FAR _SSAnne5BattleText2
  66. db "@"
  67. SSAnne5EndBattleText2:
  68. TX_FAR _SSAnne5EndBattleText2
  69. db "@"
  70. SSAnne5AfterBattleText2:
  71. TX_FAR _SSAnne5AfterBattleText2
  72. db "@"