summaryrefslogtreecommitdiff
path: root/maps/Route39Farmhouse.asm
blob: 977640e3d1a358cf8f2385318b70c7d2721880f4 (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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
Route39Farmhouse_MapScriptHeader: ; 0x9ceb2
	; trigger count
	db 0

	; callback count
	db 0
; 0x9ceb4

PokefanMScript_0x9ceb4: ; 0x9ceb4
	faceplayer
	loadfont
	checkevent EVENT_HEALED_MOOMOO
	iftrue UnknownScript_0x9cec5
	2writetext UnknownText_0x9cf38
	closetext
	loadmovesprites
	setevent EVENT_TALKED_TO_FARMER_ABOUT_MOOMOO
	end
; 0x9cec5

UnknownScript_0x9cec5: ; 0x9cec5
	checkitem MOOMOO_MILK
	iftrue UnknownScript_0x9cf08
	2writetext UnknownText_0x9cfe1
	special $0051
	yesorno
	iffalse UnknownScript_0x9cf02
	checkmoney $0, 500
	if_equal $2, UnknownScript_0x9cef6
	giveitem MOOMOO_MILK, $1
	iffalse UnknownScript_0x9cefc
	takemoney $0, 500
	special $0051
	waitbutton
	playsound $0022
	2writetext UnknownText_0x9d05d
	keeptextopen
	itemnotify
	loadmovesprites
	end
; 0x9cef6

UnknownScript_0x9cef6: ; 0x9cef6
	2writetext UnknownText_0x9d07c
	closetext
	loadmovesprites
	end
; 0x9cefc

UnknownScript_0x9cefc: ; 0x9cefc
	2writetext UnknownText_0x9d09d
	closetext
	loadmovesprites
	end
; 0x9cf02

UnknownScript_0x9cf02: ; 0x9cf02
	2writetext UnknownText_0x9d0b7
	closetext
	loadmovesprites
	end
; 0x9cf08

UnknownScript_0x9cf08: ; 0x9cf08
	2writetext UnknownText_0x9d0dc
	closetext
	loadmovesprites
	end
; 0x9cf0e

PokefanFScript_0x9cf0e: ; 0x9cf0e
	faceplayer
	loadfont
	checkevent EVENT_GOT_TM13_SNORE_FROM_MOOMOO_FARM
	iftrue UnknownScript_0x9cf2f
	checkevent EVENT_HEALED_MOOMOO
	iftrue UnknownScript_0x9cf22
	2writetext UnknownText_0x9d0f6
	closetext
	loadmovesprites
	end
; 0x9cf22

UnknownScript_0x9cf22: ; 0x9cf22
	2writetext UnknownText_0x9d156
	keeptextopen
	verbosegiveitem TM_13, 1
	iffalse UnknownScript_0x9cf33
	setevent EVENT_GOT_TM13_SNORE_FROM_MOOMOO_FARM
UnknownScript_0x9cf2f: ; 0x9cf2f
	2writetext UnknownText_0x9d1c7
	closetext
UnknownScript_0x9cf33: ; 0x9cf33
	loadmovesprites
	end
; 0x9cf35

MapRoute39FarmhouseSignpost1Script: ; 0x9cf35
	jumpstd $0002
; 0x9cf38

UnknownText_0x9cf38: ; 0x9cf38
	text "My MILTANK ain't"
	line "givin' me milk"
	cont "n'more."

	para "This here FARM's"
	line "got famous milk."

	para "Most everyone"
	line "wants a drink."

	para "It'll give me lots"
	line "o' milk if'n I"

	para "feed it lots o'"
	line "BERRIES, I reckon."
	done
; 0x9cfe1

UnknownText_0x9cfe1: ; 0x9cfe1
	text "How'd you like my"
	line "MOOMOO MILK?"

	para "It's my pride and"
	line "joy, there."

	para "Give it to #MON"
	line "to restore HP!"

	para "I'll give it to ya"
	line "fer just ¥500."
	done
; 0x9d05d

UnknownText_0x9d05d: ; 0x9d05d
	text "Here ya go!"
	line "Drink up'n enjoy!"
	done
; 0x9d07c

UnknownText_0x9d07c: ; 0x9d07c
	text "Sorry, there."
	line "No cash, no sale!"
	done
; 0x9d09d

UnknownText_0x9d09d: ; 0x9d09d
	text "I reckon yer"
	line "PACK's full."
	done
; 0x9d0b7

UnknownText_0x9d0b7: ; 0x9d0b7
	text "You don't want it?"
	line "Come again, hear?"
	done
; 0x9d0dc

UnknownText_0x9d0dc: ; 0x9d0dc
	text "I best go do my"
	line "milkin'."
	done
; 0x9d0f6

UnknownText_0x9d0f6: ; 0x9d0f6
	text "Our milk even goes"
	line "out to KANTO."

	para "So if our own"
	line "MILTANK won't give"

	para "us any milk, we're"
	line "in trouble."
	done
; 0x9d156

UnknownText_0x9d156: ; 0x9d156
	text "You fixed our"
	line "MILTANK, hon. Now"

	para "it gives MOOMOO"
	line "MILK again."

	para "Here's somethin'"
	line "fer your trouble."
	done
; 0x9d1b5

UnknownText_0x9d1b5: ; 0x9d1b5
	text $52, " received"
	line "TM13."
	done
; 0x9d1c7

UnknownText_0x9d1c7: ; 0x9d1c7
	text "That there's"
	line "SNORE."

	para "It's a rare move"
	line "that only works"

	para "while the #MON"
	line "is asleep."

	para "You best think how"
	line "you ought to use"
	cont "it, hon."
	done
; 0x9d242

Route39Farmhouse_MapEventHeader: ; 0x9d242
	; filler
	db 0, 0

	; warps
	db 2
	warp_def $7, $2, 2, GROUP_ROUTE_39, MAP_ROUTE_39
	warp_def $7, $3, 2, GROUP_ROUTE_39, MAP_ROUTE_39

	; xy triggers
	db 0

	; signposts
	db 2
	signpost 1, 0, $0, MapRoute39FarmhouseSignpost1Script
	signpost 1, 1, $0, MapRoute39FarmhouseSignpost1Script

	; people-events
	db 2
	person_event SPRITE_POKEFAN_M, 6, 7, $6, $0, 255, 255, $90, 0, PokefanMScript_0x9ceb4, $ffff
	person_event SPRITE_POKEFAN_F, 8, 9, $8, $0, 255, 255, $b0, 0, PokefanFScript_0x9cf0e, $ffff
; 0x9d276