WTS/game/scripts/rooms/main_room/objects/desk.rpy

89 lines
2.9 KiB
Plaintext
Raw Normal View History

label examine_desk:
if not states.gen.ev.intro.desk_examined:
$ states.gen.ev.intro.desk_examined = True
$ desk_OBJ.idle = "ch_gen sit_behind_desk"
$ desk_OBJ.action = Jump("examine_desk")
call bld
gen "A desk of some sort..." ("base", xpos="far_left", ypos="head")
gen "And a letter..." ("base", xpos="far_left", ypos="head")
gen "Mailed to a certain \"Albus Dumbledore\"." ("base", xpos="far_left", ypos="head")
menu:
gen "Should I open it?" ("base", xpos="far_left", ypos="head")
"-Read the letter-":
call bld
gen "Of course I will!" ("grin", xpos="far_left", ypos="head")
"-Leave it be-":
call bld
gen "Hell no!" ("angry", xpos="far_left", ypos="head")
gen "Of course I will read it!" ("grin", xpos="far_left", ypos="head")
# First letter from Hermione
$ desk_OBJ.foreground = None
$ letter_hg_1.open()
gen "*Ehm*........." ("base", xpos="far_left", ypos="head")
gen "What?" ("base", xpos="far_left", ypos="head")
gen "................................." ("base", xpos="far_left", ypos="head")
else:
gen "I've already checked the desk." ("base", xpos="far_left", ypos="head")
jump main_room_menu
2022-05-16 23:48:22 +00:00
label paperwork:
if letter_work_report in mailbox.get_letters():
gen "(I need to get paid first.)" ("base", xpos="far_left", ypos="head")
2022-05-16 23:48:22 +00:00
jump main_room_menu
call weather_sound
if not renpy.music.is_playing("weather"):
call music_block
else:
stop music fadeout 1.0
call gen_chibi("paperwork")
with d3
nar "You do some paperwork."
2022-05-16 23:48:22 +00:00
call paperwork_progress_chapter
2024-04-25 19:14:25 +00:00
if not states.env.daytime and (states.env.day % 7 == 0):
call paperwork_progress_chapter("The Full moon makes you feel vastly more productive.\n", bonus=2)
2024-04-25 19:14:25 +00:00
if not states.env.daytime and (states.env.day % 7 == 3):
call paperwork_progress_chapter("The half moon makes you feel more productive.\n")
2022-05-16 23:48:22 +00:00
call gen_chibi("sit_behind_desk")
if states.env.daytime:
2022-05-16 23:48:22 +00:00
jump night_start
else:
jump day_start
label paperwork_report_check:
# Check if a report was completed
if states.paperwork_chapters >= 4:
nar "You've completed a report."
$ states.paperwork_chapters = 0
$ states.paperwork_reports += 1
$ states.paperwork_reports_times += 1
2022-05-16 23:48:22 +00:00
return
label paperwork_progress_chapter(message="", bonus=1):
$ states.paperwork_chapters += bonus
2022-05-16 23:48:22 +00:00
call notes
if states.paperwork_chapters == 1:
"[message]You finished one chapter so far."
2022-05-16 23:48:22 +00:00
else:
"[message]You finished {number=states.paperwork_chapters} chapters so far."
2022-05-16 23:48:22 +00:00
call paperwork_report_check
return
screen gui_tooltip(img=None, xx=335, yy=210):
add img xpos xx ypos yy
zorder 3