This plugin allows you to add "traits" to units and classes, similar to how the "Races" option works. The main difference is that races can only be assigned to classes, while traits can be assigned to units and classes.
In order to display the traits that an unit has, a new window has been added to the unit menu screen.
Because traits are not something that come by default in this engine, we will need to create an Original Data entry for each trait. In order to do this:
Note: all Original Data entries related to traits must be in the same tab. You also need to specify which tab are you going to use in the config-traits.js file.
In the file config-traits.js you can modify some variables. In this plugin there are two variable to modify:
There are several custom parameters that can be used in this script, but all of them work the same way. They are arrays of numbers, where each number is the ID of an Original Data entry. For example: {trait: [2, 3]} or {effTrait: [6]}
Here is the list of custom parameters available to use:
You can create an event command that will add one trait to an unit. To do this, create a Execute Script event command, select the Call Event Command type and, in the Object Name field, write "AddTrait". Then, go to the Original Data tab and select the unit that will obtain the trait. Finally, use the Value 1 field to write the ID of the trait to add.