route4.asm 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Route4Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, Route4TrainerHeader0
  4. ld de, Route4ScriptPointers
  5. ld a, [wRoute4CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wRoute4CurScript], a
  8. ret
  9. Route4ScriptPointers:
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. Route4TextPointers:
  14. dw Route4Text1
  15. dw Route4Text2
  16. dw PickUpItemText
  17. dw PokeCenterSignText
  18. dw Route4Text5
  19. dw Route4Text6
  20. Route4TrainerHeader0:
  21. dbEventFlagBit EVENT_BEAT_ROUTE_4_TRAINER_0
  22. db ($3 << 4) ; trainer's view range
  23. dwEventFlagAddress EVENT_BEAT_ROUTE_4_TRAINER_0
  24. dw Route4BattleText1 ; TextBeforeBattle
  25. dw Route4AfterBattleText1 ; TextAfterBattle
  26. dw Route4EndBattleText1 ; TextEndBattle
  27. dw Route4EndBattleText1 ; TextEndBattle
  28. db $ff
  29. Route4Text1:
  30. TX_FAR _Route4Text1
  31. db "@"
  32. Route4Text2:
  33. TX_ASM
  34. ld hl, Route4TrainerHeader0
  35. call TalkToTrainer
  36. jp TextScriptEnd
  37. Route4BattleText1:
  38. TX_FAR _Route4BattleText1
  39. db "@"
  40. Route4EndBattleText1:
  41. TX_FAR _Route4EndBattleText1
  42. db "@"
  43. Route4AfterBattleText1:
  44. TX_FAR _Route4AfterBattleText1
  45. db "@"
  46. Route4Text5:
  47. TX_FAR _Route4Text5
  48. db "@"
  49. Route4Text6:
  50. TX_FAR _Route4Text6
  51. db "@"