diff options
author | Daniel Harding <33dannye@gmail.com> | 2020-05-20 20:17:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 20:17:30 -0500 |
commit | 500d99c258145d233af8d14cdb5c6e0200dfc1d8 (patch) | |
tree | 7dbe7b152dde8a6e9b56664b5b8cdfc0d6be1253 /scripts/CeruleanCaveB1F.asm | |
parent | b8954732a3eaa3a784a6e3eaaa68977a9ccd9816 (diff) | |
parent | 33456b8fb28ef547a54d04d22baa2313b72fdb1d (diff) |
Merge pull request #50 from dannye/master
merge pokered
Diffstat (limited to 'scripts/CeruleanCaveB1F.asm')
-rwxr-xr-x | scripts/CeruleanCaveB1F.asm | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/scripts/CeruleanCaveB1F.asm b/scripts/CeruleanCaveB1F.asm new file mode 100755 index 00000000..b98ca4ba --- /dev/null +++ b/scripts/CeruleanCaveB1F.asm @@ -0,0 +1,45 @@ +CeruleanCaveB1F_Script: + call EnableAutoTextBoxDrawing + ld hl, MewtwoTrainerHeader + ld de, CeruleanCaveB1F_ScriptPointers + ld a, [wCeruleanCaveB1FCurScript] + call ExecuteCurMapScriptInTable + ld [wCeruleanCaveB1FCurScript], a + ret + +CeruleanCaveB1F_ScriptPointers: + dw CheckFightingMapTrainers + dw DisplayEnemyTrainerTextAndStartBattle + dw EndTrainerBattle + +CeruleanCaveB1F_TextPointers: + dw MewtwoText + dw PickUpItemText + dw PickUpItemText + dw PickUpItemText + dw PickUpItemText + +MewtwoTrainerHeader: + dbEventFlagBit EVENT_BEAT_MEWTWO + db ($0 << 4) ; trainer's view range + dwEventFlagAddress EVENT_BEAT_MEWTWO + dw MewtwoBattleText ; TextBeforeBattle + dw MewtwoBattleText ; TextAfterBattle + dw MewtwoBattleText ; TextEndBattle + dw MewtwoBattleText ; TextEndBattle + + db $ff + +MewtwoText: + TX_ASM + ld hl, MewtwoTrainerHeader + call TalkToTrainer + jp TextScriptEnd + +MewtwoBattleText: + TX_FAR _MewtwoBattleText + TX_ASM + ld a, MEWTWO + call PlayCry + call WaitForSoundToFinish + jp TextScriptEnd |