void main()
{
object oPC = GetExitingObject();
if (!GetIsPC(oPC))
    return;
object oSkin = GetItemInSlot(INVENTORY_SLOT_CARMOUR,oPC);
if (!GetIsObjectValid(oSkin))
    {
    AssignCommand(oPC,ClearAllActions());
    AssignCommand(oPC,ActionEquipItem(CreateItemOnObject("pcskin",oPC),INVENTORY_SLOT_CARMOUR));
    }
// Sometimes an odd PC Skin makes its way into the PCs inventory DESTROY IT.
object oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
    {
    if (GetBaseItemType(oItem) == BASE_ITEM_CREATUREITEM)
        DestroyObject(oItem);
    oItem = GetNextItemInInventory(oPC);
    }
}
