init python:
    def say_arguments_callback(who, interact=True, *args, **kwargs):
        kw = {}
        kw.update(dict(interact=interact))
        kw.update(kwargs)

        if who == "Lilibet":
            store.pmc = "Daddy"

        return args, kw

    config.say_arguments_callback = say_arguments_callback
    def reroll_mm():
        store.mm = renpy.random.choice(["other/mm/2ndfloor.webp", "other/mm/a12.webp", "other/mm/a60.webp", "other/mm/a67.webp", "other/mm/d2_50.webp", "other/mm/d502.webp", "other/mm/d546.webp", "other/mm/d5e24.webp", "other/mm/d5nd30.webp", "other/mm/d5w018.webp", "other/mm/d6moutside59.webp", "other/mm/d6mrd03.webp", "other/mm/mm1.webp", "other/mm/p110.webp"])

    def ResetVolumes():
        _preferences.volumes['music'] = 0.6
        _preferences.volumes['sfx'] = 0.7
        _preferences.volumes['voice'] = 0.6
        renpy.restart_interaction()

define config.gestures = { "n" : "hide_windows", "e" : "skip", "s" : "game_menu", "w" : "rollback" }
#narrator
define n = Character(None, what_style="centered_text", window_style="centered_window",
                          window_xfill=True,
                          window_yfill=True,
                          window_background="images/n_bg.png",
                          what_color="#ddd"
    )

define name_only = Character(None,who_color="#fff", who_outlines= [ (absolute(3), "#000", absolute(1), absolute(1)) ])
define mc = Character("[mc_name]", who_color="#bbb") #32
define mcthink = Character("[mc_name]", who_color="#bbb", what_color="#ccc", what_italic=True, what_style="thinking_dialogue")
define pcname = "Perv"
define e = Character("Eva", who_color="#00a8ff") #Evanora 156
define l = Character("Laurie", who_color="#dad16d") #26
define s = Character("Mia", who_color="#fcd1ff") # 25
define na = Character("Nara", who_color="#6dda81") # 23
define nathink = Character("Nara", who_color="#6dda81", what_italic=True, what_style="thinking_dialogue", who_outlines= [ (absolute(2), "#888", absolute(0), absolute(0)) ])
define ig = Character("Iggdra", who_color="#117b00") # 29
define o = Character("Liv", who_color="#000", who_outlines= [ (absolute(3), "#888", absolute(1), absolute(1)) ]) #Olivia 18
define othink = Character("Liv", who_color="#000", what_italic=True, what_style="thinking_dialogue", who_outlines= [ (absolute(2), "#888", absolute(0), absolute(0)) ])
define p = Character("Lilibet", who_color="#f29ff5") # Elisabeth Nashandra von Bernstein-Alteburg /Nii race 18
define pthink = Character("Liv", who_color="#f29ff5", what_italic=True, what_style="thinking_dialogue", who_outlines= [ (absolute(2), "#888", absolute(0), absolute(0)) ])
define ni = Character("Nira", who_color="#9f00a9") # ??/21
define m = Character("[mom_name]") #Bethany 59
define ms = Character("Beth") #Bethany
define v = Character("[nari]", who_color="#a4775c") #Venari / Vana race 74
define vthink = Character("[nari]", who_color="#a4775c", what_italic=True, what_style="thinking_dialogue", who_outlines= [ (absolute(2), "#888", absolute(0), absolute(0)) ])
define z = Character("[noire]", who_color="#e0f1a6") #Aurora (maybe) 21
define t = Character("[tiny]", who_color="#708FFF") #Parvus race 231
define gs = Character("Sarah", who_color="#f29ff5") #grand aunt 18
define gh = Character("Hannah", who_color="#fcd1ff") #grand aunt 12/77
define g = Character("[gramps]", who_color="#dad16d", what_color="#FFFDC7") # 26
define gthink = Character("[gramps]", who_color="#dad16d", what_color="#DFFDC7",what_italic=True, what_style="thinking_dialogue", what_outlines= [ (absolute(2), "#333", absolute(0), absolute(0)) ])
define gm = Character("[gm]", who_color="#dad16d") #great grandmother/Jenny 42

