summaryrefslogtreecommitdiff
path: root/maps/TrainerHouseB1F.asm
blob: 1c2dac42e0f6c891ba2bf6e2e74feee93b175969 (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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
TrainerHouseB1F_MapScriptHeader: ; 0x9b384
	; trigger count
	db 1

	; triggers
	dw UnknownScript_0x9b38a, $0000

	; callback count
	db 0
; 0x9b38a

UnknownScript_0x9b38a: ; 0x9b38a
	end
; 0x9b38b

UnknownScript_0x9b38b: ; 0x9b38b
	spriteface $0, $1
	loadfont
	checkflag $0057
	iftrue UnknownScript_0x9b3f7
	2writetext UnknownText_0x9b420
	keeptextopen
	special $0067
	iffalse UnknownScript_0x9b3a6
	trainertotext CAL, CAL2, $0
	2jump UnknownScript_0x9b3aa
; 0x9b3a6

UnknownScript_0x9b3a6: ; 0x9b3a6
	trainertotext CAL, CAL3, $0
UnknownScript_0x9b3aa: ; 0x9b3aa
	2writetext UnknownText_0x9b46a
	keeptextopen
	2writetext UnknownText_0x9b487
	yesorno
	iffalse UnknownScript_0x9b3ed
	setflag $0057
	2writetext UnknownText_0x9b4a2
	closetext
	loadmovesprites
	applymovement $0, MovementData_0x9b401
	loadfont
	2writetext UnknownText_0x9b587
	closetext
	loadmovesprites
	special $0067
	iffalse UnknownScript_0x9b3dc
	winlosstext UnknownText_0x9b578, $0000
	setlasttalked $3
	loadtrainer CAL, CAL2
	startbattle
	returnafterbattle
	iffalse UnknownScript_0x9b3e8
UnknownScript_0x9b3dc: ; 0x9b3dc
	winlosstext UnknownText_0x9b578, $0000
	setlasttalked $3
	loadtrainer CAL, CAL3
	startbattle
	returnafterbattle
UnknownScript_0x9b3e8: ; 0x9b3e8
	applymovement $0, MovementData_0x9b40f
	end
; 0x9b3ed

UnknownScript_0x9b3ed: ; 0x9b3ed
	2writetext UnknownText_0x9b4d6
	closetext
	loadmovesprites
	applymovement $0, MovementData_0x9b41d
	end
; 0x9b3f7

UnknownScript_0x9b3f7: ; 0x9b3f7
	2writetext UnknownText_0x9b51d
	closetext
	loadmovesprites
	applymovement $0, MovementData_0x9b41d
	end
; 0x9b401

MovementData_0x9b401: ; 0x9b401
	step_left
	step_left
	step_left
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_left
	turn_head_right
	step_end
; 0x9b40f

MovementData_0x9b40f: ; 0x9b40f
	step_up
	step_up
	step_up
	step_right
	step_up
	step_up
	step_up
	step_up
	step_up
	step_right
	step_right
	step_right
	step_right
	step_end
; 0x9b41d

MovementData_0x9b41d: ; 0x9b41d
	step_right
	turn_head_left
	step_end
; 0x9b420

UnknownText_0x9b420: ; 0x9b420
	text "Hi. Welcome to our"
	line "TRAINING HALL."

	para "You may battle a"
	line "trainer once per"
	cont "day."
	done
; 0x9b46a

UnknownText_0x9b46a: ; 0x9b46a
	text_from_ram $d099
	text " is your"
	line "opponent today."
	done
; 0x9b487

UnknownText_0x9b487: ; 0x9b487
	text "Would you like to"
	line "battle?"
	done
; 0x9b4a2

UnknownText_0x9b4a2: ; 0x9b4a2
	text "Please go right"
	line "through."

	para "You may begin"
	line "right away."
	done
; 0x9b4d6

UnknownText_0x9b4d6: ; 0x9b4d6
	text "Sorry. Only those"
	line "trainers who will"

	para "be battling are"
	line "allowed to go in."
	done
; 0x9b51d

UnknownText_0x9b51d: ; 0x9b51d
	text "I'm sorry."
	line "This would be your"

	para "second time today."
	line "You're permitted"

	para "to enter just once"
	line "a day."
	done
; 0x9b578

UnknownText_0x9b578: ; 0x9b578
	text "I lost…"
	line "Darn…"
	done
; 0x9b587

UnknownText_0x9b587: ; 0x9b587
	text "I traveled out"
	line "here just so I"
	cont "could battle you."
	done
; 0x9b5b8

TrainerHouseB1F_MapEventHeader: ; 0x9b5b8
	; filler
	db 0, 0

	; warps
	db 1
	warp_def $4, $9, 3, GROUP_TRAINER_HOUSE_1F, MAP_TRAINER_HOUSE_1F

	; xy triggers
	db 1
	xy_trigger 0, $3, $7, $0, UnknownScript_0x9b38b, $0, $0

	; signposts
	db 0

	; people-events
	db 2
	person_event SPRITE_RECEPTIONIST, 5, 11, $6, $0, 255, 255, $a0, 0, ObjectEvent, $ffff
	person_event SPRITE_CHRIS, 15, 10, $8, $0, 255, 255, $80, 0, ObjectEvent, $ffff
; 0x9b5e5