Tag editor

From Divinity Engine Wiki
Jump to: navigation, search
TagEditor.png


Description

The tag editor lets you edit the tags in your mod, which can then be added to items and characters for scripting purposes.


Components

TagEditor StepByStep.png

The tag editor with each component numbered

The tag editor consists of the following components:

  1. Name column
  2. Categories column
  3. Description column
  4. Module column
  5. Tooltip key column
  6. Tooltip column
  7. Tags
  8. Filter


Tags

Each row in the Tag Editor grid defines a tag. Greyed out tags are not editable, likely because they are in another project.

To add custom tags in your own project, scroll all the way down and define your tag in the empty row at the bottom. A new empty row is added each time you finish adding a tag.

To delete a custom tag, simply select the row in which it is defined and hit "Delete" on your keyboard.


Columns

Name

The "Name" column specifies the access key of this tag. The name must be unique.


Categories

The "Categories" column specifies the categories (or type) of the tag. To edit the categories, click the "Edit" button on the right of the cell.


Description


Module

The "Module" column specifies the project of the tag. You can only edit tags in your current module. Tags from other modules can be filtered out of the grid.


Tooltip Key

The "Tooltip Key" column specifies the key for the tag tooltip. By default, this is set to tagkey_{TagName}. When tags are saved, a translated string key table is automatically generated for your tags.


Tooltip

The "Tooltip" column shows the content of the generated translated string (see Tooltip Key).


Filtering

There are two options for filtering tags:

  • Hide inherited tags
    Check this option to hide all greyed out tags
  • Filter
    You can type in the filter textbox to filter tags by name


Assigning tags

TagsProperty.png

The tags property on a (local) character template


To assign a property, first open the sidebar and select the local- or roottemplate you want to assign a tag to. Find the "Tags" property and open the custom editor by clicking the [...] button in the property's value column.


TagsAssign StepByStep.png

The Tags property assign window with each component numbered


Then, assign your tag in the custom tag property editor. The tag property editor has the following components:

  1. Tag Dropdown
    In the dropdown you can find all assignable tags
  2. Add button
    Once you have your tag selected in the tag dropdown, you can add it by clicking the Add button
  3. Assigned tags list
    In the assigned tags list you can find all tags that the template has assigned.


You can also remove tags by selecting them and pressing the Remove (-) button.

On local templates, you can view tags inherited from the root template in the "Inherited from root" list.