aboutsummaryrefslogtreecommitdiff
path: root/worldbuilding_guide/mobs.md
blob: a025e8630951de323d61f377a8194535774b0436 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
## Mobs

Basic combat mob:
```yaml
id: "man"
name: "man"
description: "A shabby-looking man."
attack: 1
strength: 1
defense: 1
hp: 7
speed: 5
aggressive: false
respawn_ticks: 30
drops:
  remains: "bones"             # always dropped on death
  loot:
    - item_id: "credits"
      weight: 98
      quantity: 10
    - item_id: "credits"
      weight: 2
      quantity: 150
idle_descriptions:
  - "scribbles something in a small notebook"
  - "gazes skyward at the clouds"
combat_descriptions:
  - "is engaged in a fight to the death with %s"
```

Mob with a behavior — can be talked to, toggled, etc:
```yaml
id: "guard"
name: "Guard"
behavior: guard_talk          # links to data/behaviors/guard_talk.yaml
unique: true                  # displays as "Guard" not "a guard"
protected: true               # cannot be attacked
attack: 5
strength: 5
defense: 5
hp: 30
speed: 5
aggressive: false
respawn_ticks: 60
idle_descriptions:
  - "scans the area with a watchful eye"
  - "adjusts the grip on his weapon"
```

Note: `wander_rooms` and `wander_interval` are NOT set on the mob definition. Wander config
is per-instance in the room YAML (see Rooms > Mobs section above).

---