aboutsummaryrefslogtreecommitdiff
path: root/building_guide/behaviors.md
diff options
context:
space:
mode:
Diffstat (limited to 'building_guide/behaviors.md')
-rw-r--r--building_guide/behaviors.md11
1 files changed, 2 insertions, 9 deletions
diff --git a/building_guide/behaviors.md b/building_guide/behaviors.md
index 22e97fe..438e859 100644
--- a/building_guide/behaviors.md
+++ b/building_guide/behaviors.md
@@ -3,11 +3,12 @@
Behaviors are **inline configs** placed directly inside object YAML (`gather:`, `talk:`,
`use:`, `safespot:`) or mob YAML (`talk:`). Each section below shows the keys you can use under each behavior type.
+The examples below are object/mob files; remember **the filename is the ID** — don't include an `id:` field (see `objects.md` / `mobs.md`).
+
### Gather (mining, fishing, woodcutting)
Mining — per-drop depletion on a rock object:
```yaml
-id: copper_rock
name: copper rock
color: "178"
gather:
@@ -41,7 +42,6 @@ index to match its display color. Gradients also work: `{g:196,82}text{/}`.
Non-depleting gather (fishing on a fishing spot object):
```yaml
-id: bait_fishing_spot
name: fishing spot
gather:
skill: fishing
@@ -66,7 +66,6 @@ gather:
Woodcutting with shared depletion and bird's nests:
```yaml
-id: oak_tree
name: oak tree
color: "113"
gather:
@@ -95,7 +94,6 @@ gather:
Regular tree — always depletes on first gather, no shared timer, no nests:
```yaml
-id: tree
name: tree
gather:
skill: woodcutting
@@ -189,7 +187,6 @@ Talk configs go under the `talk:` key on objects or mobs. Full conversation with
conditions, actions, and player flag tracking:
```yaml
-id: guard
name: Guard
talk:
nodes:
@@ -308,7 +305,6 @@ When the player leaves the shop, they return to the talk node's options.
Full example — General Store:
```yaml
-id: general_store_clerk
name: General Store Clerk
talk:
nodes:
@@ -346,7 +342,6 @@ Entries with no `item` field are bare interactions triggered by "use"
or "push"/"pull":
```yaml
-id: iron_gate
name: iron gate
hidden: true
description: "A heavy iron gate set into the north wall."
@@ -363,7 +358,6 @@ use_interactions:
Item-specific interaction:
```yaml
-id: bookshelf
name: bookshelf
use_interactions:
- item: dusty_tome
@@ -378,7 +372,6 @@ use_interactions:
Use configs go under the `use:` key on objects (e.g. furnaces, ranges):
```yaml
-id: furnace
name: furnace
color: "208"
use: