ref: 1db2e7b5b470a47da9ca237ad704c2b73f29af2e
dir: /scripts/CeruleanCaveB1F.asm/
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: text_asm ld hl, MewtwoTrainerHeader call TalkToTrainer jp TextScriptEnd MewtwoBattleText: text_far _MewtwoBattleText text_asm ld a, MEWTWO call PlayCry call WaitForSoundToFinish jp TextScriptEnd