Customizing Crafting Categories

From the CreationKit Wiki
Revision as of 14:22, 6 September 2012 by imported>Herko ter Horst (→‎Keyword)
Jump to navigation Jump to search

Introduction

Crafting categories, shown in-game when the player uses a crafting station such as a forge, are a way for the player to identify the material or type of item that will be crafted. Although some aspects of these categories are hard-coded, it is possible to customize them to a large degree.

Background

Categories consist of four components:

Game Setting

The Game Setting is a key that provides access to a value. For categories, the value is a String that represents the label of the category. Game settings are part of the game and their keys can not be modified. Which game settings are used as categories is hard-coded in the game as well. This means the number of categories is limited by the game itself and cannot be modified using the Creation Kit.

Label

This is the text that appears in-game to identify the category. For example: IRON, STEEL, IMPERIAL, JEWELRY. Note that all of the labels in the English version of the game are in uppercase. This is not a requirement. In fact, the Dawnguard DLC adds a custom category label 'Aetherium' spelt with a single capital 'A'.

Default Object

Default Objects are permanent objects that the programs needs to access reliably. Some of the Default Objects are of the type 'keyword', meaning they point to Keyword objects in the Creation Kit. Although the list of Default Objects is determined by the game and cannot be modified, it is possible to modify the Keyword object each Default Object points to. There are a number of Default Object keywords that represent crafting materials/categories.

Keyword

A Keyword is a named object that can be added to most other objects. We can modify the list of Keywords using the Creation Kit. Through the use of Keywords we can make sure items such as armor and weapons appear in the correct category. This only works for Keywords pointed to by a Default Object.

Default category definitions

The game defines the crafting categories through a hard-coded mapping between Default Objects and Game Settings. This mapping cannot be changed. However, we can change the label for each Game Setting and the Keyword for each Default Object. The table below shows the default configuration. The white columns can be modified using the Creation Kit, the grey columns are hard-coded in the game.

Label Game Setting Default Object Keyword
DAEDRIC sDaedric Keyword - Armor Material Daedric ArmorMaterialDaedric
DRAGON sDragon Keyword - Armor Material DragonboneDG

Keyword - Armor Material Dragonplate
Keyword - Armor Material Dragonscale

DLC1WeapMaterialDragonboneDG

ArmorMaterialDragonplate
ArmorMaterialDragonscale

STUDDED sStudded Keyword - Armor Material Studded ArmorMaterialStudded