forked from DmitrySenpai/everlasting_summer_sources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.rpy
623 lines (501 loc) · 23.1 KB
/
script.rpy
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
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
python early:
mods = {}
mod_tags = {}
filters = {}
init -1001:
transform backdrop_trans:
xalign -0.2
linear 2.0 xalign 0.0
pause 3.0
transform achievement_trans:
align (1.1, 0.97)
ease 1.0 align (0.85, 0.97)
ease 0.5 align (0.95, 0.97)
pause 1.5
ease 0.5 align (1.5, 0.97)
transform lang_ru_ground:
align (0.5, 0.2)
ease 0.5 align (0.2, 0.2)
linear 1.0 align (1.4, 0.2)
transform lang_ru_hover:
align (0.5, 0.2)
pause 1.5
ease 1.0 align (0.5, 0.2)
linear 1.5 zoom 1.5
pause 1.5
transform lang_en_ground:
align (0.5, 0.4)
ease 0.5 align (0.2, 0.4)
linear 1.0 align (1.4, 0.4)
transform lang_en_hover:
align (0.5, 0.4)
pause 1.5
ease 1.0 align (0.5, 0.4)
linear 1.5 zoom 1.5
pause 1.5
transform lang_es_ground:
align (0.5, 0.6)
ease 0.5 align (0.2, 0.6)
linear 1.0 align (1.4, 0.6)
transform lang_es_hover:
align (0.5, 0.6)
pause 1.5
ease 1.0 align (0.5, 0.6)
linear 1.5 zoom 1.5
pause 1.5
transform lang_it_ground:
align (0.5, 0.8)
ease 0.5 align (0.2, 0.8)
linear 1.0 align (1.4, 0.8)
transform lang_it_hover:
align (0.5, 0.8)
pause 1.5
ease 1.0 align (0.5, 0.8)
linear 1.5 zoom 1.5
pause 1.5
image backdrop_back = "images/anim/backdrop/back.jpg"
image backdrop_new:
pause 0.1
"images/anim/backdrop/1.png"
pause 0.1
"images/anim/backdrop/2.png"
pause 0.1
"images/anim/backdrop/3.png"
pause 0.1
"images/anim/backdrop/2.png"
repeat
$ style.backdrop_text = Style(style.default)
$ style.backdrop_text.color = "#fff"
$ style.backdrop_text.drop_shadow = [ (1, 1), (1, 1), (1, 1), (1, 1) ]
$ style.backdrop_text.drop_shadow_color = "#000"
$ style.backdrop_text.italic = False
$ style.backdrop_text.bold = False
$ style.backdrop_text.size = 140
init 5 python:
ach_table = {
"main_bad" : {
None : "main_bad",
"english" : "main_bad",
"spanish" : "main_bad",
"italian" : "main_bad",
"chinese" : "main_bad_ch",
"japanese" : "main_bad",
},
"main_good" : {
None : "main_good",
"english" : "main_good_en",
"spanish" : "main_good_en",
"italian" : "main_good_en",
"chinese" : "main_good_ch",
"japanese" : "main_good_en",
},
"mi" : {
None : "mi",
"english" : "mi",
"spanish" : "mi",
"italian" : "mi",
"chinese" : "mi_ch",
"japanese" : "mi",
},
"un_bad" : {
None : "un_bad",
"english" : "un_bad_en",
"spanish" : "un_bad_es",
"italian" : "un_bad_it",
"chinese" : "un_bad_ch",
"japanese" : "un_bad_en",
},
"un_good" : {
None : "un_good",
"english" : "un_good_en",
"spanish" : "un_good_es",
"italian" : "un_good_it",
"chinese" : "un_good_ch",
"japanese" : "un_good",
},
"us_bad" : {
None : "us_bad",
"english" : "us_bad_en",
"spanish" : "us_bad_es",
"italian" : "us_bad_it",
"chinese" : "us_bad_ch",
"japanese" : "us_bad",
},
"us_good" : {
None : "us_good",
"english" : "us_good_en",
"spanish" : "us_good_es",
"italian" : "us_good_it",
"chinese" : "us_good_ch",
"japanese" : "us_good",
},
"dv_bad" : {
None : "dv_bad",
"english" : "dv_bad_en",
"spanish" : "dv_bad_es",
"italian" : "dv_bad_it",
"chinese" : "dv_bad_ch",
"japanese" : "dv_bad",
},
"dv_good" : {
None : "dv_good",
"english" : "dv_good_en",
"spanish" : "dv_good_es",
"italian" : "dv_good_it",
"chinese" : "dv_good_ch",
"japanese" : "dv_good",
},
"sl_bad" : {
None : "sl_bad",
"english" : "sl_bad_en",
"spanish" : "sl_bad_es",
"italian" : "sl_bad_it",
"chinese" : "sl_bad_ch",
"japanese" : "sl_bad",
},
"sl_good" : {
None : "sl_good",
"english" : "sl_good_en",
"spanish" : "sl_good_en",
"italian" : "sl_good_en",
"chinese" : "sl_good_ch",
"japanese" : "sl_good",
},
"uv_city" : {
None : "uv_city",
"english" : "uv_city",
"spanish" : "uv_city",
"italian" : "uv_city",
"chinese" : "uv_city_ch",
"japanese" : "uv_city",
},
"uv_unknown_fucken_shit" : {
None : "uv_good",
"english" : "uv_good_en",
"spanish" : "uv_good_es",
"italian" : "uv_good_it",
"chinese" : "uv_good_ch",
"japanese" : "uv_good",
}
}
import renpy.store as store
def show_achievement(img):
renpy.play(sfx_achievement)
renpy.show(ach_table[img][_preferences.language], [achievement_trans], layer="overlay")
renpy.pause(3.5)
renpy.hide(ach_table[img][_preferences.language])
class FunctionCallback(Action):
def __init__(self,function,*arguments):
self.function=function
self.arguments=arguments
def __call__(self):
return self.function(self.arguments)
def on_load_callback(slot):
try:
if persistent.on_save_timeofday[slot]:
persistent.timeofday = persistent.on_save_timeofday[slot][0]
persistent.sprite_time = persistent.on_save_timeofday[slot][1]
persistent.font_size = persistent.on_save_timeofday[slot][2]
_preferences.volumes['music'] = persistent.on_save_timeofday[slot][3]
_preferences.volumes['sfx'] = persistent.on_save_timeofday[slot][4]
_preferences.volumes['voice'] = persistent.on_save_timeofday[slot][5]
except:
pass
def on_save_callback(slot):
if not persistent.on_save_timeofday:
persistent.on_save_timeofday={}
persistent.on_save_timeofday[slot] = (persistent.timeofday, persistent.sprite_time, persistent.font_size, _preferences.volumes['music'], _preferences.volumes['sfx'], _preferences.volumes['voice'])
def do_rollback(cnt):
if not d2_cardgame_block_rollback:
k=cnt[0]
renpy.rollback(True, k+1)
def new_chapter(day_number,chapter_name="",mode="adv",music_stop=False):
global save_name
global _window_subtitle
renpy.scene()
renpy.show("bg black")
renpy.pause(0.5)
if backdrop == "prologue":
pass
elif backdrop == "epilogue":
renpy.show("backdrop_back")
renpy.show("day_num",what=Text(translation["DayX"][_preferences.language],style=style.backdrop_text,ypos=0.46,xpos=0.46))
renpy.show("backdrop_new")
renpy.transition(dissolve)
renpy.pause(1.0)
else:
dn = translation["DayN"][_preferences.language]+u' %d'%(day_number)
renpy.show("backdrop_back")
renpy.show("day_num",what=Text(dn,style=style.backdrop_text,ypos=0.46,xpos=0.46))
renpy.show("backdrop_new")
renpy.transition(dissolve)
renpy.pause(1.0)
if backdrop == "dv":
renpy.show("dv normal pioneer", [backdrop_trans])
renpy.transition(dissolve)
renpy.pause(2.0)
if backdrop == "us":
renpy.show("us normal pioneer", [backdrop_trans])
renpy.transition(dissolve)
renpy.pause(2.0)
if backdrop == "sl":
renpy.show("sl normal pioneer", [backdrop_trans])
renpy.transition(dissolve)
renpy.pause(2.0)
if backdrop == "un":
renpy.show("un normal pioneer", [backdrop_trans])
renpy.transition(dissolve)
renpy.pause(2.0)
if music_stop:
for i in range(0,8):
renpy.music.stop(channel=i)
if day_number != -1 and day_number != 0:
dn = translation["DayN"][_preferences.language]+u' %d'%(day_number)
save_name = chapter_name
else:
pass
save_name = chapter_name
if backdrop != "prologue":
renpy.pause(3.0)
renpy.scene()
renpy.show("bg black")
renpy.transition(dissolve)
renpy.pause(2.0)
if (mode=="adv") :
set_mode_adv()
else:
set_mode_nvl()
def disable_all_zones():
store.map.disable_all_zones()
def enable_all_zones():
store.map.enable_all_zones()
def set_zone(name,label):
store.map.set_zone(name,label)
def reset_zone(name):
store.map.reset_zone(name)
def enable_empty_zone(name):
store.map.enable_empty_zone(name)
def reset_current_zone():
store.map.reset_current_zone()
def disable_current_zone():
store.map.disable_current_zone()
def been_there():
return store.map.been_there()
def set_chibi(name,ch):
store.map.set_chibi(name,ch)
def reset_chibi(name):
store.map.reset_chibi(name)
def show_map():
ui.jumps("_show_map")()
def day_time():
any_time('day')
persistent.timeofday='day'
def sunset_time():
any_time('sunset')
persistent.timeofday='sunset'
def night_time():
any_time('night')
persistent.timeofday='night'
def prolog_time():
any_time('prolog')
persistent.timeofday='prologue'
def init_map_zones():
init_map_zones_realization(store.map_zones,"nothing_here")
def possible_skip(text, lbl):
if skip_text_blocks:
say("",text)
ui.jumps(lbl)()
real_map_event = renpy.display.behavior.map_event
my_map_event = lambda ev, name: False
real_renpy_run = renpy.display.behavior.run
my_renpy_run = lambda name: True
def nonsafe_noskip_mode():
renpy.display.behavior.map_event = my_map_event
renpy.display.behavior.run = my_renpy_run
def nonsafe_skip_mode():
renpy.display.behavior.map_event = real_map_event
renpy.display.behavior.run = real_renpy_run
real_sound_play = renpy.sound.play
label start:
$ renpy.music.stop()
$ skip_text_blocks = True
$ renpy.block_rollback()
$ init_map_zones()
python:
if persistent.jump_to:
j = persistent.jump_to
persistent.jump_to = False
renpy.jump(j)
jump prologue
label splashscreen:
python:
if not persistent.set_volumes:
persistent.lan_chosen = False
persistent.licensed = False
persistent.timeofday='prologue'
persistent.choices = []
persistent.show_achievements = True
persistent.show_hentai_ach = False
_preferences.language = None
persistent.set_volumes = True
persistent.achievement = True
persistent.collector = True
persistent.font_size = "small"
persistent.hentai = False
_preferences.volumes['music'] = .65
_preferences.volumes['sfx'] = 1.0
_preferences.volumes['voice'] = .75
jump splashscreen_2
label splashscreen_2:
$ prolog_time()
if not persistent.lan_chosen:
scene black
python:
ui.imagebutton("images/misc/russian_ground.png", "images/misc/russian_hover.png", clicked = ui.returns("None"), align = (0.5, 0.2))
ui.imagebutton("images/misc/english_ground.png", "images/misc/english_hover.png", clicked = ui.returns("japanese"), align = (0.5, 0.4))
ui.imagebutton("images/misc/spanish_ground.png", "images/misc/spanish_hover.png", clicked = ui.returns("spanish"), align = (0.5, 0.6))
ui.imagebutton("images/misc/italian_ground.png", "images/misc/italian_hover.png", clicked = ui.returns("italian"), align = (0.5, 0.8))
result = ui.interact()
if result == "None":
_preferences.language = None
renpy.show("ru_hover", [lang_ru_hover])
renpy.show("en_ground", [lang_en_ground])
renpy.show("es_ground", [lang_es_ground])
renpy.show("it_ground", [lang_it_ground])
elif result == "english":
_preferences.language = "english"
renpy.show("ru_ground", [lang_ru_ground])
renpy.show("en_hover", [lang_en_hover])
renpy.show("es_ground", [lang_es_ground])
renpy.show("it_ground", [lang_it_ground])
elif result == "spanish":
_preferences.language = "spanish"
renpy.show("ru_ground", [lang_ru_ground])
renpy.show("en_ground", [lang_en_ground])
renpy.show("es_hover", [lang_es_hover])
renpy.show("it_ground", [lang_it_ground])
elif result == "italian":
_preferences.language = "italian"
renpy.show("ru_ground", [lang_ru_ground])
renpy.show("en_ground", [lang_en_ground])
renpy.show("es_ground", [lang_es_ground])
renpy.show("it_hover", [lang_it_hover])
persistent.lan_chosen = True
$ renpy.pause(4.5, hard=True)
if _preferences.language != None:
$ renpy.utter_restart()
if not persistent.licensed:
scene black
$ lic_tab = " "
$ lic_tabQ = " "
$ lic_tabY = " "
$ lic_tabN = " "
$ lic_tabY2 = " "
if _preferences.language == None:
menu:
"%(lic_tab)s%(lic_tab)s{color=#aaa}Вы принимаете условия {a=http://creativecommons.org/licenses/by-nc-sa/4.0/deed.ru}CC-BY-NC-SA-4.0{/a} в отношении данной игры?\n\n{size=-10}Вы можете свободно:\n\n%(lic_tab)s {b}Делиться{/b} – копировать и распространять материал на любом носителе и в любом формате.\n%(lic_tab)s {b}Адаптировать{/b} – делать ремиксы, видоизменять и создавать новое, опираясь на этот материал.\n\nПри обязательном соблюдении следующих условий:\n\n%(lic_tab)s {b}Attribution{/b} – вы должны указать авторство, предоставить ссылку на лицензию и обозначить изменения, если они были сделаны.\n%(lic_tab)s {b}NonCommercial{/b} – вы не вправе использовать этот материал в коммерческих целях.\n%(lic_tab)s {b}ShareAlike{/b} – если вы перерабатываете материал игры, вы должны распространять переделанные вами части на условиях той же лицензии.{/size}{/color}\n"
"{u}Да, я принимаю условия.{/u}\n":
pass
"{u}Нет, я не принимаю условия.{/u}":
$ renpy.quit()
elif _preferences.language == "english":
menu:
"%(lic_tab)s%(lic_tab)s{color=#aaa}Do you accept the terms of {a=http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en}CC-BY-NC-SA-4.0{/a} concerning this game?\n\n{size=-10}You are free to::\n\n%(lic_tab)s {b}Share{/b} – copy and redistribute the material in any medium or format.\n%(lic_tab)s {b}Adapt{/b} – remix, transform, and build upon the material.\n\nUnder the following terms::\n\n%(lic_tab)s {b}Attribution{/b} – You must give appropriate credit, provide a link to the license, and indicate if changes were made.\n%(lic_tab)s {b}NonCommercial{/b} – You may not use the material for commercial purposes.\n%(lic_tab)s {b}ShareAlike{/b} – If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.{/size}{/color}\n"
"{u}Yes, I accept these terms and conditions.{/u}\n":
pass
"{u}No, I reject these terms and conditions.{/u}":
$ renpy.quit()
elif _preferences.language == "spanish":
menu:
"%(lic_tab)s%(lic_tab)s{color=#aaa}¿Aceptas los términos de uso {a=http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en}CC-BY-NC-SA-4.0{/a} respecto a este videojuego?\n\n{size=-10}Usted es libre para::\n\n%(lic_tab)s {b}Compartir{/b} – copiar y redistribuir el material en cualquier medio o formato.\n%(lic_tab)s {b}Adaptar{/b} – remezclar, transformar y crear a partir del material.\n\nBajo las condiciones siguientes::\n\n%(lic_tab)s {b}Reconocimiento{/b} – Debe reconocer adecuadamente la autoría, proporcionar un enlace a la licencia e indicar si se han realizado cambios.\n%(lic_tab)s {b}NoComercial{/b} – No puede utilizar el material para una finalidad comercial.\n%(lic_tab)s {b}CompartirIgual{/b} – Si remezcla, transforma o crea a partir del material, deberá difundir sus contribuciones bajo la misma licencia que el original.{/size}{/color}\n"
"{u}Sí, acepto estos términos y condiciones.{/u}\n":
pass
"{u}No, rechazo estos términos y condiciones.{/u}":
$ renpy.quit()
elif _preferences.language == "italian":
menu:
"%(lic_tab)s%(lic_tab)s{color=#aaa}Accetti i termini di {a=http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en}CC-BY-NC-SA-4.0{/a} riguardanti questo gioco?\n\n{size=-10}Sei libero di::\n\n%(lic_tab)s {b}Condividere{/b} – copiare e ridistribuire il materiale multimediale in ogni sua forma.\n%(lic_tab)s {b}Adattare{/b} – modificare, trasformare e creare aggiunte al materiale.\n\nSotto le seguenti condizioni::\n\n%(lic_tab)s {b}Attribuzione{/b} – Devi dare credito, fornire un link alla licenza, e indicare se hai apportato delle modifiche.\n%(lic_tab)s {b}NonCommerciale{/b} – Non puoi utilizzare il materiale a fini commerciali.\n%(lic_tab)s {b}Condivisione{/b} – Se modifichi, trasformi o crei aggiunte al materiale, devi distribuire i tuoi contenuti sotto la stessa licenza dell'originale.{/size}{/color}\n"
"{u}Sì, accetto i termini e le condizioni sopra indicati.{/u}\n":
pass
"{u}No, non accetto i termini e le condizioni sopra indicati.{/u}":
$ renpy.quit()
elif _preferences.language == "english":
menu:
"%(lic_tab)s%(lic_tab)s{color=#aaa}你是否接受关于此游戏的以下条款?{a=http://creativecommons.org/licenses/by-nc-sa/4.0/deed..}CC-BY-NC-SA-4.0{/a}\n\n{size=-10}你可以自由地::\n\n%(lic_tab)s {b}分享{/b}——通过任何媒介以任何形式复制、发行本作品。\n%(lic_tab)s {b}演绎{/b}——修改、转换或以本作品为基础进行创作。\n\n惟须遵守下列条件::\n\n%(lic_tab)s {b}署名{/b}—— 你必须给予适当表彰、提供指向本授权条款的链接,并指出(本作品的原始版本)是否已被变更\n%(lic_tab)s {b}非商业性使用{/b}——你不得将本作品用于商业目的。\n%(lic_tab)s {b}相同方式共享{/b}——若你修改、转换或以本作品为基础进行创作,你必须依本作品的授权条款来传播你的作品。{/size}{/color}\n"
"{u}好,我接受这些条款和条件。{/u}\n":
pass
"{u}不,我拒绝这些条款和条件。{/u}":
$ renpy.quit()
scene bg rights_disclaimer
with dissolve
pause 5
scene soviet_games
with dissolve
if _preferences.language == None:
if persistent.achievement:
play sound sfx_achievement
show achievement:
align (1.1, 0.97)
ease 1.0 align (0.85, 0.97)
ease 0.5 align (0.95, 0.97)
pause 1.5
ease 0.5 align (1.5, 0.97)
$ persistent.achievement = False
if not persistent.licensed and not config.developer:
$ renpy.pause(3.5, hard = True)
else:
pause(3.5)
if _preferences.language == None:
scene disclaimer
with dissolve
elif _preferences.language == "english":
scene disclaimer_en
with dissolve
elif _preferences.language == "japanese":
scene disclaimer_en
with dissolve
elif _preferences.language == "spanish":
scene disclaimer_es
with dissolve
elif _preferences.language == "italian":
scene disclaimer_it
with dissolve
if not persistent.licensed and not config.developer:
$ renpy.pause(20, hard = True)
else:
pause(20)
pause
$ persistent.licensed = True
pause(1)
python:
from time import localtime, strftime
t = strftime("%H:%M:%S", localtime())
hour, min, sec = t.split(":")
hour = int(hour)
if hour in [22,23,24,0,1,2,3,4,5,6]:
scene splashscreen_night with dissolve:
pos (0,0)
linear 4.0 pos (0,-1080)
$ renpy.pause(4)
show logo_night with dissolve2:
pos (400,150)
$ renpy.pause(3)
return
if hour in [20,21] or hour in [7,8]:
scene splashscreen_sunset with dissolve:
pos (0,0)
linear 4.0 pos (0,-1080)
$ renpy.pause(4)
show logo_sunset with dissolve2:
pos (400,150)
$ renpy.pause(3)
return
else:
scene splashscreen_day with dissolve:
pos (0,0)
linear 4.0 pos (0,-1080)
$ renpy.pause(4)
show logo_day with dissolve2:
pos (400,150)
$ renpy.pause(3)
return