From a226d72e51eecb768b13600303f73483118d9104 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 10 Jun 2026 01:48:28 -0400 Subject: feat: implemented janky object interaction model --- data/behaviors/guard_talk.yaml | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 data/behaviors/guard_talk.yaml (limited to 'data/behaviors/guard_talk.yaml') diff --git a/data/behaviors/guard_talk.yaml b/data/behaviors/guard_talk.yaml new file mode 100644 index 0000000..e83f2e2 --- /dev/null +++ b/data/behaviors/guard_talk.yaml @@ -0,0 +1,52 @@ +id: guard_talk +type: talk +nodes: + start: + message: "\"Halt! This area is restricted.\" The guard eyes you suspiciously." + options: + - text: "\"What's behind that gate?\"" + goto: about_gate + - text: "\"I have copper ore.\"" + goto: trade_ore + condition: + has_item: copper_ore + - text: "\"I have a pass.\"" + goto: has_pass + condition: + flag: got_pass + value: true + - text: "\"Goodbye.\"" + end: true + about_gate: + message: "\"Supplies. Weapons. Things you don't need to worry about.\" He shifts his weight. \"Tell you what — bring me some copper ore and I'll stamp you a pass.\"" + action: + set_flags: + talked_to_guard: true + options: + - text: "\"I'll be back.\"" + end: true + - text: "\"I have some right here.\"" + goto: trade_ore + condition: + has_item: copper_ore + - text: "\"Goodbye.\"" + end: true + trade_ore: + message: "\"Good quality ore. This'll do.\" He stamps a slip of paper and hands it to you. \"That's your pass. Don't lose it.\"" + action: + take_item: copper_ore + give_item: pass_stub + set_flags: + got_pass: true + talked_to_guard: true + options: + - text: "\"Thanks.\"" + end: true + has_pass: + message: "\"Let me see that...\" He examines your pass and nods. \"Alright, I'll open the gate for you.\"" + action: + set_flags: + gate_open: true + options: + - text: "\"Thanks.\"" + end: true -- cgit v1.2.3