blob: 6929606050521f52336b6854e6ded58418391484 (
plain)
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
|
## Objects
Object defined — links to a behavior:
```yaml
id: copper_rock
name: copper rock
color: "178" # xterm-256 color index (0-255)
behavior: mine_copper
```
Tree object:
```yaml
id: oak_tree
name: oak tree
color: "113"
behavior: chop_oak
```
Color accepts xterm-256 indices with optional modifiers (`bold`, `dim`, `underline`) and gradients (`g:196,82`). In ANSI mode, extended colors downgrade to the nearest ANSI color.
Hidden object — doesn't appear in room's object list, only discoverable via description or experimentation:
```yaml
id: iron_gate
name: iron gate
behavior: iron_gate_toggle
hidden: true
props:
description: "A heavy iron gate set into the north wall."
```
Decorative object (no behavior):
```yaml
id: lumby_fountain
name: town fountain
behavior: ""
props:
description: "Clear water sparkles in the sunlight."
```
---
|