mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 10:23:34 +12:00

- Added a gate between the two halves of Route 10 on the right side of Rock Tunnel that contains the Graveler trade NPC. - Improved Faraway's encounter table. - Made the music go silent before battling both of the postgame bosses for suspense reasons. It also sounds cool. - Minor text fixes
52 lines
1 KiB
NASM
52 lines
1 KiB
NASM
CeruleanCaveB1F_Script:
|
|
call EnableAutoTextBoxDrawing
|
|
ld hl, CeruleanCaveB1FTrainerHeaders
|
|
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
|
|
|
|
CeruleanCaveB1FTrainerHeaders:
|
|
def_trainers
|
|
MewtwoTrainerHeader:
|
|
trainer EVENT_BEAT_MEWTWO, 0, MewtwoBattleText, MewtwoBattleText, MewtwoBattleText
|
|
db -1 ; end
|
|
|
|
MewtwoText:
|
|
text_asm
|
|
ld a, 5
|
|
ld [wMusicFade], a
|
|
xor a
|
|
ld [wMusicFadeID], a
|
|
.waitloop
|
|
ld a, [wMusicFade]
|
|
and a
|
|
jr nz, .waitloop
|
|
|
|
ld a, SFX_STOP_ALL_MUSIC
|
|
call PlaySound
|
|
ld hl, MewtwoTrainerHeader
|
|
call TalkToTrainer
|
|
ld a, SFX_STOP_ALL_MUSIC
|
|
call PlaySound
|
|
jp TextScriptEnd
|
|
|
|
MewtwoBattleText:
|
|
text_far _MewtwoBattleText
|
|
text_asm
|
|
ld a, MEWTWO
|
|
call PlayCry
|
|
call WaitForSoundToFinish
|
|
jp TextScriptEnd
|