From f47034bdf86e7ddc831ecb8f50689b9b07a0f6ca Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 21 May 2020 12:45:44 +0200 Subject: actually added talk system and removed reply interaction --- content/encyclopediae/npcs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/encyclopediae/npcs.json') diff --git a/content/encyclopediae/npcs.json b/content/encyclopediae/npcs.json index bfaa6fe..4b8fd39 100644 --- a/content/encyclopediae/npcs.json +++ b/content/encyclopediae/npcs.json @@ -79,7 +79,7 @@ "height": 1.5, "flags": ["Occupied"], "components": [ - ["Interactable", {"action": ["interaction", ["reply", "did you say '{}'?"]]}] + ["Talkable", {"text": "Hey there, welcome to Asciifarm"}] ] }, "trader": { -- cgit From 1899b27b791734a6b72e28cfb1420536c6035ee4 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 21 May 2020 15:26:12 +0200 Subject: added exchanger as seperate component/system; refactored other interactions; parameter parsing returns result instead of option --- content/encyclopediae/npcs.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'content/encyclopediae/npcs.json') diff --git a/content/encyclopediae/npcs.json b/content/encyclopediae/npcs.json index 4b8fd39..78dda29 100644 --- a/content/encyclopediae/npcs.json +++ b/content/encyclopediae/npcs.json @@ -86,11 +86,14 @@ "sprite": "human", "height": 1.5, "components": [ - ["Interactable", {"action": ["interaction", ["exchange", ["buy ", { - "pebble": [["radish", "radish"], ["pebble"]], - "radishseed": [["radish"], ["radishseed", "radishseed"]], - "carrotseed": [["radish"], ["carrotseed"]] - }]]]}] + ["Exchanger", { + "prefix": "buy", + "exchanges": ["list", [ + ["list", ["pebble", ["list", ["radish", "radish"]], ["list", ["pebble"]]]], + ["list", ["radishseed", ["list", ["radish"]], ["list", ["radishseed", "radishseed"]]]], + ["list", ["carrotseed", ["list", ["radish"]], ["list", ["carrotseed"]]]] + ]] + }] ] } } -- cgit From 92e437e50498f7705e33a556535ba39a2b918f9d Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 21 Sep 2020 00:59:38 +0200 Subject: made talk and reply a form of interact again --- content/encyclopediae/npcs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/encyclopediae/npcs.json') diff --git a/content/encyclopediae/npcs.json b/content/encyclopediae/npcs.json index 78dda29..661c80d 100644 --- a/content/encyclopediae/npcs.json +++ b/content/encyclopediae/npcs.json @@ -79,7 +79,7 @@ "height": 1.5, "flags": ["Occupied"], "components": [ - ["Talkable", {"text": "Hey there, welcome to Asciifarm"}] + ["Interactable", {"typ": "say", "arg": "Hey there, welcome to Asciifarm"}] ] }, "trader": { -- cgit From e2281d8c6293b311ccc187e3503093a1120e6215 Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 21 Sep 2020 02:32:22 +0200 Subject: exchange is now an interaction again --- content/encyclopediae/npcs.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'content/encyclopediae/npcs.json') diff --git a/content/encyclopediae/npcs.json b/content/encyclopediae/npcs.json index 661c80d..00c45d6 100644 --- a/content/encyclopediae/npcs.json +++ b/content/encyclopediae/npcs.json @@ -86,14 +86,14 @@ "sprite": "human", "height": 1.5, "components": [ - ["Exchanger", { - "prefix": "buy", - "exchanges": ["list", [ + ["Interactable", {"typ": "exchange", "arg": ["list", [ + "buy ", + ["list", [ ["list", ["pebble", ["list", ["radish", "radish"]], ["list", ["pebble"]]]], ["list", ["radishseed", ["list", ["radish"]], ["list", ["radishseed", "radishseed"]]]], ["list", ["carrotseed", ["list", ["radish"]], ["list", ["carrotseed"]]]] ]] - }] + ]]}] ] } } -- cgit