From a4593d5bfbd9c3b1e892f79ab33f87eaf61bae49 Mon Sep 17 00:00:00 2001 From: George Karfakis Date: Mon, 1 Jan 2024 19:46:22 +0200 Subject: [PATCH 1/2] Initial (and probably final) commit --- data/json/npcs/computers/TALK_MSU14.json | 34 +++++++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/data/json/npcs/computers/TALK_MSU14.json b/data/json/npcs/computers/TALK_MSU14.json index edc6b4f846dc0..3fa05a8e9bc04 100644 --- a/data/json/npcs/computers/TALK_MSU14.json +++ b/data/json/npcs/computers/TALK_MSU14.json @@ -41,7 +41,7 @@ "success": { "topic": "MSU14_UNIT_ACCESS" }, "failure": { "topic": "MSU14_HACK_FAILURE" } }, - { "text": "Browse stored documents.", "topic": "MSU14_DOCS" }, + { "text": "Browse stored documents.", "topic": "MSU14_PRE_DOCS" }, { "text": "Log Off", "topic": "TALK_DONE" } ] }, @@ -59,17 +59,43 @@ }, { "type": "talk_topic", - "id": "MSU14_DOCS", + "id": "MSU14_PRE_DOCS", "dynamic_line": "&Listing all saved files:\nA. P-144MS TALON UGV platform - Generative optimizations", "responses": [ { "text": "View and print the Talon Schematics.", - "topic": "MSU14_DOCS", - "effect": [ { "u_spawn_item": "schematics_secubot", "count": 1 } ] + "topic": "MSU14_DOCS_SUCCESS", + "condition": { "not": { "u_has_var": "msu14_printed_docs", "type": "computer", "context": "hacking", "value": "yes" } } + }, + { + "text": "View and print the Talon Schematics.", + "topic": "MSU14_DOCS_FAILURE", + "condition": { "u_has_var": "msu14_printed_docs", "type": "computer", "context": "hacking", "value": "yes" } }, { "text": "Return.", "topic": "MSU14_MAIN" } ] }, + { + "type": "talk_topic", + "id": "MSU14_DOCS_SUCCESS", + "dynamic_line": "&Printing...", + "responses": [ + { + "text": "Return.", + "topic": "MSU14_MAIN", + "effect": [ + { "u_spawn_item": "schematics_secubot", "count": 1 }, + { "u_add_var": "msu14_printed_docs", "type": "computer", "context": "hacking", "value": "yes" } + ] + } + ] + }, + { + "type": "talk_topic", + "id": "MSU14_DOCS_FAILURE", + "dynamic_line": "&ERROR: Schematic access denied - too many requests.\nPlease contact the system administrator.", + "responses": [ { "text": "Return.", "topic": "MSU14_MAIN" } ] + }, { "type": "talk_topic", "id": "MSU14_HACK_FAILURE", From cbf7e82ea550e610d280f24cc318a7d0dcfb68e2 Mon Sep 17 00:00:00 2001 From: George Karfakis Date: Mon, 1 Jan 2024 20:54:18 +0200 Subject: [PATCH 2/2] ellipsis --- data/json/npcs/computers/TALK_MSU14.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/json/npcs/computers/TALK_MSU14.json b/data/json/npcs/computers/TALK_MSU14.json index 3fa05a8e9bc04..a1ce909befdcc 100644 --- a/data/json/npcs/computers/TALK_MSU14.json +++ b/data/json/npcs/computers/TALK_MSU14.json @@ -78,7 +78,7 @@ { "type": "talk_topic", "id": "MSU14_DOCS_SUCCESS", - "dynamic_line": "&Printing...", + "dynamic_line": "&Printing…", "responses": [ { "text": "Return.",