image mm:
    choice:
        "other/mm/2ndfloor.webp" with slowdissolve
    choice:
        "other/mm/a12.webp" with slowdissolve
    choice:
        "other/mm/a60.webp" with slowdissolve
    choice:
        "other/mm/a67.webp" with slowdissolve
    choice:
        "other/mm/d2_50.webp" with slowdissolve
    choice:
        "other/mm/d502.webp" with slowdissolve
    choice:
        "other/mm/d546.webp" with slowdissolve
    choice:
        "other/mm/d5e24.webp" with slowdissolve
    choice:
        "other/mm/d5nd30.webp" with slowdissolve
    choice:
        "other/mm/d5w018.webp" with slowdissolve
    choice:
        "other/mm/d6moutside59.webp" with slowdissolve
    choice:
        "other/mm/d6mrd03.webp" with slowdissolve
    choice:
        "other/mm/mm1.webp" with slowdissolve
    choice:
        "other/mm/p110.webp" with slowdissolve
    pause 5
    repeat

image train1 = Movie(play="vids/train1.webm")
image train2 = Movie(play="vids/train2.webm")
image train3 = Movie(play="vids/train3.webm")
image train4 = Movie(play="vids/train4.webm")
image nara1 = Movie(play="vids/nara1.webm")
image nara2 = Movie(play="vids/nara2.webm")
image bhv0 = Movie(play="vids/l&e0.webm")
image bhv1 = Movie(play="vids/l&e1.webm")
image bhv2 = Movie(play="vids/l&e2.webm")
image bhv3 = Movie(play="vids/l&e3.webm")
image ains = Movie(play="vids/a_ins.webm", loop=False)
image as01 = Movie(play="vids/as01.webm")
image as02 = Movie(play="vids/as02.webm")
image as03 = Movie(play="vids/as03.webm")
image as04 = Movie(play="vids/as04.webm")
image as05 = Movie(play="vids/as05.webm")
image as06 = Movie(play="vids/as06.webm")
image ascum = Movie(play="vids/as_cum.webm", loop=False)
image mt0 = Movie(play="vids/mt0.webm")
image mt1 = Movie(play="vids/mt1.webm")
image mt2 = Movie(play="vids/mt2.webm")
image mt3 = Movie(play="vids/mt3.webm")
image mt4 = Movie(play="vids/mt4.webm")
image mt5 = Movie(play="vids/mt5.webm")
image mtdead = Movie(play="vids/mt_dead.webm")
image lk_01 = Movie(play="vids/lk_01.webm")
image lk_02 = Movie(play="vids/lk_02.webm")
image lk_03 = Movie(play="vids/lk_03.webm")
image lk_04 = Movie(play="vids/lk_04.webm")
image lk_05 = Movie(play="vids/lk_05.webm")
image lk_06 = Movie(play="vids/lk_06.webm", loop=False)
image lk_cum:
    "lk_06"
    pause 3.8
    "lk_06_113" with dissolve
