SnootGame/game/storyline.rpy

92 lines
2.2 KiB
Plaintext
Raw Normal View History

2021-09-22 23:06:37 +00:00
init -1 python:
2021-09-22 22:39:56 +00:00
def ending_image():
2021-09-22 23:06:37 +00:00
#0b0000, ABCD, flash the bits with |=, check with &
2021-09-22 22:39:56 +00:00
endings = 0b0000
_e = 0b1
for i in range(1, 5):
fn = str(i)+"of4"
endings |= (_e * renpy.seen_image(fn))
_e = _e << 0b1
persistent.endings = endings
2021-06-18 17:59:52 +00:00
label storyline:
2021-06-18 02:01:49 +00:00
call chapter_1
call chapter_2
call chapter_3
call chapter_4
call chapter_5
call chapter_6
call chapter_7
call chapter_8
call chapter_9
call chapter_10
call chapter_11
call get_ending
if _return == 4:
2021-06-18 02:01:49 +00:00
call chapter_11D
call chapter_12D
call chapter_13
2021-06-18 02:01:49 +00:00
call chapter_13D
call chapter_14D
elif _return == 3:
$ tradwife = True
2021-06-18 02:01:49 +00:00
call chapter_11C
call chapter_12C
call chapter_13
2021-06-18 02:01:49 +00:00
call chapter_13C
call chapter_14C
elif _return == 2:
2021-06-18 02:01:49 +00:00
call chapter_11B
call chapter_12B
# no chapter_13 here since the scene is different enough to the other routes for everything to go into 13C
2021-06-18 02:01:49 +00:00
call chapter_13B
call chapter_14B
else:
2021-06-18 02:01:49 +00:00
call chapter_11A
call chapter_12A
call chapter_13
2021-06-18 02:01:49 +00:00
call chapter_13A
call chapter_14A
2021-09-22 22:39:56 +00:00
$ ending_image()
2021-06-18 02:01:49 +00:00
$ renpy.quit()
2021-09-22 22:39:56 +00:00
$ ending_image()
call .ending
2021-06-18 18:02:55 +00:00
return
2021-06-18 02:01:49 +00:00
2021-10-11 20:27:42 +00:00
image b_credits = Composite(
(1920, 11000),
(0, 0), "credits",
(0, 10410), "b_sketch")
image c_credits = Composite(
(1920, 11000),
(0, 0), "credits",
(0, 10410), "c_sketch")
image d_credits = Composite(
(1920, 11000),
(0, 0), "credits",
(0, 10410), "d_sketch")
label .ending:
2021-06-18 02:01:49 +00:00
play music "audio/OST/Dino Destiny Reader.ogg"
2021-10-11 20:27:42 +00:00
call get_ending
if _return == 4:
2021-10-12 19:04:30 +00:00
scene d_credits at Pan((0, 0),(0, 9850), 65) with fade
2021-10-11 20:27:42 +00:00
elif _return == 3:
2021-10-12 19:04:30 +00:00
scene c_credits at Pan((0, 0),(0, 9850), 65) with fade
2021-10-11 20:27:42 +00:00
else:
2021-10-12 19:04:30 +00:00
scene b_credits at Pan((0, 0),(0, 9850), 65) with fade
2021-10-11 20:27:42 +00:00
pause
stop music fadeout 5
scene black with Dissolve(3)
pause 2
2021-06-18 02:01:49 +00:00
if tradwife:
2021-10-11 20:27:42 +00:00
scene c10 with Dissolve(1.5)
2021-06-18 02:01:49 +00:00
pause 20
elif anonscore >= 4 and fangscore >= 4:
2021-10-11 20:27:42 +00:00
scene ending_d_cg with Dissolve(1.5)
2021-10-07 00:54:27 +00:00
pause 20
2021-10-11 20:27:42 +00:00
scene black with Dissolve(2)
2021-07-04 06:06:59 +00:00
return