summaryrefslogtreecommitdiff
path: root/maps/BlackthornGym2F.asm
blob: 9da3d66170a2fdbe6ac34653e4800c12b616b5bd (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
208
209
210
211
BlackthornGym2F_MapScriptHeader: ; 0x195722
	; trigger count
	db 0

	; callback count
	db 1

	; callbacks

	dbw 3, UnknownScript_0x195727
; 0x195727

UnknownScript_0x195727: ; 0x195727
	writecmdqueue CmdQueue_0x19572b
	return
; 0x19572b

CmdQueue_0x19572b: ; 0x19572b
	dbw 2, StoneTable_0x195730 ; check if any stones are sitting on a warp
	db 0, 0 ; filler
; 0x195730

StoneTable_0x195730: ; 0x195730
	db 5, 4 ; warp, person
	dw UnknownScript_0x19573d

	db 3, 5 ; warp, person
	dw UnknownScript_0x195742

	db 4, 6 ; warp, person
	dw UnknownScript_0x195747

	db $ff ; end
; 0x19573d

UnknownScript_0x19573d: ; 0x19573d
	disappear 4
	2jump UnknownScript_0x19574c
; 0x195742

UnknownScript_0x195742: ; 0x195742
	disappear 5
	2jump UnknownScript_0x19574c
; 0x195747

UnknownScript_0x195747: ; 0x195747
	disappear 6
	2jump UnknownScript_0x19574c
; 0x19574c

UnknownScript_0x19574c: ; 0x19574c
	pause 30
	2call UnknownScript_0x195758
	loadfont
	2writetext UnknownText_0x1958a5
	closetext
	loadmovesprites
	end
; 0x195758

UnknownScript_0x195758: ; 0x195758
	playsound $001b
	earthquake 80
	end
; 0x19575e


BoulderScript_0x19575e: ; 0x19575e
	jumpstd $000e
; 0x195761

TrainerCooltrainermCody: ; 0x195761
	; bit/flag number
	dw $54b

	; trainer group && trainer id
	db COOLTRAINERM, CODY

	; text when seen
	dw CooltrainermCodySeenText

	; text when trainer beaten
	dw CooltrainermCodyBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw CooltrainermCodyScript
; 0x19576d

CooltrainermCodyScript: ; 0x19576d
	talkaftercancel
	loadfont
	2writetext UnknownText_0x1957d5
	closetext
	loadmovesprites
	end
; 0x195775

TrainerCooltrainerfFran: ; 0x195775
	; bit/flag number
	dw $55d

	; trainer group && trainer id
	db COOLTRAINERF, FRAN

	; text when seen
	dw CooltrainerfFranSeenText

	; text when trainer beaten
	dw CooltrainerfFranBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw CooltrainerfFranScript
; 0x195781

CooltrainerfFranScript: ; 0x195781
	talkaftercancel
	loadfont
	2writetext UnknownText_0x195883
	closetext
	loadmovesprites
	end
; 0x195789

CooltrainermCodySeenText: ; 0x195789
	text "It's not as if we"
	line "all use dragon-"
	cont "type #MON."
	done
; 0x1957b6

CooltrainermCodyBeatenText: ; 0x1957b6
	text "Rats! If only I"
	line "had a dragon!"
	done
; 0x1957d5

UnknownText_0x1957d5: ; 0x1957d5
	text "Members of our"
	line "dragon-user clan"

	para "can use dragon"
	line "#MON only after"

	para "our MASTER allows"
	line "it."
	done
; 0x19582b

CooltrainerfFranSeenText: ; 0x19582b
	text "I can't allow a"
	line "nameless trainer"
	cont "past me!"

	para "CLAIR would be"
	line "livid if I did!"
	done
; 0x195874

CooltrainerfFranBeatenText: ; 0x195874
	text "Awww… I lost…"
	done
; 0x195883

UnknownText_0x195883: ; 0x195883
	text "Uh-oh… CLAIR is"
	line "going to be mad…"
	done
; 0x1958a5

UnknownText_0x1958a5: ; 0x1958a5
	text "The boulder fell"
	line "through!"
	done
; 0x1958c0

BlackthornGym2F_MapEventHeader: ; 0x1958c0
	; filler
	db 0, 0

	; warps
	db 5
	warp_def $7, $1, 3, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F
	warp_def $9, $7, 4, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F
	warp_def $5, $2, 5, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F
	warp_def $7, $8, 6, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F
	warp_def $3, $8, 7, GROUP_BLACKTHORN_GYM_1F, MAP_BLACKTHORN_GYM_1F

	; xy triggers
	db 0

	; signposts
	db 0

	; people-events
	db 8
	person_event SPRITE_COOLTRAINER_M, 5, 8, $9, $0, 255, 255, $82, 1, TrainerCooltrainermCody, $ffff
	person_event SPRITE_COOLTRAINER_F, 15, 8, $8, $0, 255, 255, $82, 1, TrainerCooltrainerfFran, $ffff
	person_event SPRITE_BOULDER, 6, 12, $19, $0, 255, 255, $0, 0, BoulderScript_0x19575e, $0706
	person_event SPRITE_BOULDER, 7, 6, $19, $0, 255, 255, $0, 0, BoulderScript_0x19575e, $0707
	person_event SPRITE_BOULDER, 20, 10, $19, $0, 255, 255, $0, 0, BoulderScript_0x19575e, $0708
	person_event SPRITE_BOULDER, 7, 7, $19, $0, 255, 255, $0, 0, BoulderScript_0x19575e, $ffff
	person_event SPRITE_BOULDER, 5, 10, $19, $0, 255, 255, $0, 0, BoulderScript_0x19575e, $ffff
	person_event SPRITE_BOULDER, 18, 12, $19, $0, 255, 255, $0, 0, BoulderScript_0x19575e, $ffff
; 0x195947