image nbj01 = Movie(play="vids/ndt01_2.webm")
image nbj03 = Movie(play="vids/ndt03_2.webm")
image nbj04 = Movie(play="vids/ndt04_2.webm")
image nbj05 = Movie(play="vids/ndt05_2.webm")
image nbj_cum = Movie(play="vids/ndt_cum_2.webm", loop=False)
image patk = Movie(play="vids/pf01.webm", image="d3/patke.jpg", loop=False)
image d4d1 = Movie(play="vids/d4d01.webm", image="d4/d4da01.webp")
image d4d2 = Movie(play="vids/d4d02.webm", image="d4/d4da02.webp")
image d4d3 = Movie(play="vids/d4d03.webm", start_image="d4/d4da03.webp", image="d4/d4da03.webp")
image d4d4 = Movie(play="vids/d4d04.webm", start_image="d4/d4da04.webp", image="d4/d4da04.webp")
image d4d5 = Movie(play="vids/d4d05.webm", start_image="d4/d4da05.webp", image="d4/d4da05.webp")
image d4dcum = Movie(play="vids/d4dcum.webm", start_image="d4/d4dacum.webp", image="d4/d4dacum2.webp", loop=False)
image d4dswallow = Movie(play="vids/d4dswallow.webm", start_image="d4/d4daswallow.webp", image="d4/d4daswallow2.webp", loop=False)
image d5e_insert = Movie(play="vids/d5einsert.webm", image="d5/d5eie.webp", loop=False)
image d5es01 = Movie(play="vids/d5ef01.webm", start_image="d5/d5efi01.webp")
image d5es01_2 = Movie(play="vids/d5ef01_2.webm", start_image="d5/d5efi01_2.webp")
image d5es02 = Movie(play="vids/d5ef02.webm", start_image="d5/d5efi02.webp")
image d5es02_2 = Movie(play="vids/d5ef02_2.webm", start_image="d5/d5efi02_2.webp")
image d5es03 = Movie(play="vids/d5ef03.webm", start_image="d5/d5efi03.webp")
image d5es03_2 = Movie(play="vids/d5ef03_2.webm", start_image="d5/d5efi03_2.webp")
image d5es04 = Movie(play="vids/d5ef04.webm", start_image="d5/d5efi04.webp")
image d5es04_2 = Movie(play="vids/d5ef04_2.webm", start_image="d5/d5efi04_2.webp")
image d5es05 = Movie(play="vids/d5ef05.webm", start_image="d5/d5efi05.webp")
image d5escum = Movie(play="vids/d5efcum.webm", start_image="d5/d5eficum.webp", loop=False)
image d5g1 = Movie(play="vids/d5g1.webm", start_image="d5/d5g1i.webp")
image d5g2 = Movie(play="vids/d5g2.webm", start_image="d5/d5g2i.webp")
image d5g3 = Movie(play="vids/d5g3.webm", start_image="d5/d5g3i.webp")
image d5g4 = Movie(play="vids/d5g4.webm", start_image="d5/d5g4i.webp")
image d5mc = Movie(play="vids/d5mcattack.webm", loop=False)
image d5n01 = Movie(play="vids/d5n01.webm", start_image="d6/d5n01i.webp")
image d5n02 = Movie(play="vids/d5n02.webm", start_image="d6/d5n02i.webp")
image d5n03 = Movie(play="vids/d5n03.webm", start_image="d6/d5n03i.webp")
image d5n03_2 = Movie(play="vids/d5n03_2.webm", start_image="d6/d5n03_2i.webp")
image d5n04 = Movie(play="vids/d5n04.webm", start_image="d6/d5n04i.webp")
image d5mfins = Movie(play="vids/d5mfinsert.webm", start_image="d6/d5mfinserti.webp", loop=False)
image d5mf1 = Movie(play="vids/d5mf1.webm", start_image="d6/d5mf1i.webp")
image d5mf1_2 = Movie(play="vids/d5mf1_2.webm", start_image="d6/d5mf1_2i.webp")
image d5mfswitch = Movie(play="vids/d5mfswitch.webm", start_image="d6/d5mfswitchi.webp")
image d5mf2 = Movie(play="vids/d5mf2.webm", start_image="d6/d5mf2i.webp")
image d5mf2_2 = Movie(play="vids/d5mf2_2.webm", start_image="d6/d5mf2_2i.webp")
image d5mf3 = Movie(play="vids/d5mf3.webm", start_image="d6/d5mf3i.webp")
image d5ma1 = Movie(play="vids/d5ma1.webm", start_image="d6/d5ma1i.webp")
image d5ma1_2 = Movie(play="vids/d5ma1_2.webm", start_image="d6/d5ma1_2i.webp")
image d5maswitch = Movie(play="vids/d5maswitch.webm", start_image="d6/d5maswitchi.webp")
image d5ma2 = Movie(play="vids/d5ma2.webm", start_image="d6/d5ma2i.webp")
image d5ma2_2 = Movie(play="vids/d5ma2_2.webm", start_image="d6/d5ma2_2i.webp")
image d5ma3 = Movie(play="vids/d5ma3.webm", start_image="d6/d5ma3i.webp")
image d5mdacum = Movie(play="vids/d5mdacum.webm", start_image="d6/d5mdacumi.webp")
image d5mdvcum = Movie(play="vids/d5mdvcum.webm", start_image="d6/d5mdvcumi.webp")
image d6v01 = Movie(play="vids/d6_0.webm", start_image="d6/d6_0.webp")
image d6v02 = Movie(play="vids/d6_1.webm", start_image="d6/d6_1.webp")
image d6v03 = Movie(play="vids/d6_2.webm", start_image="d6/d6_2.webp")
image d6v04 = Movie(play="vids/d6_3.webm", start_image="d6/d6_3.webp")
image d6v05 = Movie(play="vids/d6_4.webm", start_image="d6/d6_4.webp")
image d6v06 = Movie(play="vids/d6_5.webm", start_image="d6/d6_5.webp")
image d6v07 = Movie(play="vids/d6_6.webm", start_image="d6/d6_6.webp")
image d6v08 = Movie(play="vids/d6_7.webm", start_image="d6/d6_7.webp")
image d6v09 = Movie(play="vids/d6_8.webm", start_image="d6/d6_8.webp", loop=False)
image d6nd1 = Movie(play="vids/d6nd1.webm", start_image="d6/d6nd1_.webp")
image d6nd2 = Movie(play="vids/d6nd2.webm", start_image="d6/d6nd2.webp")
image d6nd3 = Movie(play="vids/d6nd3.webm", start_image="d6/d6nd3.webp")
image d6nd4 = Movie(play="vids/d6nd4.webm", start_image="d6/d6nd4.webp")
image d6nd5 = Movie(play="vids/d6nd5.webm", start_image="d6/d6nd5.webp")
image d6nd6 = Movie(play="vids/d6nd6.webm", start_image="d6/d6nd6.webp")
image d6nd7 = Movie(play="vids/d6nd7.webm", start_image="d6/d6nd7.webp")
image d7wu1 = Movie(play="vids/d7wu1.webm", start_image="d7/d7wu1.webp")
image d7wu2 = Movie(play="vids/d7wu2.webm", start_image="d7/d7wu2.webp")
image d7wu3 = Movie(play="vids/d7wu3.webm", start_image="d7/d7wu3.webp")
image d7wu4 = Movie(play="vids/d7wu4.webm", start_image="d7/d7wu4.webp")
image d7wu5 = Movie(play="vids/d7wu5.webm", start_image="d7/d7wu5.webp")
image d7wu6 = Movie(play="vids/d7wu6.webm", start_image="d7/d7wu6_.webp")
image d7wu7 = Movie(play="vids/d7wu7.webm", start_image="d7/d7wu7.webp")
image d7wu8 = Movie(play="vids/d7wu8.webm", start_image="d7/d7wu8.webp")
image d7wucum = Movie(play="vids/d7wucum.webm", start_image="d7/d7wucum.webp", loop=False)
image d7pf01 = Movie(play="vids/d7pf0-1.webm", start_image="d7/d7pf1-1_0.webp")
image d7pf11 = Movie(play="vids/d7pf1-1.webm", start_image="d7/d7pf1-1_0.webp")
image d7pf12 = Movie(play="vids/d7pf1-2.webm", start_image="d7/d7pf1-2_0.webp")
image d7pf21 = Movie(play="vids/d7pf2-1.webm", start_image="d7/d7pf2-1_0.webp")
image d7pf22 = Movie(play="vids/d7pf2-2.webm", start_image="d7/d7pf2-2_0.webp")
image d7pf31 = Movie(play="vids/d7pf3-1.webm", start_image="d7/d7pf3-1_0.webp")
image d7pf32 = Movie(play="vids/d7pf3-2.webm", start_image="d7/d7pf3-2_0.webp")
image d7pfcum = Movie(play="vids/d7pfcum.webm", start_image="d7/d7pfcum_0.webp")
image d7plfl01 = Movie(play="vids/d7plfl1-1.webm", start_image="d7/d7plfl1-1.webp")
image d7plfl11 = Movie(play="vids/d7plfl1-1_60.webm", start_image="d7/d7plfl1-1.webp")
image d7plfl12 = Movie(play="vids/d7plfl1-2.webm", start_image="d7/d7plfl1-2.webp")
image d7plfl2 = Movie(play="vids/d7plfl2.webm", start_image="d7/d7plfl2.webp")
image d7plfl31 = Movie(play="vids/d7plfl3-1.webm", start_image="d7/d7plfl3-1.webp")
image d7plfl32 = Movie(play="vids/d7plfl3-2.webm", start_image="d7/d7plfl3-2.webp")
image d7plfl4 = Movie(play="vids/d7plfl4.webm", start_image="d7/d7plfl4.webp")
image d7plfp5 = Movie(play="vids/d7plfp5.webm", start_image="d7/d7plfp5_0.webp")
image d7plfp6 = Movie(play="vids/d7plfp6.webm", start_image="d7/d7plfp6_0.webp")
image d7plfp52 = Movie(play="vids/d7plfp5_2.webm", start_image="d7/d7plfp52_0.webp")
image d7plfpcum = Movie(play="vids/d7plfpcum.webm", start_image="d7/d7plfp_cum.webp")
image d7lftits = Movie(play="vids/d7lftits.webm", start_image="d7/d7lftits0.webp")
image d7lfsex1 = Movie(play="vids/d7lfsex.webm", start_image="d7/d7lfsex_0.webp")
image d7lfsex2 = Movie(play="vids/d7lfsex2_0.webm", start_image="d7/d7lfsex_1.webp")
image d7lfsex22 = Movie(play="vids/d7lfsex2_1.webm", start_image="d7/d7lfsex_2.webp")
image d7lfsex3 = Movie(play="vids/d7lfsex3.webm", start_image="d7/d7lfsex_3.webp")
image d7lfsex4 = Movie(play="vids/d7lfsex4.webm", start_image="d7/d7lfsexcum_0.webp")
image d7lfsex_cum = Movie(play="vids/d7lfsexcum.webm", start_image="d7/d7lfsexcum_.webp", loop=False)
image d8emmr00 = Movie(play="vids/d8emmrm00.webm", start_image="d8/d8emmrm00.webp")
image d8emmr01 = Movie(play="vids/d8emmrm01.webm", start_image="d8/d8emmrm01.webp")
image d8emmr02 = Movie(play="vids/d8emmrm02.webm", start_image="d8/d8emmrm02.webp")
image d8emmr03 = Movie(play="vids/d8emmrm03.webm", start_image="d8/d8emmrm03.webp")
image d8emmr04 = Movie(play="vids/d8emmrm04.webm", start_image="d8/d8emmrm04.webp")
image d8emmr05 = Movie(play="vids/d8emmrm05.webm", start_image="d8/d8emmrm05.webp")
image d8emmr06 = Movie(play="vids/d8emmrm06.webm", start_image="d8/d8emmrm06.webp")
image d8emmr07 = Movie(play="vids/d8emmrm07.webm", start_image="d8/d8emmrm07.webp")
image d8emmrcum = Movie(play="vids/d8emmrmcum.webm", start_image="d8/d8emmrmcum.webp", loop=1)
image gfma01 = Movie(play="gramps/vids/gd5fms0.webm", start_image="gramps/gd5fms0.webp")
image gfma02 = Movie(play="gramps/vids/gd5fms1.webm", start_image="gramps/gd5fms1.webp")
image d8zfun1 = Movie(play="vids/d8zfun_1.webm", start_image="d8/d8zfun_1.webp")
image d8zfun2 = Movie(play="vids/d8zfun_2.webm", start_image="d8/d8zfun_2.webp")
image d8zfun3 = Movie(play="vids/d8zfun_3.webm", start_image="d8/d8zfun_3.webp")
image d8zfun4 = Movie(play="vids/d8zfun_4.webm", start_image="d8/d8zfun_4.webp")
image d8zfun5 = Movie(play="vids/d8zfun_5.webm", start_image="d8/d8zfun_5.webp")
image d8zfun6 = Movie(play="vids/d8zfun_6.webm", start_image="d8/d8zfun_6.webp")
image d8zfun7 = Movie(play="vids/d8zfun_7.webm", start_image="d8/d8zfun_7.webp")
image d8zfun8 = Movie(play="vids/d8zfun_8.webm", start_image="d8/d8zfun_8.webp")
image d8zfun9 = Movie(play="vids/d8zfun_9.webm", start_image="d8/d8zfun_9.webp")
image d8zfuncum = Movie(play="vids/d8zfun_cum.webm", start_image="d8/d8zfun_cum.webp", loop=False)

