//Created by Esreyr Fears //on February 2nd, 2006 //Change the PC's Head [17] #include "alt_shape_inc" void main() { //Get the PC & widget to store the information on object oPC = GetPCSpeaker(); int appnum = 17; switch ( GetAppearanceType(oPC) ) { case APPEARANCE_TYPE_DWARF: appnum = 17; break; case APPEARANCE_TYPE_ELF: appnum = 17; break; case APPEARANCE_TYPE_GNOME: appnum = 17; break; case APPEARANCE_TYPE_HALFLING: if (GetGender(oPC) == GENDER_MALE){ appnum = 17; } else { appnum = 162; } break; case APPEARANCE_TYPE_HALF_ORC: appnum = 17; break; case APPEARANCE_TYPE_HUMAN: appnum = 17; break; default: appnum = 17; break; } object oAltshapeWidget = GetItemPossessedBy(oPC, "alt_shape_conv"); if (oAltshapeWidget == OBJECT_INVALID) return; //Change the head int head_value = getMinHead(oPC, appnum); SetLocalInt(oAltshapeWidget, "change_face", head_value ); //Change the PC's Race appearance makeChanges(oPC, oAltshapeWidget); }