summaryrefslogtreecommitdiff
path: root/game/rooms/test/exit_to_corridor.esc
diff options
context:
space:
mode:
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.")