Creating attacks
This section explain how you can create attacks. Creating attacks is necessary to add them to units.
To create an attack choose Menu -> File -> New -> Attack or click the New attack button on the toolbar (identified by a sword). An input dialog is shown. Type here the name of the attack. You can use alphanumeric chars (A-Z, 0-9, a-z), spaces and underscores(_) only. The name should be unique. When you confirm your choice the program scans the library looking for other attacks with the same name. If no other attacks with that name are already stored in your library a panel like the following is opened in the window.

If another attack has the selected name you will be asked to change it. If you choose not to change it when you save the new attack the older one will be overwritten.
The panel conatins one field for each attack field. An overview and the official explanation of fields can be found on the Wesnoth Wiki. Here is reported a brief description of each field following the order used on the panel.
- Damage: represents the damage provoked by each hitting strike;
- Number: the number of times strikes available using this weapon;
- Movement used: how many movement points are used to run an attack with this weapon. All the remaining movement points are used by default. To use the default option choose -1;
- Range: the range of the attack, determines the enemy retaliation which will be of the same range;
- Type: the type of the attack, determines the enemy resistences to this weapon;
- Icon: this image represents the attack in areas like the "choose-attack" menu;
- Specials: this panel contains all the specials. A special is an attack modificator which provokes extra event on hitting strikes. Here follows a brief description of each special, the official descriptions are available on the Wesnoth Wiki:
- Back-stab: works only during the attaking phase (and not while defending); if the attacked unit is in the middle of two units of the same player, the attacker will cause double damage;
- Berserk: the two units get on fighting unitl one dies;
- Charge: works only during the attaking phase (and not while defending), the damages caused and recived are doubled;
- Drain: the unit heals itself by one-third of the damage caused;
- First strike: the unit will always shot the first strike, also during the defending phase;
- Magical: the attack has always a good hitting probability (70%);
- Marksman: works only during the attaking phase (and not while defending), the attacker hitting probability is always at least 60%;
- Plague: when an enemy is killed using this attack a friendly unit takes its place;
- Poison: the first time this attack hits the enemy it gets poisoned. Poisoned units will lose hitpoints at the begining of each turn unitl they get healed or they have only 1 HP left;
- Slow: the first time this attack hits the enemy it gets slowed. Slowed units will cause half damage and their movement points are halved too. The slowing effect works only one round;
- Stone: the first time this attack hits the enemy it gets stoned. Stoned units can't be attacked nor attack or move;
- Swarm: the number of strikes decreases as the unit loses HPs.
Attachments:
- the attack file: [fangs.wwa](https://sourceforge.net/p/wesworkshop/wiki/create_attack/attachment/fangs.wwa), copy it to your library/attacks folder
- the attack icon: [fangs-animal.png](https://sourceforge.net/p/wesworkshop/wiki/create_attack/attachment/fangs-animal.png); copy it to your library/attacks/img folder