Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation about equipment parameter for npcs #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/building/npcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value here should be an entityReference, not an arbitrary string

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated!

wield: "a wiry old walking stick"
- id: 3
keywords: ["dummy", "target", "practice"]
level: 2
Expand Down Expand Up @@ -71,5 +74,8 @@ behavior. (See [Scripting](scripting.md) for creating behaviors)
`items` _`array<EntityReference>`_
: List of Entity References representing the NPC's default inventory

`equipment` _`object<EntityReference>`_
: List of Entity References with the appropriate slot string as object key

`quests` _`array<EntityReference>`_
: List of Entity References representing the quests that this character gives out (See [Quests](quests.md))