unknowndungeon3.asm 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. UnknownDungeon3Script:
  2. call EnableAutoTextBoxDrawing
  3. ld hl, MewtwoTrainerHeader
  4. ld de, .ScriptPointers
  5. ld a, [wUnknownDungeon3CurScript]
  6. call ExecuteCurMapScriptInTable
  7. ld [wUnknownDungeon3CurScript], a
  8. ret
  9. .ScriptPointers
  10. dw CheckFightingMapTrainers
  11. dw DisplayEnemyTrainerTextAndStartBattle
  12. dw EndTrainerBattle
  13. UnknownDungeon3TextPointers:
  14. dw MewtwoText
  15. dw PickUpItemText
  16. dw PickUpItemText
  17. MewtwoTrainerHeader:
  18. dbEventFlagBit EVENT_BEAT_MEWTWO
  19. db ($0 << 4) ; trainer's view range
  20. dwEventFlagAddress EVENT_BEAT_MEWTWO
  21. dw MewtwoBattleText ; TextBeforeBattle
  22. dw MewtwoBattleText ; TextAfterBattle
  23. dw MewtwoBattleText ; TextEndBattle
  24. dw MewtwoBattleText ; TextEndBattle
  25. db $ff
  26. MewtwoText:
  27. TX_ASM
  28. ld hl, MewtwoTrainerHeader
  29. call TalkToTrainer
  30. jp TextScriptEnd
  31. MewtwoBattleText:
  32. TX_FAR _MewtwoBattleText
  33. TX_ASM
  34. ld a, MEWTWO
  35. call PlayCry
  36. call WaitForSoundToFinish
  37. jp TextScriptEnd