//Created by Esreyr Fears //on February 2nd, 2006 //Change the PC's Head [27] #include "alt_shape_inc" void main() { //Get the PC & widget to store the information on object oPC = GetPCSpeaker(); int appnum = 27; switch ( GetAppearanceType(oPC) ) { case APPEARANCE_TYPE_DWARF: appnum = 27; break; case APPEARANCE_TYPE_ELF: appnum = 27; break; case APPEARANCE_TYPE_GNOME: appnum = 27; break; case APPEARANCE_TYPE_HALFLING: if (GetGender(oPC) == GENDER_MALE){ appnum = 160; } else { appnum = 27; } break; case APPEARANCE_TYPE_HALF_ORC: appnum = 27; break; case APPEARANCE_TYPE_HUMAN: appnum = 27; break; default: appnum = 27; 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); }