mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 10:23:34 +12:00
39 lines
847 B
NASM
39 lines
847 B
NASM
FarawayIslandInside_Script:
|
|
call EnableAutoTextBoxDrawing
|
|
ld hl, FarawayIslandInsideTrainerHeaders
|
|
ld de, FarawayIslandInside_ScriptPointers
|
|
ld a, [wFarawayIslandInsideCurScript]
|
|
call ExecuteCurMapScriptInTable
|
|
ld [wFarawayIslandInsideCurScript], a
|
|
ret
|
|
|
|
FarawayIslandInside_ScriptPointers:
|
|
dw CheckFightingMapTrainers
|
|
dw DisplayEnemyTrainerTextAndStartBattle
|
|
dw EndTrainerBattle
|
|
|
|
FarawayIslandInside_TextPointers:
|
|
dw FarawayIslandInsideText2
|
|
|
|
FarawayIslandInsideTrainerHeaders:
|
|
def_trainers
|
|
MewTrainerHeader:
|
|
trainer EVENT_BEAT_MEW, 0, MewBattleText, MewBattleText, MewBattleText
|
|
db -1 ; end
|
|
|
|
FarawayIslandInsideText2:
|
|
text_asm
|
|
ld hl, MewTrainerHeader
|
|
call TalkToTrainer
|
|
jp TextScriptEnd
|
|
|
|
MewBattleText:
|
|
text_far _MewBattleText
|
|
text_asm
|
|
ld a, MEW
|
|
call PlayCry
|
|
call WaitForSoundToFinish
|
|
jp TextScriptEnd
|
|
|
|
text_end ; unused
|