WTS/game/scripts/rooms/main_room/objects/door.rpy
LoafyLemon 9d76d6088f Engine, Wheel menu, intro, bug fixes
* Added IfExpr Action.
* Added string evals for If func.
* Added reset_action method for RoomObject class.
* Added new actions appropriate for room relevant objects.
* Fixed a potential issue with reset_variables method within Events class.
* Fixed single button radius calculation in wheel menu
* Fixed crash if a null list of actions was supplied to create_wheelmenu method.
* Converted intro to use wheel menu actions.
* Split existing room object labels where it made sense.
2024-04-22 18:11:01 +01:00

64 lines
2.6 KiB
Plaintext

label examine_door:
if not states.gen.ev.intro.door_examined:
$ states.gen.ev.intro.door_examined = True
$ door_OBJ.idle = "door_idle"
$ door_OBJ.action = Jump("examine_door")
call gen_chibi("stand","door","base")
with d5
gen "A sturdy-looking door..." ("base", xpos="far_left", ypos="head")
gen "I wonder what's behind it." ("base", xpos="far_left", ypos="head")
label examining_the_door:
menu:
"-Knock on the door-":
show screen blktone
with d3
play sound "sounds/knocking.ogg"
"*Knock-knock-knock*"
"..................."
hide screen blktone
with d3
gen "No reply..." ("base", xpos="far_left", ypos="head")
"-Put your ear on it-":
show screen blktone
with d3
nar "You put your ear on the door and listen intently..."
gen "I don't hear anything." ("base", xpos="far_left", ypos="head")
hide screen blktone
with d3
"-Kick the door-":
show screen blktone
with d3
play sound "sounds/kick.ogg"
pause.2
with hpunch
"*Thump!*"
play sound "sounds/MaleGasp.ogg"
gen "Blimey! That hurts!" ("angry", xpos="far_left", ypos="head")
".............................."
hide screen blktone
with d3
gen "This door could take a thousand kicks and it still wouldn't break..." ("base", xpos="far_left", ypos="head")
"-Smell the door-":
show screen blktone
with d3
play sound "sounds/sniff.ogg"
gen "...{w} Smells like a door..." ("base", xpos="far_left", ypos="head")
hide screen blktone
with d3
"-Leave it alone-":
gen "Who knows what kind of dangers could be lurking behind that door?" ("base", xpos="far_left", ypos="head")
gen "I think I'll let it be for now..." ("base", xpos="far_left", ypos="head")
call gen_chibi("sit_behind_desk")
with d3
else:
gen "I should leave this door alone for now." ("base", xpos="far_left", ypos="head")
jump main_room_menu
label door:
gen "I don't know what's waiting for me behind this door." ("base", xpos="far_left", ypos="head")
gen "It might be wiser to stay put for now..." ("base", xpos="far_left", ypos="head")
jump main_room_menu