image abreath:
    "d2/a24.webp" with dissolve
    pause .7
    "d2/a25.webp" with dissolve
    pause .7
    repeat
image bhgm:
    "d3/bh05.jpg" with dissolve
    pause 1
    "d3/bh06.jpg" with dissolve
    pause 1
    "d3/bh07.jpg" with dissolve
    pause 1
    "d3/bh08.jpg" with dissolve
    pause 1
    repeat
image bell_run:
    "d3/p003.webp" with dissolve
    pause 0.1
    "d3/p004.webp" with dissolve
    pause 0.1
    "d3/p005.webp" with dissolve
    pause 0.1
    "d3/p002.webp" with dissolve
image d3lkf:
    "d3/d3l09.webp" with dissolve
    pause .9
    "d3/d3l10.webp" with dissolve
    pause .9
    repeat
image d5sp:
    "d5/d5sp1.webp" with dissolve
    pause .5
    "d5/d5sp2.webp" with dissolve
    pause .1
    "d5/d5sp3.webp" with dissolve
    pause .1
    "d5/d5sp4.webp" with dissolve
    pause .1
image d5sp2_:
    "d5/d5sp2_1.webp" with dissolve
    pause .5
    "d5/d5sp2_2.webp" with dissolve
    pause .1
    "d5/d5sp2_3.webp" with dissolve
    pause .1
