Combat Arts


Version 3.0
Last update: September 5, 2021

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: combat arts can only be done by player-controlled units. AI units can't use them.
IMPORTANT: if you are using the Custom Unit Menu Window plugin, make sure to update it to version 2.4 or better before using this plugin.

Attack and action 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.

How to create a combat art

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:

How to create Original Data

Custom parameters

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}.

Stamina stat

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 have integer values. Most of them are used for units and classes, but some of them can be used on items too.

Stamina event commands

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:

How to assign combat arts to units

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:

Plugin customization

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. This is the file that you'll need to edit to enable the Stamina stat.