summaryrefslogtreecommitdiff
path: root/data/scripts/interview.inc
blob: e102bf889c84f42afbeb24e4ebb73dd4b7966ac9 (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
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
Interview_EventScript_EndInterview::
	special InterviewAfter
	incrementgamestat GAME_STAT_GOT_INTERVIEWED
	release
	end

@ Shares reporter object with TVSHOW_PKMN_FAN_CLUB_OPINIONS
SlateportCity_PokemonFanClub_EventScript_ReporterNoNickname::
	setvar VAR_0x8005, TVSHOW_FAN_CLUB_LETTER
	special InterviewBefore
	goto_if_eq VAR_RESULT, TRUE, SlateportCity_PokemonFanClub_EventScript_AlreadyInterviewed2
	copyvar VAR_0x8009, VAR_0x8006
	msgbox SlateportCity_PokemonFanClub_Text_InterviewRequest, MSGBOX_YESNO
	goto_if_eq VAR_RESULT, YES, SlateportCity_PokemonFanClub_EventScript_AcceptInterview2
	goto_if_eq VAR_RESULT, NO, SlateportCity_PokemonFanClub_EventScript_DeclineInterview2
	end

SlateportCity_PokemonFanClub_EventScript_AcceptInterview2::
	msgbox SlateportCity_PokemonFanClub_Text_TellMeAnythingAboutYourMon, MSGBOX_DEFAULT
	setvar VAR_0x8004, EASY_CHAT_TYPE_INTERVIEW
	copyvar VAR_0x8005, VAR_0x8009
	setvar VAR_0x8006, EASY_CHAT_PERSON_REPORTER_FEMALE
	call Common_ShowEasyChatScreen
	lock
	faceplayer
	goto_if_eq VAR_RESULT, 1, SlateportCity_PokemonFanClub_EventScript_SubmitResponse2
	goto_if_eq VAR_RESULT, 0, SlateportCity_PokemonFanClub_EventScript_DeclineInterview2
	end

SlateportCity_PokemonFanClub_EventScript_DeclineInterview2::
	msgbox SlateportCity_PokemonFanClub_Text_HereIfYouGetUrgeToTellMe, MSGBOX_DEFAULT
	release
	end

SlateportCity_PokemonFanClub_EventScript_SubmitResponse2::
	msgbox SlateportCity_PokemonFanClub_Text_ThatsAllForInterview2, MSGBOX_DEFAULT
	setvar VAR_0x8005, TVSHOW_FAN_CLUB_LETTER
	goto Interview_EventScript_EndInterview
	end

SlateportCity_PokemonFanClub_EventScript_AlreadyInterviewed2::
	msgbox SlateportCity_PokemonFanClub_Text_EnjoyDoingInterviews, MSGBOX_DEFAULT
	release
	end

SlateportCity_OceanicMuseum_1F_EventScript_Reporter::
	lock
	faceplayer
	setvar VAR_0x8005, TVSHOW_RECENT_HAPPENINGS
	special InterviewBefore
	goto_if_eq VAR_RESULT, TRUE, SlateportCity_OceanicMuseum_1F_EventScript_AlreadyInterviewed
	copyvar VAR_0x8009, VAR_0x8006
	goto_if_set FLAG_OCEANIC_MUSEUM_MET_REPORTER, SlateportCity_OceanicMuseum_1F_EventScript_RequestInterviewShort
	setflag FLAG_OCEANIC_MUSEUM_MET_REPORTER
	msgbox SlateportCity_OceanicMuseum_1F_Text_InterviewRequest, MSGBOX_YESNO
	goto_if_eq VAR_RESULT, YES, SlateportCity_OceanicMuseum_1F_EventScript_AcceptInterview
	goto_if_eq VAR_RESULT, NO, SlateportCity_OceanicMuseum_1F_EventScript_DeclineInterview
	end

SlateportCity_OceanicMuseum_1F_EventScript_RequestInterviewShort::
	msgbox SlateportCity_OceanicMuseum_1F_Text_InterviewRequestShort, MSGBOX_YESNO
	goto_if_eq VAR_RESULT, YES, SlateportCity_OceanicMuseum_1F_EventScript_AcceptInterview
	goto_if_eq VAR_RESULT, NO, SlateportCity_OceanicMuseum_1F_EventScript_DeclineInterview
	end

SlateportCity_OceanicMuseum_1F_EventScript_AcceptInterview::
	msgbox SlateportCity_OceanicMuseum_1F_Text_TellMeExperienceInvolvingPokemon, MSGBOX_DEFAULT
	setvar VAR_0x8004, EASY_CHAT_TYPE_INTERVIEW
	copyvar VAR_0x8005, VAR_0x8009
	setvar VAR_0x8006, EASY_CHAT_PERSON_REPORTER_MALE
	call Common_ShowEasyChatScreen
	lock
	faceplayer
	goto_if_eq VAR_RESULT, 1, SlateportCity_OceanicMuseum_1F_EventScript_SubmitResponse
	goto_if_eq VAR_RESULT, 0, SlateportCity_OceanicMuseum_1F_EventScript_DeclineInterview
	end

SlateportCity_OceanicMuseum_1F_EventScript_DeclineInterview::
	msgbox SlateportCity_OceanicMuseum_1F_Text_LetMeKnowIfYouHaveStory, MSGBOX_DEFAULT
	release
	end

SlateportCity_OceanicMuseum_1F_EventScript_SubmitResponse::
	msgbox SlateportCity_OceanicMuseum_1F_Text_ThatsAllForInterview, MSGBOX_DEFAULT
	setvar VAR_0x8005, TVSHOW_RECENT_HAPPENINGS
	goto Interview_EventScript_EndInterview
	end

SlateportCity_OceanicMuseum_1F_EventScript_AlreadyInterviewed::
	msgbox SlateportCity_OceanicMuseum_1F_Text_BetterWriteUpStory, MSGBOX_DEFAULT
	release
	end

SlateportCity_PokemonFanClub_EventScript_Reporter::
	lock
	faceplayer
	specialvar VAR_RESULT, IsLeadMonNicknamedOrNotEnglish
	goto_if_eq VAR_RESULT, FALSE, SlateportCity_PokemonFanClub_EventScript_ReporterNoNickname
	setvar VAR_0x8005, TVSHOW_PKMN_FAN_CLUB_OPINIONS
	special InterviewBefore
	goto_if_eq VAR_RESULT, TRUE, SlateportCity_PokemonFanClub_EventScript_AlreadyInterviewed
	copyvar VAR_0x8009, VAR_0x8006
	msgbox SlateportCity_PokemonFanClub_Text_InterviewRequestHasName, MSGBOX_YESNO
	goto_if_eq VAR_RESULT, YES, SlateportCity_PokemonFanClub_EventScript_AcceptInterview
	goto_if_eq VAR_RESULT, NO, SlateportCity_PokemonFanClub_EventScript_DeclineInterview
	end

SlateportCity_PokemonFanClub_EventScript_AcceptInterview::
	msgbox SlateportCity_PokemonFanClub_Text_HereGoesQuickAnswers, MSGBOX_DEFAULT
	random 3
	copyvar VAR_0x800A, VAR_RESULT
	switch VAR_RESULT
	case 0, SlateportCity_PokemonFanClub_EventScript_RandomQuestion1
	case 1, SlateportCity_PokemonFanClub_EventScript_RandomQuestion2
	case 2, SlateportCity_PokemonFanClub_EventScript_RandomQuestion3
	end

SlateportCity_PokemonFanClub_EventScript_RandomQuestion1::
	msgbox SlateportCity_PokemonFanClub_Text_DescribeFeelingsFirstMetMon, MSGBOX_DEFAULT
	goto SlateportCity_PokemonFanClub_EventScript_ContinueInterview
	end

SlateportCity_PokemonFanClub_EventScript_RandomQuestion2::
	msgbox SlateportCity_PokemonFanClub_Text_LikenMonToSomethingYouLike, MSGBOX_DEFAULT
	goto SlateportCity_PokemonFanClub_EventScript_ContinueInterview
	end

SlateportCity_PokemonFanClub_EventScript_RandomQuestion3::
	msgbox SlateportCity_PokemonFanClub_Text_WhatAttractedYouAboutMon, MSGBOX_DEFAULT
	goto SlateportCity_PokemonFanClub_EventScript_ContinueInterview
	end

SlateportCity_PokemonFanClub_EventScript_ContinueInterview::
	setvar VAR_0x8004, EASY_CHAT_TYPE_FAN_CLUB
	copyvar VAR_0x8005, VAR_0x8009
	setvar VAR_0x8006, 0
	call Common_ShowEasyChatScreen
	lock
	faceplayer
	goto_if_eq VAR_RESULT, 0, SlateportCity_PokemonFanClub_EventScript_DeclineInterview
	msgbox SlateportCity_PokemonFanClub_Text_WhatDoPokemonMeanToYou, MSGBOX_DEFAULT
	setvar VAR_0x8006, 1
	call Common_ShowEasyChatScreen
	lock
	faceplayer
	goto_if_eq VAR_RESULT, 0, SlateportCity_PokemonFanClub_EventScript_DeclineInterview
	msgbox SlateportCity_PokemonFanClub_Text_ThatsAllForInterview, MSGBOX_DEFAULT
	copyvar VAR_0x8007, VAR_0x800A
	setvar VAR_0x8005, TVSHOW_PKMN_FAN_CLUB_OPINIONS
	goto Interview_EventScript_EndInterview
	end

SlateportCity_PokemonFanClub_EventScript_DeclineInterview::
	msgbox SlateportCity_PokemonFanClub_Text_HereIfYouGetUrgeToTellMe, MSGBOX_DEFAULT
	release
	end

SlateportCity_PokemonFanClub_EventScript_AlreadyInterviewed::
	msgbox SlateportCity_PokemonFanClub_Text_EnjoyDoingInterviews, MSGBOX_DEFAULT
	release
	end

LilycoveCity_ContestLobby_EventScript_Reporter::
	lock
	faceplayer
	goto_if_set FLAG_TEMP_2, LilycoveCity_ContestLobby_EventScript_AlreadyInterviewed
	setvar VAR_0x8005, TVSHOW_BRAVO_TRAINER_POKEMON_PROFILE
	special InterviewBefore
	goto_if_eq VAR_RESULT, TRUE, LilycoveCity_ContestLobby_EventScript_AlreadyInterviewed
	copyvar VAR_0x8009, VAR_0x8006
	msgbox LilycoveCity_ContestLobby_Text_InterviewRequest, MSGBOX_YESNO
	goto_if_eq VAR_RESULT, YES, LilycoveCity_ContestLobby_EventScript_AcceptInterview
	goto_if_eq VAR_RESULT, NO, LilycoveCity_ContestLobby_EventScript_DeclineInterview
	end

LilycoveCity_ContestLobby_EventScript_AcceptInterview::
	msgbox LilycoveCity_ContestLobby_Text_DescribeContest, MSGBOX_DEFAULT
	setvar VAR_0x8004, EASY_CHAT_TYPE_CONTEST_INTERVIEW
	copyvar VAR_0x8005, VAR_0x8009
	setvar VAR_0x8006, 0
	call Common_ShowEasyChatScreen
	lock
	faceplayer
	goto_if_eq VAR_RESULT, 1, LilycoveCity_ContestLobby_EventScript_SubmitResponse
	goto_if_eq VAR_RESULT, 0, LilycoveCity_ContestLobby_EventScript_DeclineInterview
	end

LilycoveCity_ContestLobby_EventScript_DeclineInterview::
	msgbox LilycoveCity_ContestLobby_Text_PleaseDoShareStoryWithMe, MSGBOX_DEFAULT
	release
	end

LilycoveCity_ContestLobby_EventScript_SubmitResponse::
	setvar VAR_0x8004, 24
	special SetContestCategoryStringVarForInterview
	msgbox LilycoveCity_ContestLobby_Text_WhatImageWhenYouHearX, MSGBOX_DEFAULT
	setvar VAR_0x8004, EASY_CHAT_TYPE_CONTEST_INTERVIEW
	copyvar VAR_0x8005, VAR_0x8009
	setvar VAR_0x8006, 1
	call Common_ShowEasyChatScreen
	lock
	faceplayer
	goto_if_eq VAR_RESULT, 0, LilycoveCity_ContestLobby_EventScript_DeclineInterview
	msgbox LilycoveCity_ContestLobby_Text_ThatsAllForInterview, MSGBOX_DEFAULT
	setflag FLAG_TEMP_2
	setvar VAR_0x8005, TVSHOW_BRAVO_TRAINER_POKEMON_PROFILE
	goto Interview_EventScript_EndInterview
	end

LilycoveCity_ContestLobby_EventScript_AlreadyInterviewed::
	msgbox LilycoveCity_ContestLobby_Text_LookingForwardToNextContest, MSGBOX_DEFAULT
	release
	end

LilycoveCity_ContestLobby_EventScript_TryShowContestReporter::
	goto_if_ne VAR_CONTEST_HALL_STATE, 2, LilycoveCity_ContestLobby_EventScript_DontShowContestReporter
	setvar VAR_0x8005, TVSHOW_BRAVO_TRAINER_POKEMON_PROFILE
	special InterviewBefore
	goto_if_eq VAR_RESULT, TRUE, LilycoveCity_ContestLobby_EventScript_DontShowContestReporter
	switch VAR_CONTEST_TYPE
	case 0, LilycoveCity_ContestLobby_EventScript_DontShowContestReporter
	case 2, LilycoveCity_ContestLobby_EventScript_ShowContestReporter
	case 1, LilycoveCity_ContestLobby_EventScript_ShowContestReporter
	case 3, LilycoveCity_ContestLobby_EventScript_ShowContestReporter
	case 4, LilycoveCity_ContestLobby_EventScript_ShowContestReporter
	case 5, LilycoveCity_ContestLobby_EventScript_DontShowContestReporter
	end

LilycoveCity_ContestLobby_EventScript_ShowContestReporter::
	clearflag FLAG_HIDE_LILYCOVE_CONTEST_HALL_REPORTER
	return

LilycoveCity_ContestLobby_EventScript_DontShowContestReporter::
	return

BattleFrontier_BattleTowerLobby_EventScript_Reporter::
	lock
	faceplayer
	goto_if_set FLAG_TEMP_2, BattleFrontier_BattleTowerLobby_EventScript_AlreadyInterviewed
	setvar VAR_0x8005, TVSHOW_BRAVO_TRAINER_BATTLE_TOWER_PROFILE
	special InterviewBefore
	goto_if_eq VAR_RESULT, TRUE, BattleFrontier_BattleTowerLobby_EventScript_AlreadyInterviewed
	copyvar VAR_0x8009, VAR_0x8006
	msgbox BattleFrontier_BattleTowerLobby_Text_InterviewRequest, MSGBOX_YESNO
	goto_if_eq VAR_RESULT, YES, BattleFrontier_BattleTowerLobby_EventScript_AcceptInterview
	goto_if_eq VAR_RESULT, NO, BattleFrontier_BattleTowerLobby_EventScript_DeclineInterview
	end

BattleFrontier_BattleTowerLobby_EventScript_AcceptInterview::
	message BattleFrontier_BattleTowerLobby_Text_HowDidBattleTowerTurnOut
	waitmessage
	multichoice 20, 8, MULTI_SATISFACTION, TRUE
	copyvar VAR_0x8008, VAR_RESULT
	call_if_eq VAR_RESULT, 0, BattleFrontier_BattleTowerLobby_EventScript_Satisfied
	call_if_eq VAR_RESULT, 1, BattleFrontier_BattleTowerLobby_EventScript_Dissatisfied
	msgbox BattleFrontier_BattleTowerLobby_Text_DescribeYourBattle, MSGBOX_DEFAULT
	setvar VAR_0x8004, EASY_CHAT_TYPE_BATTLE_TOWER_INTERVIEW
	copyvar VAR_0x8005, VAR_0x8009
	call Common_ShowEasyChatScreen
	lock
	faceplayer
	goto_if_eq VAR_RESULT, 1, BattleFrontier_BattleTowerLobby_EventScript_SubmitResponse
	goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleTowerLobby_EventScript_CancelInterview
	end

BattleFrontier_BattleTowerLobby_EventScript_DeclineInterview::
	msgbox BattleFrontier_BattleTowerLobby_Text_SorryWeDisturbedYou, MSGBOX_DEFAULT
	release
	end

BattleFrontier_BattleTowerLobby_EventScript_Satisfied::
	msgbox BattleFrontier_BattleTowerLobby_Text_ObviousYouHadGreatBattle, MSGBOX_DEFAULT
	return

BattleFrontier_BattleTowerLobby_EventScript_Dissatisfied::
	msgbox BattleFrontier_BattleTowerLobby_Text_DifficultToMakeBattleTurnOutAsPlanned, MSGBOX_DEFAULT
	return

BattleFrontier_BattleTowerLobby_EventScript_SubmitResponse::
	goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleTowerLobby_EventScript_CancelInterview
	msgbox BattleFrontier_BattleTowerLobby_Text_ThatsGreatLine, MSGBOX_DEFAULT
	setflag FLAG_TEMP_2
	copyvar VAR_0x8004, VAR_0x8008
	setvar VAR_0x8005, TVSHOW_BRAVO_TRAINER_BATTLE_TOWER_PROFILE
	goto Interview_EventScript_EndInterview
	end

BattleFrontier_BattleTowerLobby_EventScript_CancelInterview::
	msgbox BattleFrontier_BattleTowerLobby_Text_SilentType, MSGBOX_DEFAULT
	release
	end

BattleFrontier_BattleTowerLobby_EventScript_AlreadyInterviewed::
	msgbox BattleFrontier_BattleTowerLobby_Text_LookingForwardToNextBattle, MSGBOX_DEFAULT
	release
	end

BattleFrontier_BattleTowerLobby_EventScript_ShowOrHideReporter::
	goto_if_eq VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0, BattleFrontier_BattleTowerLobby_EventScript_HideReporter
	setvar VAR_0x8005, TVSHOW_BRAVO_TRAINER_BATTLE_TOWER_PROFILE
	special InterviewBefore
	goto_if_eq VAR_RESULT, TRUE, BattleFrontier_BattleTowerLobby_EventScript_HideReporter
	clearflag FLAG_HIDE_BATTLE_TOWER_REPORTER
	return

BattleFrontier_BattleTowerLobby_EventScript_HideReporter::
	setflag FLAG_HIDE_BATTLE_TOWER_REPORTER
	return

@ Unused
EventScript_ContestLiveInterview::
	setvar VAR_0x8005, TVSHOW_CONTEST_LIVE_UPDATES
	special InterviewBefore
	goto_if_eq VAR_RESULT, TRUE, EventScript_ContestLiveInterviewEnd
	setvar VAR_0x8005, TVSHOW_CONTEST_LIVE_UPDATES
	special InterviewAfter
	return

EventScript_ContestLiveInterviewEnd::
	return