2022-05-16 23:48:22 +00:00
|
|
|
label setup_fireplace_hangout(char=None):
|
|
|
|
|
2024-04-25 18:49:09 +00:00
|
|
|
if not states.env.daytime: # Night time
|
2022-05-16 23:48:22 +00:00
|
|
|
show screen blkfade
|
|
|
|
|
2023-03-31 22:41:48 +00:00
|
|
|
$ states.fireplace_started = True
|
2022-05-16 23:48:22 +00:00
|
|
|
$ fireplace_OBJ.foreground = "fireplace_fire"
|
|
|
|
|
|
|
|
call hide_characters
|
|
|
|
call gen_chibi("hide")
|
|
|
|
call sna_chibi("hide")
|
|
|
|
call ton_chibi("hide")
|
|
|
|
|
2024-04-25 18:49:09 +00:00
|
|
|
else: # states.env.daytime
|
2023-03-11 22:01:39 +00:00
|
|
|
stop background
|
2022-05-16 23:48:22 +00:00
|
|
|
show screen blkfade
|
|
|
|
|
|
|
|
call hide_characters
|
|
|
|
call gen_chibi("hide")
|
|
|
|
call sna_chibi("hide")
|
|
|
|
call ton_chibi("hide")
|
|
|
|
|
|
|
|
# Proceed as usual
|
|
|
|
if char == "snape":
|
|
|
|
show screen with_snape(ani=True)
|
|
|
|
elif char == "tonks":
|
|
|
|
show screen with_tonks_animated
|
|
|
|
|
|
|
|
$ chair_OBJ.hidden = True
|
|
|
|
$ chair_left_OBJ.hidden = True
|
|
|
|
|
|
|
|
hide screen bld1
|
|
|
|
hide screen blkfade
|
|
|
|
with fade
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
label slap_her:
|
2023-03-11 22:01:39 +00:00
|
|
|
play sound "sounds/slap_02.ogg" #SLAP!
|
2022-05-16 23:48:22 +00:00
|
|
|
show screen white
|
|
|
|
with hpunch
|
|
|
|
pause.08
|
|
|
|
hide screen white
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
label kiss_her:
|
2023-03-11 22:01:39 +00:00
|
|
|
play sound "sounds/kiss.ogg" #Kiss!
|
2022-05-16 23:48:22 +00:00
|
|
|
with hpunch
|
|
|
|
pause.08
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
label spit_on_her:
|
2023-03-11 22:01:39 +00:00
|
|
|
play sound "sounds/spit.ogg" #Kiss!
|
2022-05-16 23:48:22 +00:00
|
|
|
show screen white
|
|
|
|
pause.2
|
|
|
|
hide screen white
|
|
|
|
with hpunch
|
|
|
|
pause.08
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
label cast_spell(spell=""):
|
|
|
|
if spell in ["revelio","imperio"]:
|
|
|
|
|
|
|
|
stop music fadeout 2.0
|
2023-03-11 22:01:39 +00:00
|
|
|
play sound "sounds/magic2.ogg"
|
2022-05-16 23:48:22 +00:00
|
|
|
show screen white
|
|
|
|
pause.1
|
|
|
|
hide screen white
|
|
|
|
with hpunch
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
label cum_block:
|
|
|
|
show screen white
|
|
|
|
pause.1
|
|
|
|
hide screen white
|
|
|
|
pause.2
|
|
|
|
show screen white
|
|
|
|
pause.1
|
|
|
|
hide screen white
|
|
|
|
with hpunch
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
label increase_house_points(house, points):
|
|
|
|
call bld
|
|
|
|
call notes
|
|
|
|
if house.startswith("g"):
|
|
|
|
$ gryffindor += points
|
2023-03-11 19:43:02 +00:00
|
|
|
nar "Gryffindor has received {number=points} house points today!"
|
2022-05-16 23:48:22 +00:00
|
|
|
elif house.startswith("h"):
|
|
|
|
$ hufflepuff += points
|
2023-03-11 19:43:02 +00:00
|
|
|
nar "Hufflepuff has received {number=points} house points today!"
|
2022-05-16 23:48:22 +00:00
|
|
|
elif house.startswith("r"):
|
|
|
|
$ ravenclaw += points
|
2023-03-11 19:43:02 +00:00
|
|
|
nar "Ravenclaw has received {number=points} house points today!"
|
2022-05-16 23:48:22 +00:00
|
|
|
else:
|
|
|
|
$ slytherin += points
|
2023-03-11 19:43:02 +00:00
|
|
|
nar "Slytherin has received {number=points} house points today!"
|
2022-05-16 23:48:22 +00:00
|
|
|
return
|
|
|
|
|
|
|
|
#TODO Check and fix teleport/heal effect position (chibis are now anchored bottom-left)
|
|
|
|
label teleport(position=None,effect=True,poof_label=None):
|
2022-09-29 21:19:55 +00:00
|
|
|
python:
|
|
|
|
if position == "genie":
|
|
|
|
teleport_xpos = genie_chibi.pos[0]+75
|
|
|
|
teleport_ypos = genie_chibi.pos[1]
|
|
|
|
teleport_zorder = 3
|
|
|
|
elif position == "hermione":
|
|
|
|
teleport_xpos = hermione_chibi.pos[0]+45
|
|
|
|
teleport_ypos = hermione_chibi.pos[1]
|
|
|
|
teleport_zorder = 3
|
|
|
|
elif position == "cho":
|
|
|
|
teleport_xpos = cho_chibi.pos[0]+45
|
|
|
|
teleport_ypos = cho_chibi.pos[1]
|
|
|
|
teleport_zorder = 3
|
|
|
|
elif position == "astoria":
|
|
|
|
teleport_xpos = astoria_chibi.pos[0]+45
|
|
|
|
teleport_ypos = astoria_chibi.pos[1]
|
|
|
|
teleport_zorder = 3
|
|
|
|
elif position == "desk":
|
|
|
|
teleport_xpos = 320
|
|
|
|
teleport_ypos = 450
|
|
|
|
teleport_zorder = 5
|
|
|
|
else:
|
|
|
|
teleport_xpos = position[0]
|
|
|
|
teleport_ypos = position[1]
|
|
|
|
teleport_zorder = 2
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
if effect == True:
|
2023-03-11 22:01:39 +00:00
|
|
|
play sound "sounds/magic4.ogg"
|
2022-05-16 23:48:22 +00:00
|
|
|
show screen whitefade
|
|
|
|
with d1
|
|
|
|
|
|
|
|
hide screen whitefade
|
|
|
|
with d1
|
|
|
|
|
|
|
|
show screen blkfade
|
|
|
|
with d1
|
|
|
|
|
|
|
|
hide screen blkfade
|
2024-04-01 20:52:01 +00:00
|
|
|
show heal_ani onlayer screens zorder teleport_zorder:
|
|
|
|
anchor (0.5, 1.0)
|
|
|
|
pos teleport_pos
|
|
|
|
zoom 0.5
|
2022-05-16 23:48:22 +00:00
|
|
|
with d3
|
|
|
|
|
|
|
|
#stop music fadeout 1
|
|
|
|
|
2024-04-01 20:52:01 +00:00
|
|
|
hide heal_animation onlayer screens
|
2023-11-16 16:53:29 +00:00
|
|
|
if poof_label is not None:
|
2024-04-01 20:36:21 +00:00
|
|
|
call expression poof_label
|
2024-04-01 20:52:01 +00:00
|
|
|
show teleport_ani onlayer screens zorder teleport_zorder:
|
|
|
|
anchor (0.5, 0.7)
|
|
|
|
pos teleport_pos
|
|
|
|
zoom 0.5
|
2022-05-16 23:48:22 +00:00
|
|
|
with d5
|
|
|
|
|
2024-04-01 20:52:01 +00:00
|
|
|
hide teleport_animation onlayer screens
|
2022-05-16 23:48:22 +00:00
|
|
|
with d5
|
|
|
|
|
|
|
|
if effect == True:
|
|
|
|
pause 1
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
# Dummy labels. To prevent crashes. # TODO: Remove later.
|
|
|
|
default hermione_action = None
|
|
|
|
|
|
|
|
label set_her_action(action=None, update=None):
|
|
|
|
$ hermione_action = action
|
2024-04-01 20:52:01 +00:00
|
|
|
return
|