From 51d7486327a26f2000aed0050d450bd9764b703c Mon Sep 17 00:00:00 2001 From: Jared Date: Tue, 19 Feb 2019 19:05:23 -0700 Subject: [PATCH 1/2] documentation about equipment parameter for npcs --- docs/building/npcs.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/building/npcs.md b/docs/building/npcs.md index c26b48b..e49a40e 100644 --- a/docs/building/npcs.md +++ b/docs/building/npcs.md @@ -22,6 +22,9 @@ In Ranvier all NPCs for an area are defined in a single file within the area fol keywords: ["wise", "old", "man"] name: "Wise Old Man" description: "A wise looking old man sits on the ground with legs crossed." + equipment: + head: "a duffy old hat" + wield: "a wiry old walking stick" - id: 3 keywords: ["dummy", "target", "practice"] level: 2 @@ -71,5 +74,8 @@ behavior. (See [Scripting](scripting.md) for creating behaviors) `items` _`array`_ : List of Entity References representing the NPC's default inventory +`equipment` _`object`_ +: List of Entity References with the appropriate slot string as object key + `quests` _`array`_ : List of Entity References representing the quests that this character gives out (See [Quests](quests.md)) From 975efed503c30c326959c5b2f93946a66997864e Mon Sep 17 00:00:00 2001 From: Jared Date: Wed, 20 Feb 2019 10:48:14 -0700 Subject: [PATCH 2/2] takes an entityReference --- docs/building/npcs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/building/npcs.md b/docs/building/npcs.md index e49a40e..9b1c759 100644 --- a/docs/building/npcs.md +++ b/docs/building/npcs.md @@ -23,8 +23,8 @@ In Ranvier all NPCs for an area are defined in a single file within the area fol name: "Wise Old Man" description: "A wise looking old man sits on the ground with legs crossed." equipment: - head: "a duffy old hat" - wield: "a wiry old walking stick" + head: "Area:duffy-old-hat" #takes an entityReference + wield: "Area:twisted-walking-stick" - id: 3 keywords: ["dummy", "target", "practice"] level: 2