Returns the MaskType name, indexed by value (0=Bleeding Mask, 1=Bright Star Mask, etc.)

the MaskType values can be found with
Select * from MaskType
Sample call to fMaskTypeN.
select top 10 m.maskID, o.objID, dbo.fMaskTypeN(m.type) as type
from Mask m JOIN MaskedObject o ON m.maskID=o.maskID

see also fMaskType

Input and output parameters