Thats easy. make an item based on Tome of Health, but instead giving 50hp, modify its ability to give only 1 hp. Save the Beastmaster strenght as a variable. Like "Set(integerpigealth) = Strenght of Beastmaster 0001 <gen>", then create "integerpigealth" tomes, and give it to the pig. (Dont foget to give an unit inventroy for the pig)