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