Not sure if these will work out of a campaign, but you may try saveStatus with a dummy unit before your mission ends and then try to recover the value in the outro with loadStatus as long as you have there the dummy unit with same name. To transfer a numeric value, you may play with the rating or the damage of the dummy unit, after loadState in the outro, check these values of the unit.