NWNX:EE  8193.36.12
nwnx_appearance.nss
Go to the documentation of this file.
1 #include "nwnx"
6 
7 const string NWNX_Appearance = "NWNX_Appearance";
8 
16 
28 
33 
39 void NWNX_Appearance_SetOverride(object oPlayer, object oCreature, int nType, int nValue);
40 
46 int NWNX_Appearance_GetOverride(object oPlayer, object oCreature, int nType);
47 
49 
50 void NWNX_Appearance_SetOverride(object oPlayer, object oCreature, int nType, int nValue)
51 {
52  string sFunc = "SetOverride";
53 
54  NWNX_PushArgumentInt(nValue);
55  NWNX_PushArgumentInt(nType);
56  NWNX_PushArgumentObject(oCreature);
57  NWNX_PushArgumentObject(oPlayer);
58 
59  NWNX_CallFunction(NWNX_Appearance, sFunc);
60 }
61 
62 int NWNX_Appearance_GetOverride(object oPlayer, object oCreature, int nType)
63 {
64  string sFunc = "GetOverride";
65 
66  NWNX_PushArgumentInt(nType);
67  NWNX_PushArgumentObject(oCreature);
68  NWNX_PushArgumentObject(oPlayer);
69 
70  NWNX_CallFunction(NWNX_Appearance, sFunc);
71 
72  return NWNX_GetReturnValueInt();
73 }
NWNX_APPEARANCE_TYPE_HITPOINTS
const int NWNX_APPEARANCE_TYPE_HITPOINTS
0-GetMaxHitPoints(oCreature) or -1 to remove
Definition: nwnx_appearance.nss:19
NWNX_GetReturnValueInt
int NWNX_GetReturnValueInt()
Returns the specified type from the c++ side.
Definition: nwnx.nss:94
NWNX_APPEARANCE_TYPE_TAIL_TYPE
const int NWNX_APPEARANCE_TYPE_TAIL_TYPE
CREATURE_TAIL_TYPE_* or see tailmodel.2da, -1 to remove.
Definition: nwnx_appearance.nss:25
NWNX_APPEARANCE_TYPE_SOUNDSET
const int NWNX_APPEARANCE_TYPE_SOUNDSET
See soundset.2da or -1 to remove.
Definition: nwnx_appearance.nss:24
NWNX_APPEARANCE_TYPE_HEAD_TYPE
const int NWNX_APPEARANCE_TYPE_HEAD_TYPE
0-? or -1 to remove
Definition: nwnx_appearance.nss:23
NWNX_APPEARANCE_TYPE_HAIR_COLOR
const int NWNX_APPEARANCE_TYPE_HAIR_COLOR
0-175 or -1 to remove
Definition: nwnx_appearance.nss:20
NWNX_APPEARANCE_TYPE_GENDER
const int NWNX_APPEARANCE_TYPE_GENDER
GENDER_* or -1 to remove.
Definition: nwnx_appearance.nss:15
NWNX_APPEARANCE_TYPE_APPEARANCE
const int NWNX_APPEARANCE_TYPE_APPEARANCE
APPEARANCE_TYPE_* or -1 to remove.
Definition: nwnx_appearance.nss:14
NWNX_Appearance_SetOverride
void NWNX_Appearance_SetOverride(object oPlayer, object oCreature, int nType, int nValue)
Override a creature's appearance type for a player.
Definition: nwnx_appearance.nss:50
NWNX_CallFunction
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
Definition: nwnx.nss:54
NWNX_APPEARANCE_TYPE_FOOTSTEP_SOUND
const int NWNX_APPEARANCE_TYPE_FOOTSTEP_SOUND
0-17 or see footstepsounds.2da, -1 to remove
Definition: nwnx_appearance.nss:27
NWNX_APPEARANCE_TYPE_WING_TYPE
const int NWNX_APPEARANCE_TYPE_WING_TYPE
CREATURE_WING_TYPE_* or see wingmodel.2da, -1 to remove.
Definition: nwnx_appearance.nss:26
NWNX_PushArgumentObject
void NWNX_PushArgumentObject(object value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:69
NWNX_PushArgumentInt
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:59
NWNX_APPEARANCE_TYPE_SKIN_COLOR
const int NWNX_APPEARANCE_TYPE_SKIN_COLOR
0-175 or -1 to remove
Definition: nwnx_appearance.nss:21
NWNX_APPEARANCE_TYPE_PORTRAIT
const int NWNX_APPEARANCE_TYPE_PORTRAIT
See portraits.2da, -1 to remove.
Definition: nwnx_appearance.nss:31
NWNX_Appearance_GetOverride
int NWNX_Appearance_GetOverride(object oPlayer, object oCreature, int nType)
Get a creature's appearance type for a player.
Definition: nwnx_appearance.nss:62
NWNX_APPEARANCE_TYPE_PHENOTYPE
const int NWNX_APPEARANCE_TYPE_PHENOTYPE
PHENOTYPE_* or -1 to remove.
Definition: nwnx_appearance.nss:22