generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
39
_module/nss/alt_shape_elf.nss
Normal file
39
_module/nss/alt_shape_elf.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
//Created by Esreyr Fears
|
||||
//on February 2nd, 2006
|
||||
|
||||
//Change to an Elf
|
||||
|
||||
#include "alt_shape_inc"
|
||||
|
||||
void main() {
|
||||
|
||||
//Get the PC & widget to store the information on
|
||||
object oPC = GetPCSpeaker();
|
||||
object oAltshapeWidget = GetItemPossessedBy(oPC, "alt_shape_conv");
|
||||
if (oAltshapeWidget == OBJECT_INVALID) return;
|
||||
|
||||
//Set the appropriate 'Change-to' variable
|
||||
SetLocalInt(oAltshapeWidget, "change_shape", APPEARANCE_TYPE_ELF );
|
||||
|
||||
//Change the PC's Race appearance
|
||||
int playable_race =isPlayableRace(oPC);
|
||||
makeChanges(oPC, oAltshapeWidget);
|
||||
if ( !playable_race ) {
|
||||
SetCreatureBodyPart( CREATURE_PART_RIGHT_FOOT, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_LEFT_FOOT, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_RIGHT_SHIN, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_LEFT_SHIN, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_RIGHT_THIGH, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_LEFT_THIGH, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_PELVIS, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_TORSO, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_NECK, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_RIGHT_FOREARM, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_LEFT_FOREARM, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_RIGHT_BICEP, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_LEFT_BICEP, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_RIGHT_HAND, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_LEFT_HAND, CREATURE_MODEL_TYPE_SKIN, oPC );
|
||||
SetCreatureBodyPart( CREATURE_PART_HEAD, 1, oPC );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user