NWNX:EE  8193.37.14
nwnx_appearance.nss
Go to the documentation of this file.
1 
6 const string NWNX_Appearance = "NWNX_Appearance";
7 
15 
27 
32 
38 void NWNX_Appearance_SetOverride(object oPlayer, object oCreature, int nType, int nValue);
39 
45 int NWNX_Appearance_GetOverride(object oPlayer, object oCreature, int nType);
46 
48 
49 void NWNX_Appearance_SetOverride(object oPlayer, object oCreature, int nType, int nValue)
50 {
51  NWNXPushInt(nValue);
52  NWNXPushInt(nType);
53  NWNXPushObject(oCreature);
54  NWNXPushObject(oPlayer);
55  NWNXCall(NWNX_Appearance, "SetOverride");
56 }
57 
58 int NWNX_Appearance_GetOverride(object oPlayer, object oCreature, int nType)
59 {
60  NWNXPushInt(nType);
61  NWNXPushObject(oCreature);
62  NWNXPushObject(oPlayer);
63  NWNXCall(NWNX_Appearance, "GetOverride");
64  return NWNXPopInt();
65 }
const int NWNX_APPEARANCE_TYPE_PORTRAIT
See portraits.2da, -1 to remove.
const int NWNX_APPEARANCE_TYPE_TAIL_TYPE
CREATURE_TAIL_TYPE_* or see tailmodel.2da, -1 to remove.
void NWNX_Appearance_SetOverride(object oPlayer, object oCreature, int nType, int nValue)
Override a creature's appearance type for a player.
const int NWNX_APPEARANCE_TYPE_WING_TYPE
CREATURE_WING_TYPE_* or see wingmodel.2da, -1 to remove.
const int NWNX_APPEARANCE_TYPE_APPEARANCE
APPEARANCE_TYPE_* or -1 to remove.
const int NWNX_APPEARANCE_TYPE_HAIR_COLOR
0-175 or -1 to remove
const int NWNX_APPEARANCE_TYPE_SOUNDSET
See soundset.2da or -1 to remove.
const int NWNX_APPEARANCE_TYPE_HITPOINTS
0-GetMaxHitPoints(oCreature) or -1 to remove
const int NWNX_APPEARANCE_TYPE_PHENOTYPE
PHENOTYPE_* or -1 to remove.
const int NWNX_APPEARANCE_TYPE_FOOTSTEP_SOUND
0-17 or see footstepsounds.2da, -1 to remove
const int NWNX_APPEARANCE_TYPE_SKIN_COLOR
0-175 or -1 to remove
int NWNX_Appearance_GetOverride(object oPlayer, object oCreature, int nType)
Get a creature's appearance type for a player.
const int NWNX_APPEARANCE_TYPE_GENDER
GENDER_* or -1 to remove.
const int NWNX_APPEARANCE_TYPE_HEAD_TYPE
0-? or -1 to remove