mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Added Underwater Tunnel!
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!
This commit is contained in:
parent
c7510aea57
commit
8ab3e1f2be
24 changed files with 111 additions and 11 deletions
36
scripts/UnderwaterTunnel.asm
Normal file
36
scripts/UnderwaterTunnel.asm
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue