-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlevel2.rb
More file actions
406 lines (330 loc) · 12.1 KB
/
level2.rb
File metadata and controls
406 lines (330 loc) · 12.1 KB
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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
require './api'
include API
FLAG_TALKED_TO_JULIA_ABOUT_ROMERO = "talked_to_julia_about_romero"
FLAG_JULIA_COMPUTER_UNLOCKED = "julia_computer_unlocked"
FLAG_ROMERO_COMPUTER_UNLOCKED = "romero_computer_unlocked"
def_level do
hints '_hint' do
message "Is there someone that Romero loves more than Julia?"
message "Apparently Julia is Capricornus, maybe her password has to do with astrology."
message "Romero's password is a date; Julia's password has 7 letters and 1 number."
end
next_level do |n|
n.id = "_next_level"
end
camera_zoom do |z|
z.id = '_intro'
z.camera = 'julia'
z.speed = 1
sequence do
simple do |s|
s.message = "Oh, are you the IT guy? I was worried you wouldn't come."
s.sound_open = 'cartoon_voice'
end
choose do
on_choice "It's me, the IT hero, to save your day!" do
message 'Oh no, you sound just like Romero.'
end
on_choice "Yeah, it's me, nice to meet you." do
message 'Nice to meet you too!'
end
end
messages [
"Well, my name is Julia, I'm the sales representative in this agency.",
"And that guy over there is Romero... He's a bit... Unique.",
"Anyway, I'm so glad you're here, I have a bunch of work and I really need to use my computer.",
'Talk to me if you need anything.'
]
end
end
branch 'Julia' do |b|
b.flag = FLAG_JULIA_COMPUTER_UNLOCKED
multi_visit do
camera_zoom do |z|
z.camera = "julia"
z.speed = 1
messages [
"Oh, you're my hero! Thanks a lot.",
"Now please, get the hell out of here, I have work to do."
]
end
message "Julia doesn't respond, she just keeps typing on the computer."
end
camera_zoom do |z|
z.camera = 'julia'
z.speed = 1
sequence do
message 'Any progress? I really need to send some emails.'
choice do
on_choice 'Still nothing' do
message '...'
end
on_choice 'Do you remember anything about your password, Julia?' do
messages [
"Not exactly, I remember a few things, but it's all a bit fuzzy...",
"My password was a word plus a single number at the end.\nAnd there was something pink involved... Sorry, that's everything I know."
]
end
on_choice %(So, you're Romero's girlfriend, right?) do |c|
simple do |s|
s.set_flag = FLAG_TALKED_TO_JULIA_ABOUT_ROMERO
s.message = "Oh, that's a common misconception here, but no I'm not.\nI mean, we used to date, but he didn't want anything serious."
end
choice do
resp = proc do
messages [
"Weird right? Even a bit creepy.\nBut he never did anything to me, so I guess it's fine.",
"I just don't want any drama, we share an office after all.\nPlus, as long as he doesn't interfere with my work, he can have any platonic obsession he wants.",
"Soon I'll be promoted and get the hell out of this damn agency!",
"Whoops, don't tell that to the boss."
]
end
on_choice 'Then why does he have so many pictures of you?', &resp
on_choice 'But all he talks about is his love for you!', &resp
end
end
end
end
end
end
branch 'Romero' do |b|
b.flag = FLAG_ROMERO_COMPUTER_UNLOCKED
multi_visit do
camera_zoom do |z|
z.camera = "romero"
z.speed = 1
simple do |s|
s.message = "Finally! You may not have the looks I do, but at least you're pretty clever.\nNot as much as me, of course, but still pretty clever."
end
end
sequence do
camera_zoom do |z|
z.camera = "romero"
z.speed = 1
message "Bother my beauty no longer, for I have work to do."
end
message "Romero is just browsing social media."
end
end
camera_zoom do |z|
z.camera = 'romero'
z.speed = 1
multi_visit do
sequence do |s|
s.sound_open = "romero_chuckle"
messages [
'Oh mere mortal, struck by such sight you stand in shock, thinking your eyes deceive you.',
"But fear not! I guarantee you this beautiful face isn't the one of a demon or incubus.\nJust a public relations specialist.",
'Romero\'s the name.'
]
choice do
on_choice "Oh... Alright, I guess. I'm here to unlock your computer." do
message "Do it quickly, will you? I'm not used to waiting for other people.\nIt's usually the other way around."
end
on_choice "What the fuck are you talking about?" do
messages [
"Rude.",
"Just do your job, tech guy."
]
end
end
end
sequence do
message "I know I'm irresistible, but you have more to do than just staring at me."
choice do
on_choice "I sure have, goodbye." do
message "Oh, it's so tiring being beautiful."
end
on_choice "Romero, do you remember anything about your password?" do
messages [
"Oh, how it hurts!\nTo think that such important information could simply vanish overnight.\nNow I fear that one day I might forget her smile..."
]
choice do
resp = proc do
messages [
"It's Julia! I was sure my password was the love of my life. How could it be anything else?\nBut I tried inputting her name over and over again, with no success.",
"I even tried \"J5L14\"..."
]
end
on_choice "Just get to the point already.", &resp
on_choice "Sorry, what are you talking about?", &resp
end
end
on_choice "Why do you have so many pictures of Julia on your wall?" do
messages [
"Is that not clear enough?\nBecause I love her with every fiber of my body!\nShe's my most precious possession, she's my guiding light!",
"She gives hope and strength to face this cruel existence!\nJulia is... the son."
]
choice do
on_choice "You mean \"the sun\"?" do
message "Oh, yeah, yeah, that's it."
end
on_choice "(remain silent)" do
message "Yes, be speechless in face of true love!"
end
end
end
on_choice "Julia told me you two aren't even dating anymore." do |c|
c.if_flag = FLAG_TALKED_TO_JULIA_ABOUT_ROMERO
messages [
"She what? Damn Julia!",
"Ok, you're the IT guy, I don't need to uphold this facade.\nKid, let me teach you one thing.\nDo you know what really attracts women?",
"A man's romantic and unconditional love...\nFor another woman."
]
final = "Now get to work! And don't tell anyone about our conversation."
choice do
on_choice "You're a jerk." do
messages [
"Meh, doesn't seem to bother Julia, so what's the problem?",
final
]
end
on_choice "That's bullshit, you know that?" do
messages [
"It is not! I read it in a book.",
final
]
end
on_choice "(remain silent)" do
messages [
"Judge me all you want, you still need to unlock my computer.",
final
]
end
end
end
end
end
end
end
end
branch "Romero's computer" do |b|
b.flag = FLAG_ROMERO_COMPUTER_UNLOCKED
search_engine
password do |p|
p.id = "romero_s_computer"
p.node = "RomerosComputer"
p.passwords = ['0128', '128']
p.pass_message = 'Welcome SexyGuy123'
p.fail_message = "Hmm... that didn't seem right"
end
end
level_2_calendar do |c|
c.name = "Romero's calendar"
c.message = "Two dates are on the calendar\n01/17 - Julia's Bday (a lot of <3 here)\n01/28 - My birthday (a ;) face)"
end
sticky_note do |s|
s.name = 'sticky note'
s.message = 'Password = Most loved one bday'
end
simple do |s|
s.name = 'contact book'
s.messages = [
'A contact book, these are probably the clients Romero talks to.',
'Hm, some of the female names are underlined.'
]
end
simple do |s|
s.name = 'books'
s.message = 'Several romance books. Most of them look like they were never opened.'
s.node = 'RomanceBooks'
end
simple do |s|
s.name = 'book'
s.message = '"The art of seduction in 9 easy steps". There are several bookmarks in this book.'
s.node = 'DeskBook'
end
simple do |s|
s.name = 'photos on the wall'
s.message = 'MANY photos of Julia and MANY heart stickers.'
end
simple do |s|
s.name = 'papers on desk'
s.messages = [
'Apparently Romero waa trying to write poetry... But he really sucks at it!',
'"Roses are red, Violets are blue, Julia I wanna be, Stuck in you like glue"',
'So romantic...'
]
s.node = 'Papers'
end
simple do |s|
s.name = 'portrait on desk'
s.message = "Romero's portrait. His teeth are so white it hurts to look at."
end
branch "Julia's computer" do |b|
b.flag = FLAG_JULIA_COMPUTER_UNLOCKED
search_engine
password do |p|
p.id = "julia_s_computer"
p.passwords = ['macbeth7']
p.pass_message = 'Welcome Juju3'
p.fail_message = "Hmm... that didn't seem right"
end
end
calendar do |c|
c.name = "Julia's calendar"
c.message = "Two dates are on the calendar\n01/16 - My birthday\n01/28 - Romero's birthday"
end
simple do |s|
s.name = 'loads of paper on the desk'
s.message = "These papers aren't blank like in the Boss's desk. Julia really has a lot to do."
s.node = 'LoadsOfPaper'
end
simple do |s|
s.name = "Julia's bag"
s.message = "I may be desperate for clues, but searching through someone's bag is a bit too much."
end
simple do |s|
s.name = "Julia's drawer"
s.message = 'Lipstick, eyeliner, paper clips and clearly expired vegan sandwich.'
end
multi_visit do |m|
m.name = 'magazine'
sequence do
messages [
'It´s the new year issue of "Mary Shaire", a magazine aimed at young adult women.',
"There's a numerology chart inside."
]
level_2_zodiac do |n|
n.message = "Aries - 4 / Taurus - 5 / Gemini - 10 / Cancer - 8 / Leo - 3 / Virgo - 6 / Libra - 11 / Scorpius - 12 / Sagittarius - 1 / Capricornus - 7 / Aquarius - 9 / Pisces - 2"
end
end
sequence do
message "There's a numerology chart inside."
level_2_zodiac do |n|
n.message = "Aries - 4 / Taurus - 5 / Gemini - 10 / Cancer - 8 / Leo - 3 / Virgo - 6 / Libra - 11 / Scorpius - 12 / Sagittarius - 1 / Capricornus - 7 / Aquarius - 9 / Pisces - 2"
end
end
end
sequence do |s|
s.name = 'bookshelf'
message 'There are several books here, of varying genres.'
choose do
on_choice 'Green book...' do
message "It's \"Macbeth\"."
end
on_choice 'Blue book...' do
message "It's \"The Catcher in the Rye\"."
end
on_choice 'Pink book...' do
message "It's \"Pride and Prejudice\". There's a note inside the book."
sticky_note do |s|
s.message = 'password = green book + lucky number'
end
end
on_choice 'Brown book...' do
message 'There are several books of this color.'
end
end
end
close 'coffee' do |c|
c.id = "coffee1"
c.sound_open = 'coffee'
c.node = "Coffee1"
end
close 'coffee' do |c|
c.id = "coffee2"
c.sound_open = 'coffee'
c.node = "Coffee2"
end
end