define ton_face = { "mouth": { "neutral": ["base","open"], "happy": ["base","grin"], "naughty": ["soft","base"], "horny": ["horny","base"], "annoyed": ["upset","annoyed"], "disgusted": ["disgust","upset"], "angry": ["clench","mad","upset"] }, "eyes": { "neutral": ["base"], "happy": ["happyCl"], "naughty": ["narrow"], "horny": ["narrow"], "annoyed": ["narrow","base"], "disgusted": ["base"], "angry": ["base"] }, "eyebrows": { "neutral": ["base"], "happy": ["base","raised"], "naughty": ["base","raised"], "horny": ["base","raised"], "annoyed": ["annoyed"], "disgusted": ["raised","worried"], "angry": ["angry"] }, "pupils": { "neutral": ["mid"], "happy": ["mid"], "naughty": ["mid","up","downR"], "horny": ["mid","stare","down"], "annoyed": ["mid","downR","R"], "disgusted": ["mid","down"], "angry": ["mid"] } } label update_tonks: # Chibi Update $ tonks_chibi.update() $ tonks_chibi.position(flip=False) $ tonks.xzoom = 1 hide screen ton_cloth_pile $ tonks.get_equipped("hair").set_color(tonks_haircolor) return label end_tonks_event: call ton_chibi("hide") hide tonks_main with d3 pause.5 call update_tonks $ states.last_girl = states.active_girl $ states.active_girl = None $ states.ton.busy = True $ tonks.wear("all") $ tonks.set_cum(None) call music_block jump main_room_menu define character.tonks_say = Character("name_tonks_genie", show_icon="tonks", dynamic=True) init python: def ton(what, mouth=None, eyes=None, eyebrows=None, pupils=None, cheeks=None, tears=None, emote=None, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, hair=None, **kwargs): redraw = False tag = tonks.tag layer = tonks.layer #showing = renpy.showing(name=tag, layer=layer) if xpos != None or ypos != None: xpos = tonks.pos[0] if xpos == None else sprite_pos.get("x").get(xpos, xpos) ypos = tonks.pos[1] if ypos == None else sprite_pos.get("y").get(ypos, ypos) tonks.pos = (xpos, ypos) redraw = True head_only = tonks.pos[1] == sprite_pos.get("y").get("head") if any((mouth, eyes, eyebrows, pupils, cheeks, tears)): tonks.set_face(mouth=mouth, eyes=eyes, eyebrows=eyebrows, pupils=pupils, cheeks=cheeks, tears=tears) redraw = True tonks.set_emote(emote) target_color = tonks_haircolor if hair: if isinstance(hair, list): target_color = hair elif hair in ("neutral", "basic", "reset"): pass elif hair in ("red", "angry", "furious"): target_color = [Color((164, 34, 34, 255)), Color((219, 83, 83, 255))] elif hair in ("orange", "upset", "annoyed"): target_color = [Color((228, 93, 34, 255)), Color((246, 193, 170, 255))] elif hair in ("yellow", "happy", "cheerful"): target_color = [Color((255, 213, 23, 255)), Color((255, 239, 167, 255))] elif hair in ("green", "disgusted"): target_color = [Color((111, 205, 75, 255)), Color((200, 237, 186, 255))] elif hair in ("blue", "sad"): target_color = [Color((64, 75, 205, 255)), Color((182, 186, 237, 255))] elif hair == "purple": target_color = [Color((205, 75, 205, 255)), Color((237, 186, 237, 255))] elif hair in ("white", "scared"): target_color = [Color((238, 238, 241, 255)), Color((249, 249, 250, 255))] elif hair in ("pink", "horny"): target_color = [Color((255, 105, 180, 255)), Color((251, 205, 222, 255))] if target_color != tonks.get_equipped("hair").color: tonks.get_equipped("hair").set_color(target_color) redraw = True if animation != False: tonks.animation = animation redraw = True if flip != None: tonks.xzoom = -1 if flip else 1 redraw = True if redraw: tonks.show() # ton_chibi_new.update() if not renpy.in_rollback(): if trans: renpy.with_statement(trans) else: renpy.with_statement(d2) if what: character.tonks_say(what, **kwargs) if head_only: tonks.hide()