Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pret
GitHub Repository: pret/pokered
Path: blob/master/scripts/CeruleanCaveB1F.asm
1270 views
1
CeruleanCaveB1F_Script:
2
call EnableAutoTextBoxDrawing
3
ld hl, CeruleanCaveB1FTrainerHeaders
4
ld de, CeruleanCaveB1F_ScriptPointers
5
ld a, [wCeruleanCaveB1FCurScript]
6
call ExecuteCurMapScriptInTable
7
ld [wCeruleanCaveB1FCurScript], a
8
ret
9
10
CeruleanCaveB1F_ScriptPointers:
11
def_script_pointers
12
dw_const CheckFightingMapTrainers, SCRIPT_CERULEANCAVEB1F_DEFAULT
13
dw_const DisplayEnemyTrainerTextAndStartBattle, SCRIPT_CERULEANCAVEB1F_START_BATTLE
14
dw_const EndTrainerBattle, SCRIPT_CERULEANCAVEB1F_END_BATTLE
15
16
CeruleanCaveB1F_TextPointers:
17
def_text_pointers
18
dw_const CeruleanCaveB1FMewtwoText, TEXT_CERULEANCAVEB1F_MEWTWO
19
dw_const PickUpItemText, TEXT_CERULEANCAVEB1F_ULTRA_BALL
20
dw_const PickUpItemText, TEXT_CERULEANCAVEB1F_MAX_REVIVE
21
22
CeruleanCaveB1FTrainerHeaders:
23
def_trainers
24
MewtwoTrainerHeader:
25
trainer EVENT_BEAT_MEWTWO, 0, MewtwoBattleText, MewtwoBattleText, MewtwoBattleText
26
db -1 ; end
27
28
CeruleanCaveB1FMewtwoText:
29
text_asm
30
ld hl, MewtwoTrainerHeader
31
call TalkToTrainer
32
jp TextScriptEnd
33
34
MewtwoBattleText:
35
text_far _MewtwoBattleText
36
text_asm
37
ld a, MEWTWO
38
call PlayCry
39
call WaitForSoundToFinish
40
jp TextScriptEnd
41
42