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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
INCLUDE "constants.asm"
SECTION "scripts/PlayerHouse2F.asm", ROMX
PlayerHouse2F_ScriptLoader::
ld hl, PlayerHouse2FScriptPointers
call RunMapScript
call WriteBackMapScriptNumber
ret
PlayerHouse2FScriptPointers:
dw PlayerHouse2FScript1
dw PlayerHouse2FNPCIDs1
dw PlayerHouse2FScript2
dw PlayerHouse2FNPCIDs2
PlayerHouse2F_TextPointers::
dw PlayerHouse2FText1
dw PlayerHouse2FDollText
PlayerHouse2FNPCIDs1:
db 0
db 1
db $FF
PlayerHouse2FNPCIDs2:
db 1
db $FF
PlayerHouse2FSignPointers:
dw Function3899
dw PlayerHouse2FRadioText
dw PlayerHouse2FComputerText
dw Function3899
dw PlayerHouse2FN64Text
PlayerHouse2FScript1:
call PlayerHouse2PositionCheck
ret z
ld hl, PlayerHouse2FNPCIDs1
ld de, PlayerHouse2FSignPointers
call CallMapTextSubroutine
ret nz
ret
PlayerHouse2PositionCheck:
ld hl, wd41a
bit 0, [hl]
ret nz
ld a, [wYCoord]
cp 1
ret nz
ld a, [wXCoord]
cp 9
ret nz
ld hl, wJoypadFlags
set 6, [hl]
ld a, LEFT
ld d, 0
call SetObjectFacing
ld hl, PlayerHouse2FTextString2
call OpenTextbox
call PlayerHouse2FMovePlayer
call ClearAccumulator
ret
PlayerHouse2FMovePlayer:
ld a, 0
ld hl, Movement
call LoadMovementDataPointer
ld hl, wc5ed
set 7, [hl]
ld a, 1
call WriteIntod637
ret
Movement:
db $08
db $04
db $32
PlayerHouse2FScript2:
ld hl, PlayerHouse2FNPCIDs2
ld de, PlayerHouse2FSignPointers
call CallMapTextSubroutine
ret
PlayerHouse2FText1:
ld hl, wd41a
bit 3, [hl]
jr nz, .jump
ld hl, PlayerHouse2FTextString1
call OpenTextbox
ld hl, wd41a
set 3, [hl]
ld c, 3
call DelayFrames
.jump
ld hl, PlayerHouse2FTextString2
call OpenTextbox
ret
PlayerHouse2FDollText:
ld hl, PlayerHouse2FTextString3
call OpenTextbox
ret
PlayerHouse2FRadioText:
ld hl, PlayerHouse2FTextString9
call OpenTextbox
ret
PlayerHouse2FComputerText:
ld hl, wd41a
bit 0, [hl]
jr nz, .jump
ld hl, PlayerHouse2FTextString5
call OpenTextbox
ret
.jump
call RefreshScreen
callab PokemonCenterPC
call Function1fea
ret
PlayerHouse2FCheckEmail:
call YesNoBox
jr c, .jump2
ld hl, wd41a
set 0, [hl]
ld hl, PlayerHouse2FTextString6
call PrintText
ret
.jump2
ld hl, PlayerHouse2FTextString7
call PrintText
ret
PlayerHouse2FN64Text:
ld hl, PlayerHouse2FTextString4
call OpenTextbox
ret
PlayerHouse2FTextString1:
text "ケン『おっ おまえの うでで"
line "ひかりかがやく そのとけいは⋯⋯"
cont "<PLAYER>も ついに"
cont "トレーナーギアを かったのか!"
para "すごいじゃないか!"
line "でも かったばかりじゃ じかんしか"
cont "わからないだろ?"
cont "あとで マップが"
cont "みられるように してやるよ!"
cont "おまえ どうせ"
cont "あそびに いくんだろう?"
para "ざんねんながら おふくろは"
line "かいものに いってるから"
cont "おこづかいを もらおうなんて"
cont "きょうは むり だぜ!"
done
PlayerHouse2FTextString2:
text "そうだ おまえの パソコンに"
line "メールが とどいていたな"
cont "でかけるんなら"
cont "メールぐらい よんでおけよ"
done
PlayerHouse2FTextString3:
text "クりスマスに カントーの"
line "しんせきに プレゼント"
cont "してもらった にんぎょうだ"
done
PlayerHouse2FTextString4:
text "ニンテンドウ64を してる!"
cont "⋯⋯ ⋯⋯ さてと!"
cont "そろそろ そとに あそびに"
cont "でかけるか!"
done
PlayerHouse2FTextString5:
text "<PLAYER>は"
line "パソコンの スイッチを いれた!"
para "おや? <PLAYER>あてに"
line "メールが とどいている ようだ"
cont "よんでみる?@"
db $08
call PlayerHouse2FCheckEmail
call Function3036
ret
PlayerHouse2FTextString6:
text "とつぜん メールを さしあげる"
line "しつれいを おゆるしあれ"
para "じつは きみに どうしても"
line "わたしたい ものが あるのじゃが"
cont "うけとって もらえんかのう"
cont "ポケモンけんきゅうしゃ オーキド"
done
PlayerHouse2FTextString7:
text "あとで"
line "よもっと<⋯⋯>"
done
PlayerHouse2FTextString8: ; (unused?)
text "しんはつばい トレーナーギア!"
line "ポケモントレーナーの ための"
cont "さいせんたんの とけい です"
para "じかんが わかるのは あたりまえ"
line "カセットを ついかすれば"
cont "ばしょも わかる! "
cont "でんわが かけられる!"
para "とどめは"
line "ラジオを きくことができる!"
para "もうしこみさきは⋯⋯"
line "⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯"
cont "シルフの ホームぺージだ"
done
PlayerHouse2FTextString9:
text "<PLAYER>は"
line "ラジオのスイッチを おした!"
para "ジェイ オー ピー エム"
line "こちらは"
cont "# ほうそうきょく です"
para "#ニュースを おおくりします"
line "<⋯⋯> #の せかいてきな"
cont "けんきゅうしゃ オーキドはかせが"
cont "カントー から"
cont "すがたを けしました"
cont "あらたな けんきゅうの ばしょを"
cont "もとめて いどうした との"
cont "みかたも ありますが"
cont "なんらかの じけんに まきこまれた"
cont "かのうせいも あり"
cont "かんけいしゃは とても"
cont "しんぱい しています"
para "<⋯⋯><⋯⋯>いじょう"
line "#ニュースでした"
para "<⋯⋯><⋯⋯><⋯⋯><⋯⋯><⋯⋯><⋯⋯>"
line "それでは ひきつづき"
cont "おんがくを おたのしみ ください"
done
|