SnootGame/game/storyline.rpy

55 lines
1.4 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():
#0b0000, DCBA, 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 = "e"+str(i)+"of4"
2021-09-22 22:39:56 +00:00
endings |= (_e * renpy.seen_image(fn))
_e = _e << 0b1
2021-10-16 17:25:12 +00:00
persistent.old_endings = persistent.endings
2021-09-22 22:39:56 +00:00
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_12_5D
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_12_5C
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
2021-10-15 05:09:14 +00:00
call chapter_12_5D
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()
2022-11-23 09:21:49 +00:00
call lending
return