aboutsummaryrefslogtreecommitdiff
path: root/data/mobs/examples/general_store_clerk.yaml
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 19:37:20 -0400
committerhistoria <[not public]>2026-06-25 19:37:20 -0400
commitc55d0e4150b23f2c5c9f96bbc3d4dc2fc6dbaa36 (patch)
treed1c02acea2b4c8d0f672c1539cfdb373b6272ed0 /data/mobs/examples/general_store_clerk.yaml
parent068ce514ea3eebdc42b595c631b4b00ce4594577 (diff)
downloadthehouseoficarus-c55d0e4150b23f2c5c9f96bbc3d4dc2fc6dbaa36.tar.gz
feat: yaml conversation trees more robust
Diffstat (limited to 'data/mobs/examples/general_store_clerk.yaml')
-rw-r--r--data/mobs/examples/general_store_clerk.yaml70
1 files changed, 70 insertions, 0 deletions
diff --git a/data/mobs/examples/general_store_clerk.yaml b/data/mobs/examples/general_store_clerk.yaml
new file mode 100644
index 0000000..8a07191
--- /dev/null
+++ b/data/mobs/examples/general_store_clerk.yaml
@@ -0,0 +1,70 @@
+aggressive: false
+attack: 1
+attack_type: crush
+crush_defense: 0
+defense: 1
+description: A friendly merchant with a tidy apron, standing behind a well-stocked counter.
+hp: 50
+idle_descriptions:
+ - arranges items on the shelves
+ - polishes the counter
+ - counts credits in the register
+ - greets a passerby with a nod
+name: Shopkeeper
+protected: true
+ranged_defense: 0
+respawn_ticks: 30
+science_defense: 0
+slash_defense: 0
+speed: 5
+stab_defense: 0
+strength: 1
+talk:
+ nodes:
+ shop:
+ action:
+ shop:
+ items:
+ - buy_price: 10
+ item_id: fishing_rod
+ sell_price: 2
+ - buy_price: 2
+ item_id: fishing_bait
+ sell_price: 0
+ - buy_price: 10
+ item_id: matches
+ sell_price: 2
+ - buy_price: 40
+ item_id: firesteel
+ sell_price: 10
+ - buy_price: 30
+ item_id: lighter
+ sell_price: 7
+ - buy_price: 20
+ item_id: hammer
+ sell_price: 5
+ - buy_price: 10
+ item_id: knife
+ sell_price: 2
+ - buy_price: 10
+ item_id: chisel
+ sell_price: 2
+ - buy_price: 10
+ item_id: bread
+ sell_price: 2
+ - buy_price: 20
+ item_id: bowstring
+ sell_price: 5
+ message: What would you like to buy or sell?
+ message: '"Take your time. What can I get you?"'
+ options:
+ - goto: start
+ text: '"I''m done."'
+ start:
+ message: '"Welcome to the General Store! Need any supplies?"'
+ options:
+ - goto: shop
+ text: '"I''d like to browse."'
+ - text: '"Goodbye."'
+unique: true
+size: small