BuildingUnits
From The Battle for Wesnoth Wiki
Making new units is fairly easy. This page will walk you through the creation of a new unit and discuss how you can use it in-game. You should already understand where the game stores its data files and have a text editor handy. You will need to become familiar with WML in order to make a new unit.