Part 4: adding the skillbook to a vendor

From Divinity Engine Wiki
Revision as of 16:53, 18 September 2017 by Jbotteram (talk | contribs)
Jump to: navigation, search

This article is part of a 4-part series on how to create, edit and use a new skill.

Part 1: creating a new skill
Part 2: creating a skill from existing
Part 3: creating and using a skillbook
Part 4: adding the skillbook to a vendor

The data used in this article was created in parts 1 & 2 of the series.


Description

Vendors are NPC characters that buy or sell items. In order to assign our skillbook to a vendor npc, we will need to do a couple of things:

  1. Create a treasure table
  2. Create a vendor
  3. Add the treasure table to the vendor



Setting up a vendor

Step 1: Creating a treasure table


Step 2: Creating a vendor


Step 3: Adding the treasure table to the vendor


Troubleshooting

Several things can cause a skillbook to not show up on a vendor's sell list:

  • The item was not generated out of that treasure table
    Items in treasure tables are randomly generated, if an item does not show up it might just be bad RNG!
  • The "Story Item" flag is checked in the skillbook properties