image intro:
    "i1_2.webp" with dissolve
    pause 2
    "i1_3.webp" with dissolve
    pause 1
    "i1_4.webp" with dissolve
    pause 1
    "i1_5.webp" with dissolve
    pause 1
    "i1_6.webp" with dissolve
    pause .1
    "i1_7.webp" with dissolve
    pause .1
    "i1_8.webp" with dissolve
    pause .1
    "i1_9.webp" with dissolve
    pause .1
    "i1_10.webp" with dissolve
    pause .1
    "i1_11.webp" with dissolve
    pause .1
    "i1_12.webp" with dissolve
image d6ows1:
    "d6/d6ows01.webp" with dissolve
    pause 1
    "d6/d6ows02.webp" with dissolve
    pause 1
    repeat
image d6bh05trans:
    "d6/d6bh05.webp" with hpunch
    pause 1
    "d6/d6bh06.webp" with dissolve
image d7dinner87:
    "d7/d7dinner87.webp" with dissolve
    pause 1
    "d7/d7dinner86.webp" with dissolve
    pause 1
    repeat
image d7dinner89:
    "d7/d7dinner89.webp" with dissolve
    pause 1
    "d7/d7dinner88.webp" with dissolve
    pause 1
    repeat
image d7dinner90:
    "d7/d7dinner90.webp" with dissolve
    pause 1
    "d7/d7dinner91.webp" with dissolve
    pause 1
    repeat
