This plugins adds a custom skill, which allows a unit to attack twice in one turn. It works similar to a normal attack, but once you select the weapon and the target, you can choose again for a weapon and a target.
Both the weapons and the targets can be repetad, or you can choose to change either of them. For example: first attack is with Iron Sword to Enemy A, and second attack is with the same Iron Sword against Enemy B.
To make a unit be able to use this command, you need to assing a custom skill with the keyword "DoubleAttack". If the keyword is already used by some other plugin or you want to use a different keyword, you can change it in the _settings.js file
Also, you need to specify which weapon types are compatible with the skill. This means that the skill can only be used with weapons beloning to one of these weapon types. To do this, you need to use custom parameters on said skill. For example:
{ weaponTypes: [ {id: 1, category: 0}, {id: 2, category: 0} ] }
In this example, assuming that the project uses default data, this skill would be only compatible with the weapon types Lance and Axe.
There are some things you can change in the _settings.js file: