summaryrefslogtreecommitdiff
path: root/scripts/MtMoon1F.asm
blob: 68dacf297a56470edab88efb3ca94bed36b7502c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
MtMoon1F_Script:
	call EnableAutoTextBoxDrawing
	ld hl, MtMoon1TrainerHeader0
	ld de, MtMoon1F_ScriptPointers
	ld a, [wMtMoon1FCurScript]
	call ExecuteCurMapScriptInTable
	ld [wMtMoon1FCurScript], a
	ret

MtMoon1F_ScriptPointers:
	dw CheckFightingMapTrainers
	dw DisplayEnemyTrainerTextAndStartBattle
	dw EndTrainerBattle

MtMoon1F_TextPointers:
	dw MtMoon1Text1
	dw MtMoon1Text2
	dw MtMoon1Text3
	dw MtMoon1Text4
	dw MtMoon1Text5
	dw MtMoon1Text6
	dw MtMoon1Text7
	dw PickUpItemText
	dw PickUpItemText
	dw PickUpItemText
	dw PickUpItemText
	dw PickUpItemText
	dw PickUpItemText
	dw MtMoon1Text14

MtMoon1TrainerHeader0:
	trainer EVENT_BEAT_MT_MOON_1_TRAINER_0, 2, MtMoon1BattleText2, MtMoon1EndBattleText2, MtMoon1AfterBattleText2
MtMoon1TrainerHeader1:
	trainer EVENT_BEAT_MT_MOON_1_TRAINER_1, 3, MtMoon1BattleText3, MtMoon1EndBattleText3, MtMoon1AfterBattleText3
MtMoon1TrainerHeader2:
	trainer EVENT_BEAT_MT_MOON_1_TRAINER_2, 3, MtMoon1BattleText4, MtMoon1EndBattleText4, MtMoon1AfterBattleText4
MtMoon1TrainerHeader3:
	trainer EVENT_BEAT_MT_MOON_1_TRAINER_3, 3, MtMoon1BattleText5, MtMoon1EndBattleText5, MtMoon1AfterBattleText5
MtMoon1TrainerHeader4:
	trainer EVENT_BEAT_MT_MOON_1_TRAINER_4, 3, MtMoon1BattleText6, MtMoon1EndBattleText6, MtMoon1AfterBattleText6
MtMoon1TrainerHeader5:
	trainer EVENT_BEAT_MT_MOON_1_TRAINER_5, 3, MtMoon1BattleText7, MtMoon1EndBattleText7, MtMoon1AfterBattleText7
MtMoon1TrainerHeader6:
	trainer EVENT_BEAT_MT_MOON_1_TRAINER_6, 3, MtMoon1BattleText8, MtMoon1EndBattleText8, MtMoon1AfterBattleText8
	db -1 ; end

MtMoon1Text1:
	text_asm
	ld hl, MtMoon1TrainerHeader0
	call TalkToTrainer
	jp TextScriptEnd

MtMoon1Text2:
	text_asm
	ld hl, MtMoon1TrainerHeader1
	call TalkToTrainer
	jp TextScriptEnd

MtMoon1Text3:
	text_asm
	ld hl, MtMoon1TrainerHeader2
	call TalkToTrainer
	jp TextScriptEnd

MtMoon1Text4:
	text_asm
	ld hl, MtMoon1TrainerHeader3
	call TalkToTrainer
	jp TextScriptEnd

MtMoon1Text5:
	text_asm
	ld hl, MtMoon1TrainerHeader4
	call TalkToTrainer
	jp TextScriptEnd

MtMoon1Text6:
	text_asm
	ld hl, MtMoon1TrainerHeader5
	call TalkToTrainer
	jp TextScriptEnd

MtMoon1Text7:
	text_asm
	ld hl, MtMoon1TrainerHeader6
	call TalkToTrainer
	jp TextScriptEnd

MtMoon1BattleText2:
	text_far _MtMoon1BattleText2
	text_end

MtMoon1EndBattleText2:
	text_far _MtMoon1EndBattleText2
	text_end

MtMoon1AfterBattleText2:
	text_far _MtMoon1AfterBattleText2
	text_end

MtMoon1BattleText3:
	text_far _MtMoon1BattleText3
	text_end

MtMoon1EndBattleText3:
	text_far _MtMoon1EndBattleText3
	text_end

MtMoon1AfterBattleText3:
	text_far _MtMoon1AfterBattleText3
	text_end

MtMoon1BattleText4:
	text_far _MtMoon1BattleText4
	text_end

MtMoon1EndBattleText4:
	text_far _MtMoon1EndBattleText4
	text_end

MtMoon1AfterBattleText4:
	text_far _MtMoon1AfterBattleText4
	text_end

MtMoon1BattleText5:
	text_far _MtMoon1BattleText5
	text_end

MtMoon1EndBattleText5:
	text_far _MtMoon1EndBattleText5
	text_end

MtMoon1AfterBattleText5:
	text_far _MtMoon1AfterBattleText5
	text_end

MtMoon1BattleText6:
	text_far _MtMoon1BattleText6
	text_end

MtMoon1EndBattleText6:
	text_far _MtMoon1EndBattleText6
	text_end

MtMoon1AfterBattleText6:
	text_far _MtMoon1AfterBattleText6
	text_end

MtMoon1BattleText7:
	text_far _MtMoon1BattleText7
	text_end

MtMoon1EndBattleText7:
	text_far _MtMoon1EndBattleText7
	text_end

MtMoon1AfterBattleText7:
	text_far _MtMoon1AfterBattleText7
	text_end

MtMoon1BattleText8:
	text_far _MtMoon1BattleText8
	text_end

MtMoon1EndBattleText8:
	text_far _MtMoon1EndBattleText8
	text_end

MtMoon1AfterBattleText8:
	text_far _MtMoon1AfterBattleText8
	text_end

MtMoon1Text14:
	text_far _MtMoon1Text14
	text_end