image d7dinner122:
    "d7/d7dinner122.webp" with dissolve
    pause 1
    "d7/d7dinner121.webp" with dissolve
    pause 1
    repeat
image d7pfaftercum121a:
    "d7/d7pfaftercum122.webp" with dissolve
    pause 1
    "d7/d7pfaftercum121.webp" with dissolve
    pause 1
    repeat
image d7pfaftercum123a:
    "d7/d7pfaftercum124.webp" with dissolve
    pause 1
    "d7/d7pfaftercum123.webp" with dissolve
    pause 1
    repeat
image d7pslurp:
    "d7/d7plfpacum39.webp" with dissolve
    pause .7
    "d7/d7plfpacum40.webp" with dissolve
image d7night23:
    "d7/d7night23.webp" with dissolve
    pause 1
    "d7/d7night24.webp" with dissolve
    pause 1
    repeat
image d8emmroommo:
    "d8emmroom07" with dissolve
    pause 1
    "d8emmroom08" with dissolve
    pause 1
    repeat
image d8emmroommm:
    "d8emmroom10" with dissolve
    pause 1
    "d8emmroom11" with dissolve
    pause 1
    repeat
image d7eroom166:
    "d7eroom166_0" with dissolve
    pause 1
    "d7eroom166_1" with dissolve
    pause .5
    "d7eroom166_2" with dissolve
    pause .3
    "d7eroom167" with dissolve
image d8emmram16_:
    "d8emmram16" with dissolve
    pause 1
    "d8emmram17" with dissolve
    pause 1
    repeat
image d8zfun19a:
    "d8zfun19_1" with dissolve
    pause 1
    "d8zfun19" with dissolve
    pause 1
    repeat
image d8_labpunishment15a:
    "d8_labpunishment15" with dissolve
    pause 1
    "d8_labpunishment16" with dissolve
    pause 1
    repeat

image white = Solid((255, 255, 255, 255))
image red = "#740000"
define blink = Fade(0.1, 0.0, 0.1, color="#000")
define slowdissolve = Dissolve(2)
define flashin = Fade(0.1, 0.0, 2, color="#fff")
define flash = Fade(0.1, 0.0, 0.1, color="#fff")
define fade = Fade(1, 1.0, 1)
define flashred = Fade(0.1,0.0,0.1, color="#ff0000")
define textwdissolve = { "master" : Dissolve(2)}
transform btnzoom:
    zoom 0.2
