This plugin allows you to use Combat Arts, which are special actions or attacks that have additional cost, either with life, weapon uses or the new (and optional) stamina stat.
NOTE: This plugin only works for player-controlled units. AI units can't use combat arts.
As mentioned earlier, they are two types of combat arts: one made for attacks and other for non-offensive actions. The attack combat art will allow the unit to use a weapon and do a special attack, with extra effects, custom range and/or better stats. The action combat art will recreate the use of an item without the need of the unit having said item. Aside from that, they both have an additional cost: weapon uses (for attacks), life and stamina.
To make a combat art, you need to create a new Original Data. If you don't know how to use Original Data, check the instructions below. There are multiple fields that you can write data, but some of them are ignored for the purposes of this plugin.
Here is a list of all the values used and what do each do:
IMPORTANT: all Original Data related to combat arts must be in the same tab. You also need to specify which tab are you going to use in the config.js file. More details can be found below.
In addition to the values explained above, you will also need to write some custom parameters:
Some examples of the use of the custom parameters: {costType: 0, cost: 3, startRange: 1, endRange: 3}, {costType: 1, cost:5, startRange:1, endRange: 1}.
There is an optional stat that can be used for the cost of combat arts, called Stamina. Each unit has current stamina and max stamina, similar to how a unit has current life and max life. The custom parameters determine the value of the max stamina. You can use event commands to alter the stat, and will also be reduced with the use of combat arts. You will also need to use an event command in order to restore to max stamina at the start of each chapter.
By default, it is disabled, if you want to add it you have to change the config.js, as explained below. There are several custom parameters that you can use for this stat. All of them have integer values. Most of them are used for units and classes, but some of them can be used on items too.
There are two event commands for the stamina stat: one called "ChangeStamina" and the other "RestoreAllUnitsStamina". The first will change the stamina of one unit, while the second will restore to max stamina all units of your army. That last part can be useful to trigger at the start of a chapter. In the Execute Script window, you need to change the "Object Name" value to one of the two names mentioned above.
In addition to that, if you are creating a "ChangeStamina" event command, then you also need to change the following values from the Original Data tab:
To assign a combat art to an unit use the custom parameter 'combatArt', which uses an array of the ID's of the combat arts that unit knows. This parameter defines the starting scenario for the unit. If the unit doesn't have the parameter, it wil start the game without combat arts. It can also be used on classes. So you can have the parameter in both the unit and the class and it will merge both lists into one.
For example: {combatArt: [1, 4, 5]}, {combatArt: [2]}.
If you want to assign (or remove) a combat art to an unit during an event, you need to do the following:
You can create consumable items that, when used, will teach the unit a specific combat art. You can also define the prerequisite weapon category for the combat art, for example a bow art that a mage shouldn't be able to learn.
Create an item of type Custom with the keyword "CAItem". Then, add custom parameters to define the combat art to teach and the weapon category prerequisite for the art.
*Optional parameters. If you leave off both optional parameters, then there is no prerequisite and any unit can learn the art.
Example: {teachArt:8, reqCategory:2, staffReq:true} allows units who can use a magic type to learn the combat art with ID 8. Staff users are also eligible.
There are some elements of this plugin that can be modified. For example, you can modify the name of the combat arts unit command. To do this, you need to open the file config.js, you can use any text editor like Notepad. In the file you will find a list of variables, each with a default value. You can change any of them.
Note that among those variables you will find the variable called "TAB_COMBATART", which is needed to specify which tab of the Original Data window you are using for the combat art entries.