BGREEN58 wrote
Now comes the problem... I'm thinking the best way to do this would be to modify the 'wear' and 'unwear' commands so that these values are tallied each time the player changes clothes
Uhm... why modify the commands?
Typelib.qlb keeps track of what the player is wearing by means of maintaining a set of numeric variables anyway, so you are (probably) just duplicating the effort. Not only that the commands are pretty complicated and very interwoven into other functionality so altering them is not a job for the faint hearted - I know, I wrote 'em!
If you read the typelib documentation (pdf file) you'll find that the variables used and how they work is explained in considerable detail.
Basically all you need to do is check the five "cover" variables (or more likely only one or two of them - head, feet and hands probably don't matter in many cases) and write code according to the values returned.
e.g. if the player's topcover property is greater than 32 he is wearing either a coat or a jacket, so he could be considered 'protected' from the cold or whatever.
You can misuse the clothing types quite easily, providing a space suit or diving suit is actually quite easy if you use a bit of lateral thinking.
If you want further help with this, explain to me in detail exactly what you are trying to do (either here or in e-mail if you prefer) and I'll work with you on 'misusing' typelib to do what you require.
Al (MaDbRiT)