From c55d0e4150b23f2c5c9f96bbc3d4dc2fc6dbaa36 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 19:37:20 -0400 Subject: feat: yaml conversation trees more robust --- data/mobs/examples/sawmill_operator.yaml | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 data/mobs/examples/sawmill_operator.yaml (limited to 'data/mobs/examples/sawmill_operator.yaml') diff --git a/data/mobs/examples/sawmill_operator.yaml b/data/mobs/examples/sawmill_operator.yaml new file mode 100644 index 0000000..b70362f --- /dev/null +++ b/data/mobs/examples/sawmill_operator.yaml @@ -0,0 +1,50 @@ +color: "186" +description: A burly worker in a thick apron, covered in sawdust. He operates the industrial sawmill. +idle: The sawmill operator wipes sawdust from his goggles. +name: sawmill operator +protected: true +talk: + nodes: + goodbye: + message: Come back anytime you need more planks! + prices: + message: |- + Here's what I charge per log: + Regular logs: 5 credits + Oak logs: 10 credits + Teak logs: 20 credits + Mahogany logs: 40 credits + + Want me to process your logs? + options: + - condition: + any_of: + - has_item: logs + - has_item: oak_logs + - has_item: teak_logs + - has_item: mahogany_logs + goto: process + text: Yes, process all my logs. + - goto: goodbye + text: No thanks. + process: + action: + sawmill: true + message: "" + start: + message: Welcome to the lumberyard! I can turn your logs into planks — for a small fee, of course. What can I do for ya? + options: + - condition: + any_of: + - has_item: logs + - has_item: oak_logs + - has_item: teak_logs + - has_item: mahogany_logs + goto: prices + text: Turn all my logs into planks. + - goto: prices + text: What are your prices? + - goto: goodbye + text: Nothing for now. +unique: true +size: small -- cgit v1.2.3