aboutsummaryrefslogtreecommitdiff
path: root/data/objects/tutorial_lever.yaml
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-09 19:29:17 -0400
committerhistoria <[not public]>2026-07-09 19:29:17 -0400
commitb3d4c616f59ad2519f3a0b77e3b47d6571cd2486 (patch)
tree6f1f6a314e0550da68264a79381fc269db803312 /data/objects/tutorial_lever.yaml
parent18c7af94b30c2767b6633d050324c1db34074ce2 (diff)
downloadthehouseoficarus-b3d4c616f59ad2519f3a0b77e3b47d6571cd2486.tar.gz
feat: message actions are now sequences of messages with settable delays
Diffstat (limited to 'data/objects/tutorial_lever.yaml')
-rw-r--r--data/objects/tutorial_lever.yaml44
1 files changed, 24 insertions, 20 deletions
diff --git a/data/objects/tutorial_lever.yaml b/data/objects/tutorial_lever.yaml
index 9c105ba..371e70b 100644
--- a/data/objects/tutorial_lever.yaml
+++ b/data/objects/tutorial_lever.yaml
@@ -1,22 +1,26 @@
-name: stone lever
-color: "FA"
-hidden: true
-inroom_description: "A stone lever protrudes from the base of the rock formation."
+color: FA
description:
- - text: "A weathered stone lever set into a metal bracket. It looks like it can be pulled."
+ - text: A weathered stone lever set into a metal bracket. It looks like it can be pulled.
+hidden: true
+inroom_description: A stone lever protrudes from the base of the rock formation.
+name: stone lever
on_use:
- - condition:
- player_flag: unlocked_rock_cover
- value: 1
- not: true
- message: "You pull the stone lever down. A mechanism clicks into place somewhere in the glade."
- action:
- set_player_flags:
- unlocked_rock_cover: 1
- - condition:
- player_flag: unlocked_rock_cover
- value: 1
- message: "You push the stone lever back up. The mechanism disengages with a soft clunk."
- action:
- set_player_flags:
- unlocked_rock_cover: 0
+ - action:
+ messages:
+ - delay: 0
+ message: You pull the stone lever down. A mechanism clicks into place somewhere in the glade.
+ set_player_flags:
+ unlocked_rock_cover: 1
+ condition:
+ not: true
+ player_flag: unlocked_rock_cover
+ value: 1
+ - action:
+ messages:
+ - delay: 0
+ message: You push the stone lever back up. The mechanism disengages with a soft clunk.
+ set_player_flags:
+ unlocked_rock_cover: 0
+ condition:
+ player_flag: unlocked_rock_cover
+ value: 1