aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rooms/intro/1001.yaml20
-rw-r--r--data/triggers/announce_99.yaml6
2 files changed, 23 insertions, 3 deletions
diff --git a/data/rooms/intro/1001.yaml b/data/rooms/intro/1001.yaml
index fd7f2f3..df3b2ab 100644
--- a/data/rooms/intro/1001.yaml
+++ b/data/rooms/intro/1001.yaml
@@ -1,5 +1,10 @@
name: "Inside Transport Shuttle"
-description: "A dim, windowless shuttle interior with a few uncomfortable rows of steel seats facing forward. A large framed sign hangs next to the closed cockpit door. A piston-powered staircase leads down out the back of the small craft with a smiling attendant ready to help disembark."
+description:
+ - text: "A dim, windowless shuttle interior with a few uncomfortable rows of steel seats facing forward. A large framed sign hangs next to the closed cockpit door. The piston-powered staircase is firmly closed at the rear of the craft."
+ condition:
+ player_flag: 1001_touchdown
+ not: true
+ - text: "A dim, windowless shuttle interior with a few uncomfortable rows of steel seats facing forward. A large framed sign hangs next to the closed cockpit door. A piston-powered staircase leads down out the back of the small craft with a smiling attendant ready to help disembark."
objects:
- id: 1001_sign
mobs:
@@ -8,8 +13,8 @@ exits:
down:
room: 1002
condition:
- player_flag: 1001_look_sign
- blocked_message: "The attendant points to the sign and insists you {10}look sign{/} before disembarking."
+ player_flag: 1001_touchdown
+ blocked_message: "The piston-powered staircase is firmly closed."
on_enter:
- condition:
player_flag: 1001_welcome
@@ -28,3 +33,12 @@ on_enter:
not: true
delay: 7
message: "{11}Type{/} {10}help newplayer{/} {11}for the new player's guide. That's it. Explore and have fun.{/}"
+triggers:
+ - on_player_flag: 1001_look_sign
+ steps:
+ - delay: 5
+ message: "The cabin shakes as the small craft touches down"
+ - delay: 5
+ message: "The pistons hiss as the rear staircase opens"
+ - set_player_flags:
+ 1001_touchdown: true
diff --git a/data/triggers/announce_99.yaml b/data/triggers/announce_99.yaml
new file mode 100644
index 0000000..a6f0e9e
--- /dev/null
+++ b/data/triggers/announce_99.yaml
@@ -0,0 +1,6 @@
+# Example global trigger: announces when a player reaches level 99 in any skill.
+# The game code sets the player flag 'announce_99_skill' to the skill name
+# (e.g. "attack", "strength") when a player hits level 99.
+on_player_flag: announce_99_skill
+steps:
+ - broadcast_global: "%p has reached level 99 %v!"