generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
49
_module/nss/alt_shape_face28.nss
Normal file
49
_module/nss/alt_shape_face28.nss
Normal file
@@ -0,0 +1,49 @@
|
||||
//Created by Esreyr Fears
|
||||
//on February 2nd, 2006
|
||||
|
||||
//Change the PC's Head [28]
|
||||
|
||||
#include "alt_shape_inc"
|
||||
|
||||
void main() {
|
||||
//Get the PC & widget to store the information on
|
||||
object oPC = GetPCSpeaker();
|
||||
int appnum = 28;
|
||||
switch ( GetAppearanceType(oPC) ) {
|
||||
case APPEARANCE_TYPE_DWARF:
|
||||
appnum = 28;
|
||||
break;
|
||||
case APPEARANCE_TYPE_ELF:
|
||||
appnum = 28;
|
||||
break;
|
||||
case APPEARANCE_TYPE_GNOME:
|
||||
appnum = 28;
|
||||
break;
|
||||
case APPEARANCE_TYPE_HALFLING:
|
||||
if (GetGender(oPC) == GENDER_MALE){
|
||||
appnum = 161;
|
||||
}
|
||||
else {
|
||||
appnum = 28;
|
||||
}
|
||||
break;
|
||||
case APPEARANCE_TYPE_HALF_ORC:
|
||||
appnum = 28;
|
||||
break;
|
||||
case APPEARANCE_TYPE_HUMAN:
|
||||
appnum = 28;
|
||||
break;
|
||||
default:
|
||||
appnum = 28;
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user