diff options
| author | Daniel Harding <33dannye@gmail.com> | 2019-01-13 22:38:16 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-13 22:38:16 -0600 |
| commit | 725b86ebbec23bd1f53fd60bf0201c904fee951d (patch) | |
| tree | a37f4d33c5b77635c7ff72b91a73fcd90c4af915 /scripts/CeruleanCaveB1F.asm | |
| parent | Merge pull request #195 from Rangi42/master (diff) | |
| parent | Rename map files, labels, and constants to be consistent and work with Polish... (diff) | |
| download | pokeyellow-725b86ebbec23bd1f53fd60bf0201c904fee951d.tar.gz pokeyellow-725b86ebbec23bd1f53fd60bf0201c904fee951d.tar.xz pokeyellow-725b86ebbec23bd1f53fd60bf0201c904fee951d.zip | |
Merge pull request #196 from Rangi42/polishedmaps
Rename map files, labels, and constants to be consistent and work with Polished Map
Diffstat (limited to 'scripts/CeruleanCaveB1F.asm')
| -rwxr-xr-x | scripts/CeruleanCaveB1F.asm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/scripts/CeruleanCaveB1F.asm b/scripts/CeruleanCaveB1F.asm new file mode 100755 index 00000000..a570ab18 --- /dev/null +++ b/scripts/CeruleanCaveB1F.asm @@ -0,0 +1,43 @@ +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 + +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 |
