mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00

This is a cave that connects Bill's Lighthouse and Route 10, only accessible after Surf is obtained. Contains a static Dragonite as a reference to the anime!
37 lines
835 B
NASM
37 lines
835 B
NASM
UnderwaterTunnel_Script:
|
|
call EnableAutoTextBoxDrawing
|
|
ld hl, UnderwaterTunnelTrainerHeaders
|
|
ld de, UnderwaterTunnel_ScriptPointers
|
|
ld a, [wUnderwaterTunnelCurScript]
|
|
call ExecuteCurMapScriptInTable
|
|
ld [wUnderwaterTunnelCurScript], a
|
|
ret
|
|
|
|
UnderwaterTunnel_ScriptPointers:
|
|
dw CheckFightingMapTrainers
|
|
dw DisplayEnemyTrainerTextAndStartBattle
|
|
dw EndTrainerBattle
|
|
|
|
UnderwaterTunnel_TextPointers:
|
|
dw DragoniteText
|
|
|
|
UnderwaterTunnelTrainerHeaders:
|
|
def_trainers
|
|
DragoniteTrainerHeader:
|
|
trainer EVENT_BEAT_DRAGONITE, 0, DragoniteBattleText, DragoniteBattleText, DragoniteBattleText
|
|
db -1 ; end
|
|
|
|
DragoniteText:
|
|
text_asm
|
|
ld hl, DragoniteTrainerHeader
|
|
call TalkToTrainer
|
|
jp TextScriptEnd
|
|
|
|
DragoniteBattleText:
|
|
text_far _DragoniteBattleText
|
|
text_asm
|
|
ld a, DRAGONITE
|
|
call PlayCry
|
|
call WaitForSoundToFinish
|
|
jp TextScriptEnd
|