I think the scripting competition permanently damaged me... clearly this is a one-liner! function le_chevalier tGender,tReal_age return 39 + offset(tGender, "m") * (tReal_age - 39) end le_chevalier > function le_chevalier tGEner,tReal_age > if tGender = "f" then return min(39,tReal_age) > return tReal_age > end le_chevalier