2019-01-01 20:06:23 +00:00
|
|
|
CeruleanCaveB1F_Script:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
2021-04-13 22:24:37 +00:00
|
|
|
ld hl, CeruleanCaveB1FTrainerHeaders
|
2019-01-01 20:06:23 +00:00
|
|
|
ld de, CeruleanCaveB1F_ScriptPointers
|
|
|
|
ld a, [wCeruleanCaveB1FCurScript]
|
2014-05-18 18:19:10 +00:00
|
|
|
call ExecuteCurMapScriptInTable
|
2019-01-01 20:06:23 +00:00
|
|
|
ld [wCeruleanCaveB1FCurScript], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ret
|
|
|
|
|
2020-07-03 21:32:21 +00:00
|
|
|
CeruleanCaveB1F_ScriptPointers:
|
2023-07-14 01:27:56 +00:00
|
|
|
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
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
CeruleanCaveB1F_TextPointers:
|
2023-07-14 01:27:56 +00:00
|
|
|
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
|
|
|
|
2021-04-13 22:24:37 +00:00
|
|
|
CeruleanCaveB1FTrainerHeaders:
|
|
|
|
def_trainers
|
2016-04-07 02:58:45 +00:00
|
|
|
MewtwoTrainerHeader:
|
2020-07-14 19:45:36 +00:00
|
|
|
trainer EVENT_BEAT_MEWTWO, 0, MewtwoBattleText, MewtwoBattleText, MewtwoBattleText
|
|
|
|
db -1 ; end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2023-07-14 01:27:56 +00:00
|
|
|
CeruleanCaveB1FMewtwoText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2016-04-07 02:58:45 +00:00
|
|
|
ld hl, MewtwoTrainerHeader
|
2014-05-18 18:19:10 +00:00
|
|
|
call TalkToTrainer
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
MewtwoBattleText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _MewtwoBattleText
|
|
|
|
text_asm
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, MEWTWO
|
|
|
|
call PlayCry
|
|
|
|
call WaitForSoundToFinish
|
|
|
|
jp TextScriptEnd
|