summaryrefslogtreecommitdiff
path: root/game/rooms/test/exit_to_corridor.esc
diff options
context:
space:
mode:
authorRadio <radiohotline@disroot.org>2026-06-26 16:47:44 +0300
committerRadio <radiohotline@disroot.org>2026-06-26 16:47:44 +0300
commit6d53d8cac78250dc888aa49d5f9d4175c6652feb (patch)
treef7f625e260ecc03fa5f4949495f96cdb6c35a0fb /game/rooms/test/exit_to_corridor.esc
parent9d74b49ab62908d4acf53dde444413886b8b28e5 (diff)
i forgotHEADmain
Diffstat (limited to 'game/rooms/test/exit_to_corridor.esc')
-rw-r--r--game/rooms/test/exit_to_corridor.esc14
1 files changed, 14 insertions, 0 deletions
diff --git a/game/rooms/test/exit_to_corridor.esc b/game/rooms/test/exit_to_corridor.esc
new file mode 100644
index 0000000..0415c24
--- /dev/null
+++ b/game/rooms/test/exit_to_corridor.esc
@@ -0,0 +1,14 @@
+:use
+ if $bedroom_key in inventory:
+ say($weener, "i might have the key for this")
+ else:
+ say($weener, "it's locked")
+
+:use bedroom_key
+ say($weener, "unlocked")
+ inventory_remove("bedroom_key")
+ set_global("bedroom_door_unlocked", true)
+
+:exit_scene
+ if bedroom_door_unlocked:
+ say($weener, "I'm leaving now.")