-
Notifications
You must be signed in to change notification settings - Fork 831
/
Copy pathCeladonMansion3F.asm
211 lines (167 loc) · 4.54 KB
/
CeladonMansion3F.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
object_const_def
const CELADONMANSION3F_COOLTRAINER_M
const CELADONMANSION3F_GYM_GUIDE
const CELADONMANSION3F_SUPER_NERD
const CELADONMANSION3F_FISHER
CeladonMansion3F_MapScripts:
def_scene_scripts
def_callbacks
GameFreakGameDesignerScript:
faceplayer
opentext
writetext GameFreakGameDesignerText
readvar VAR_DEXCAUGHT
ifgreater NUM_POKEMON - 2 - 1, .CompletedPokedex ; ignore Mew and Celebi
waitbutton
closetext
end
.CompletedPokedex:
promptbutton
writetext GameFreakGameDesignerCompletedPokedexText
playsound SFX_DEX_FANFARE_230_PLUS
waitsfx
writetext GameFreakGameDesignerPauseForDiplomaText
promptbutton
special Diploma
writetext GameFreakGameDesignerAfterDiplomaText
waitbutton
closetext
setevent EVENT_ENABLE_DIPLOMA_PRINTING
end
GameFreakGraphicArtistScript:
faceplayer
opentext
checkevent EVENT_ENABLE_DIPLOMA_PRINTING
iftrue .CanPrintDiploma
writetext GameFreakGraphicArtistText
waitbutton
closetext
end
.CanPrintDiploma:
writetext GameFreakGraphicArtistPrintDiplomaText
yesorno
iffalse .Refused
special PrintDiploma
closetext
end
.Refused:
writetext GameFreakGraphicArtistRefusedText
waitbutton
closetext
end
.CancelPrinting: ; unreferenced
writetext GameFreakGraphicArtistErrorText
waitbutton
closetext
end
GameFreakProgrammerScript:
jumptextfaceplayer GameFreakProgrammerText
GameFreakCharacterDesignerScript:
jumptextfaceplayer GameFreakCharacterDesignerText
CeladonMansion3FDevRoomSign:
jumptext CeladonMansion3FDevRoomSignText
CeladonMansion3FDrawing:
jumptext CeladonMansion3FDrawingText
CeladonMansion3FGameProgram:
jumptext CeladonMansion3FGameProgramText
CeladonMansion3FReferenceMaterial:
jumptext CeladonMansion3FReferenceMaterialText
GameFreakGameDesignerText:
text "Is that right?"
para "I'm the GAME"
line "DESIGNER!"
para "Filling up your"
line "#DEX is tough,"
cont "but don't give up!"
done
GameFreakGameDesignerCompletedPokedexText:
text "Wow! Excellent!"
line "You completed your"
cont "#DEX!"
para "Congratulations!"
done
GameFreakGameDesignerPauseForDiplomaText:
text "…"
done
GameFreakGameDesignerAfterDiplomaText:
text "The GRAPHIC ARTIST"
line "will print out a"
cont "DIPLOMA for you."
para "You should go show"
line "it off."
done
GameFreakGraphicArtistText:
text "I'm the GRAPHIC"
line "ARTIST."
para "I drew you!"
done
GameFreakGraphicArtistPrintDiplomaText:
text "I'm the GRAPHIC"
line "ARTIST."
para "Oh, you completed"
line "your #DEX?"
para "Want me to print"
line "out your DIPLOMA?"
done
GameFreakGraphicArtistRefusedText:
text "Give me a shout if"
line "you want your"
cont "DIPLOMA printed."
done
GameFreakGraphicArtistErrorText:
text "Something's wrong."
line "I'll have to can-"
cont "cel printing."
done
GameFreakProgrammerText:
text "Who, me? I'm the"
line "PROGRAMMER."
para "Play the slot"
line "machines!"
done
GameFreakCharacterDesignerText:
text "Aren't the TWINS"
line "adorable?"
para "JASMINE's pretty"
line "too."
para "Oh, I love them!"
done
CeladonMansion3FDevRoomSignText:
text "GAME FREAK"
line "DEVELOPMENT ROOM"
done
CeladonMansion3FDrawingText:
text "It's a detailed"
line "drawing of a"
cont "pretty girl."
done
CeladonMansion3FGameProgramText:
text "It's the game"
line "program. Messing"
para "with it could put"
line "a bug in the game!"
done
CeladonMansion3FReferenceMaterialText:
text "It's crammed with"
line "reference materi-"
cont "als. There's even"
cont "a # DOLL."
done
CeladonMansion3F_MapEvents:
db 0, 0 ; filler
def_warp_events
warp_event 0, 0, CELADON_MANSION_ROOF, 1
warp_event 1, 0, CELADON_MANSION_2F, 2
warp_event 6, 0, CELADON_MANSION_2F, 3
warp_event 7, 0, CELADON_MANSION_ROOF, 2
def_coord_events
def_bg_events
bg_event 5, 8, BGEVENT_UP, CeladonMansion3FDevRoomSign
bg_event 4, 3, BGEVENT_UP, CeladonMansion3FDrawing
bg_event 1, 6, BGEVENT_UP, CeladonMansion3FGameProgram
bg_event 1, 3, BGEVENT_UP, CeladonMansion3FReferenceMaterial
def_object_events
object_event 3, 6, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GameFreakGameDesignerScript, -1
object_event 3, 4, SPRITE_GYM_GUIDE, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, GameFreakGraphicArtistScript, -1
object_event 0, 7, SPRITE_SUPER_NERD, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, GameFreakProgrammerScript, -1
object_event 0, 4, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_UP, 2, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GameFreakCharacterDesignerScript, -1