-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffice.yaml
125 lines (111 loc) · 3.8 KB
/
office.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
rooms:
- name: office
states:
- name: default
long: A boring looking tech company's office. Seems like you've been here before, but it just looks the same as any other one.
short: A large empty room with a corner `desk`
imageUrl: office/rooms/office-chest-closed.jpg
actions:
- match: smell
always:
reply: A musty smell of industrial carpet and cigarette smoke fills the room.
- match: atov/i
always:
reply: You say ATOV to noone in particular. Maybe you need to look for something else?
# goto without any conditions
- match: teleport attic
always:
reply: you click your heels and find yourself in the attic
goto: attic
# nested goto
- match: open cupboard
always:
reply: you found a cupboard door and pull it open
goto: cupboard
- match: smash window
always:
reply: you throw rock at the window
- match: use matches (on|with) lamp
if:
all:
- matches.has = true
then:
reply: You light the lamp with the matches
setProps:
- lamp.lit = true
else:
reply: you don't have any matches
# ----------- items -----------
items:
- name: matches
called: box of matches|lighter
state: ready
canTake: true
states:
- name: default
short: an old box of matches
- name: soap
called: bar of soap
canTake: true
states:
- name: default
short: a bar of soap
- name: lamp
called: light|lamp
state: default
canTake: true
states:
- name: default
short: a basic light
- name: lit
short: a lamp casting light on the rooms
- name: desk
states:
- name: default
imageUrl: office/rooms/office-chest-closed.jpg
short: A messy desk
long: "A messy desk. There's a post it `note` with some letters scrawled on it. \n
There's an antique looking `chest` under the desk. \n
:mag: <https://cbg.rik.ai/rooms/office|click here to look around>"
- name: note
states:
- name: default
short: There seem to be a sequence of letters
imageUrl: office/items/note-sm.png
- name: read
short: "You've seen it before. The letters ATOV don't mean much"
imageUrl: items/note-sm.png
- name: chest
state: locked
states:
- name: locked
short: A locked chest
long: The chest is locked with an old fashioned looking combination lock.
imageUrl: office/items/chest-closed.png
- name: open
short: the chest is open and you can see a large key inside
imageUrl: office/items/chest-open-key.png
- name: empty
imageUrl: office/items/chest-open-empty.jpg
short: A large chest. It's open, but you can't see anything inside.
- name: lock
state: locked
states:
- name: locked
short: An unusual looking combination lock. It seems to use lettters rather than numbers.
imageUrl: office/items/combolock-closed-sm.png
- name: unlocked
short: you opened the lock!
imageUrl: office/items/combolock-open-sm.png
- name: key
states:
- name: default
short: ...
- name: holding-key
short: The key looks like it could open a door somewhere...
- name: door
states:
- name: locked
short: The door is locked.
- name: unlocked
short: the door is unlocked.