-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathVioletPokecenter1F.asm
233 lines (185 loc) · 5.1 KB
/
VioletPokecenter1F.asm
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
const_def 2 ; object constants
const VIOLETPOKECENTER1F_NURSE
const VIOLETPOKECENTER1F_GAMEBOY_KID
const VIOLETPOKECENTER1F_GENTLEMAN
const VIOLETPOKECENTER1F_YOUNGSTER
const VIOLETPOKECENTER1F_SCIENTIST
VioletPokecenter1F_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
VioletPokecenterNurse:
jumpstd pokecenternurse
VioletPokecenter1F_ElmsAideScript:
faceplayer
opentext
checkevent EVENT_REFUSED_TO_TAKE_EGG_FROM_ELMS_AIDE
iftrue .SecondTimeAsking
writetext UnknownText_0x69555
.AskTakeEgg:
yesorno
iffalse .RefusedEgg
checkcode VAR_PARTYCOUNT
ifequal PARTY_LENGTH, .PartyFull
giveegg TOGEPI, 5
stringtotext .eggname, MEM_BUFFER_1
scall .AideGivesEgg
setevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE
clearevent EVENT_ELMS_AIDE_IN_LAB
clearevent EVENT_TOGEPI_HATCHED
setmapscene ROUTE_32, SCENE_ROUTE32_OFFER_SLOWPOKETAIL
writetext UnknownText_0x695c5
waitbutton
closetext
checkcode VAR_FACING
ifequal UP, .AideWalksAroundPlayer
turnobject PLAYER, DOWN
applymovement VIOLETPOKECENTER1F_SCIENTIST, MovementData_AideWalksStraightOutOfPokecenter
playsound SFX_EXIT_BUILDING
disappear VIOLETPOKECENTER1F_SCIENTIST
waitsfx
end
.AideWalksAroundPlayer:
applymovement VIOLETPOKECENTER1F_SCIENTIST, MovementData_AideWalksLeftToExitPokecenter
turnobject PLAYER, DOWN
applymovement VIOLETPOKECENTER1F_SCIENTIST, MovementData_AideFinishesLeavingPokecenter
playsound SFX_EXIT_BUILDING
disappear VIOLETPOKECENTER1F_SCIENTIST
waitsfx
end
.eggname
db "EGG@"
.AideGivesEgg:
jumpstd receivetogepiegg
end
.PartyFull:
writetext UnknownText_0x69693
waitbutton
closetext
end
.RefusedEgg:
writetext UnknownText_0x696f2
waitbutton
closetext
setevent EVENT_REFUSED_TO_TAKE_EGG_FROM_ELMS_AIDE
end
.SecondTimeAsking:
writetext UnknownText_0x69712
jump .AskTakeEgg
VioletPokecenter1FGameboyKidScript:
jumptextfaceplayer VioletPokecenter1FGameboyKidText
VioletPokecenter1FGentlemanScript:
jumptextfaceplayer VioletPokecenter1FGentlemanText
VioletPokecenter1FYoungsterScript:
jumptextfaceplayer VioletPokecenter1FYoungsterText
MovementData_AideWalksStraightOutOfPokecenter:
step DOWN
step DOWN
step DOWN
step DOWN
step_end
MovementData_AideWalksLeftToExitPokecenter:
step LEFT
step DOWN
step_end
MovementData_AideFinishesLeavingPokecenter:
step DOWN
step DOWN
step DOWN
step_end
UnknownText_0x69555:
text "<PLAY_G>, long"
line "time, no see."
para "PROF.ELM asked me"
line "to find you."
para "He has another"
line "favor to ask."
para "Would you take the"
line "#MON EGG?"
done
UnknownText_0x695c5:
text "We discovered that"
line "a #MON will not"
para "hatch until it"
line "grows in the EGG."
para "It also has to be"
line "with other active"
cont "#MON to hatch."
para "<PLAY_G>, you're"
line "the only person"
cont "we can rely on."
para "Please call PROF."
line "ELM when that EGG"
cont "hatches!"
done
UnknownText_0x69693:
text "Oh, no. You can't"
line "carry any more"
cont "#MON with you."
para "I'll wait here"
line "while you make"
cont "room for the EGG."
done
UnknownText_0x696f2:
text "B-but… PROF.ELM"
line "asked for you…"
done
UnknownText_0x69712:
text "<PLAY_G>, will you"
line "take the EGG?"
done
UnknownText_0x6972d:
text "I've been thinking"
line "it'd be great to"
para "be able to link up"
line "and battle with my"
para "friends who live"
line "far away."
done
UnknownText_0x69791:
text "I just battled a"
line "friend in CIANWOOD"
cont "over a link."
para "If you connect a"
line "MOBILE ADAPTER,"
para "you can link with"
line "a friend far away."
done
VioletPokecenter1FGameboyKidText:
text "A guy named BILL"
line "made the #MON"
cont "PC storage system."
done
VioletPokecenter1FGentlemanText:
text "It was around"
line "three years ago."
para "TEAM ROCKET was up"
line "to no good with"
cont "#MON."
para "But justice pre-"
line "vailed--a young"
cont "kid broke 'em up."
done
VioletPokecenter1FYoungsterText:
text "#MON are smart."
line "They won't obey a"
para "trainer they don't"
line "respect."
para "Without the right"
line "GYM BADGES, they"
para "will just do as"
line "they please."
done
VioletPokecenter1F_MapEvents:
db 0, 0 ; filler
db 3 ; warp events
warp_event 3, 7, VIOLET_CITY, 5
warp_event 4, 7, VIOLET_CITY, 5
warp_event 0, 7, POKECENTER_2F, 1
db 0 ; coord events
db 0 ; bg events
db 5 ; object events
object_event 3, 1, SPRITE_NURSE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, VioletPokecenterNurse, -1
object_event 7, 6, SPRITE_GAMEBOY_KID, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, VioletPokecenter1FGameboyKidScript, -1
object_event 1, 4, SPRITE_GENTLEMAN, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, VioletPokecenter1FGentlemanScript, -1
object_event 8, 1, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, VioletPokecenter1FYoungsterScript, -1
object_event 4, 3, SPRITE_SCIENTIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, VioletPokecenter1F_ElmsAideScript, EVENT_ELMS_AIDE_IN_VIOLET_POKEMON_CENTER