transform btnZoomSwitch:
    xalign 0.99
    yalign .01
    linear .2 zoom 0.2
transform my_shake:
        linear 0.1 xoffset -3 yoffset 3
        linear 0.1 xoffset 4 yoffset -4
        linear 0.1 xoffset 3 yoffset -3
        linear 0.1 xoffset -4 yoffset 4
        linear 0.1 xoffset 0 yoffset 0
transform train_shake:
        linear 0.1 xoffset 0 yoffset 3
        linear 0.1 xoffset 0 yoffset -4
        linear 0.1 xoffset 0 yoffset -3
        linear 0.1 xoffset 0 yoffset 4
        linear 0.1 xoffset 0 yoffset 0
        pause 1
        repeat

transform olbtnzoom:
    zoom 0.5
    xalign 0.5
    yalign 0.5
    
screen povscreen():
    layer "master"
    if povstart:
        add "switch_cam1_idle.png" yalign .01 xalign .99 at btnZoomSwitch
        $ store.povstart = False
    showif campov:
        add pov1 at swap_dissolve
        imagebutton auto "switch_cam1_%s.png" action [ ToggleVariable("campov", true_value=True,false_value=False)] yalign .01 xalign .99 at btnzoom
    else:
        add pov2 at swap_dissolve
        imagebutton auto "switch_cam2_%s.png" action [ ToggleVariable("campov", true_value=True,false_value=False)] yalign .01 xalign .99 at btnzoom
transform swap_dissolve:
    on appear:
        alpha 1.0
    on show:
        linear .5 alpha 1.0
    on hide:
        linear .5 alpha 0.0
screen fight():
    style_prefix "choice"
    vbox:
        textbutton "Attack!" xalign 0.5 yalign 0.5 action Jump("computeStats")
    label _("Enemy") xalign 0.5 yalign 0.9
    bar:
        range hprange
        value beasthp
        xalign 0.5
        yalign 0.95
        xmaximum 0.3
label computeStats:
    scene t024 with dissolve
    mc "{cps=15}HAAAAA!{/cps}{w=.3}{nw}"
    play sound sharp_swing2
    scene t025 with hpunch
    pause .5
    if beasthp > mcatk:
        $ beasthp -= mcatk
        scene t023 with dissolve
        call screen fight
    else:
        hide screen fight
        jump d2_after_fight

label splashscreen:
    python:
        if not persistent.set_volumes:
            persistent.set_volumes = True
            _preferences.volumes['music'] *= .4
            _preferences.volumes['sfx'] *= .5
            _preferences.volumes['voice'] *= .4
    scene black
    scene intro with slowdissolve
    pause 6
    show i1_12 with hpunch
    scene i2_2
    show i1_13:
        linear 0.5 ypos 2000
    pause 1.5
    scene i3_2 with slowdissolve
    scene i2 with slowdissolve
    pause .5
    if persistent.seenEnd and not persistent.rbg:
        scene 00 with slowdissolve
    else:
        scene mm with slowdissolve
    show mmbg with dissolve
    return

label start:
    stop music
    window hide
    $ mc_name = renpy.input("Your name.", default=pcname)
    $ mc_name = mc_name.strip()
    if mc_name == "":
        $ mc_name = pcname
    $ bmc = mc_name.upper()
    call screen showtextbox
    call screen showblood with dissolve
    scene letter1 with dissolve
    pause .5
    scene letter2 with dissolve
    jump intro

label after_load:
    if not persistent.quick_menu:
        $ quick_menu = False
        $ persistent.quick_menu = False
    if not grampsstory:
        $ save_name = ""
    else:
        $ save_name = "Gramps Story"
    if gameday >= 7:
        if eAge == "???":
            $ eAge = "156"
            $ mAge = "59"
            $ vAge = "74"
    return


label theEnd:
    scene black with slowdissolve
    $ renpy.pause(1.0, hard=True)
    scene theend1 with dissolve
    $ renpy.pause(1.0, hard=True)
    scene theend2 with dissolve
    pause 1
    scene black with dissolve
    if not persistent.seenEnd:
        $ persistent.seenEnd = True
        n "Splash screen \"Harem\" unlocked."

return