pokered/scripts/CeruleanCaveB1F.asm

41 lines
1.2 KiB
NASM
Raw Permalink Normal View History

CeruleanCaveB1F_Script:
2014-05-18 18:19:10 +00:00
call EnableAutoTextBoxDrawing
ld hl, CeruleanCaveB1FTrainerHeaders
ld de, CeruleanCaveB1F_ScriptPointers
ld a, [wCeruleanCaveB1FCurScript]
2014-05-18 18:19:10 +00:00
call ExecuteCurMapScriptInTable
ld [wCeruleanCaveB1FCurScript], a
2014-05-18 18:19:10 +00:00
ret
CeruleanCaveB1F_ScriptPointers:
def_script_pointers
dw_const CheckFightingMapTrainers, SCRIPT_CERULEANCAVEB1F_DEFAULT
dw_const DisplayEnemyTrainerTextAndStartBattle, SCRIPT_CERULEANCAVEB1F_START_BATTLE
dw_const EndTrainerBattle, SCRIPT_CERULEANCAVEB1F_END_BATTLE
2014-05-18 18:19:10 +00:00
CeruleanCaveB1F_TextPointers:
def_text_pointers
dw_const CeruleanCaveB1FMewtwoText, TEXT_CERULEANCAVEB1F_MEWTWO
dw_const PickUpItemText, TEXT_CERULEANCAVEB1F_ULTRA_BALL
dw_const PickUpItemText, TEXT_CERULEANCAVEB1F_MAX_REVIVE
2014-05-18 18:19:10 +00:00
CeruleanCaveB1FTrainerHeaders:
def_trainers
MewtwoTrainerHeader:
trainer EVENT_BEAT_MEWTWO, 0, MewtwoBattleText, MewtwoBattleText, MewtwoBattleText
db -1 ; end
2014-05-18 18:19:10 +00:00
CeruleanCaveB1FMewtwoText:
text_asm
ld hl, MewtwoTrainerHeader
2014-05-18 18:19:10 +00:00
call TalkToTrainer
jp TextScriptEnd
MewtwoBattleText:
text_far _MewtwoBattleText
text_asm
2014-05-18 18:19:10 +00:00
ld a, MEWTWO
call PlayCry
call WaitForSoundToFinish
jp TextScriptEnd