WTS/game/scripts/rooms/snape_office/objects/candelabra.rpy
LoafyLemon 8aba361ea9 Refactoring + Environment
* Partially sunset `game` var store and move relevant special variables inside `states` store.
* Replace `game.daytime` -> `states.env.daytime`
2024-04-25 19:49:09 +01:00

51 lines
1.9 KiB
Plaintext

label candelabra:
if states.env.daytime:
if not states.map.snape_office.candelabra_examined:
$ states.map.snape_office.candelabra_examined = True
$ snape_office_candelabra_OBJ.set_image("snape_office_candelabra_on")
call gen_chibi("stand_alt", xpos="candelabra", ypos="candelabra")
with d5
gen "That's a lot of candles..." ("base", xpos="far_left", ypos="head")
gen "Yet it doesn't make the room look any more inviting." ("base", xpos="far_left", ypos="head")
call gen_chibi("stand", xpos="door", ypos="base")
with d5
jump quests
else:
$ snape_office_candelabra_OBJ.set_image("snape_office_candelabra_off")
show screen blkfade
with d2
play sound "sounds/fire_woosh.ogg"
if not states.map.snape_office.intro_e2:
gen "..." ("base", xpos="far_left", ypos="head")
gen "I don't know what I expected to happen." ("base", xpos="far_left", ypos="head")
else:
gen "..." ("base", xpos="far_left", ypos="head")
gen "What an unexpected turn of events." ("base", xpos="far_left", ypos="head")
play sound "sounds/fire_woosh.ogg"
$ snape_office_candelabra_OBJ.set_image("snape_office_candelabra_on")
hide screen blkfade
with d9
else:
$ snape_office_candelabra_OBJ.set_image("snape_office_candelabra_off")
show screen blkfade
with d2
play sound "sounds/fire_woosh.ogg"
sna "Why did you do that...?"
gen "Sorry..." ("base", xpos="far_left", ypos="head")
play sound "sounds/fire_woosh.ogg"
$ snape_office_candelabra_OBJ.set_image("snape_office_candelabra_on")
hide screen blkfade
with d9
jump snape_office_menu