NWNX:EE  8193.36.12
Appearance

Readme

Allows the appearance and some other things of creatures to be overridden per player.

Files

file  nwnx_appearance.nss
 

Functions

void NWNX_Appearance_SetOverride (object oPlayer, object oCreature, int nType, int nValue)
 Override a creature's appearance type for a player. More...
 
int NWNX_Appearance_GetOverride (object oPlayer, object oCreature, int nType)
 Get a creature's appearance type for a player. More...
 

Function Documentation

◆ NWNX_Appearance_SetOverride()

void NWNX_Appearance_SetOverride ( object  oPlayer,
object  oCreature,
int  nType,
int  nValue 
)

Override a creature's appearance type for a player.

Parameters
oPlayerThe player who will see/hear things differently.
oCreatureThe target creature whose appearance type to alter for oPlayer. Can be a PC.
nTypeThe Appearance Type to set or -1 to fully remove override.
nValueThe new value for the appearance type.

Definition at line 50 of file nwnx_appearance.nss.

◆ NWNX_Appearance_GetOverride()

int NWNX_Appearance_GetOverride ( object  oPlayer,
object  oCreature,
int  nType 
)

Get a creature's appearance type for a player.

Parameters
oPlayerThe player who see/hear things differently.
oCreatureThe target creature whose appearance type is altered for oPlayer. Can be a PC.
nTypeThe Appearance Type to get.
Returns
The value for the appearance type or -1 when not set.

Definition at line 62 of file nwnx_appearance.nss.

Variable Documentation

◆ NWNX_APPEARANCE_TYPE_APPEARANCE

const int NWNX_APPEARANCE_TYPE_APPEARANCE = 0

APPEARANCE_TYPE_* or -1 to remove.

Definition at line 14 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_GENDER

const int NWNX_APPEARANCE_TYPE_GENDER = 1

GENDER_* or -1 to remove.

Definition at line 15 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_HITPOINTS

const int NWNX_APPEARANCE_TYPE_HITPOINTS = 2

0-GetMaxHitPoints(oCreature) or -1 to remove

Note
This is visual only. Does not change the Examine Window health status.

Definition at line 19 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_HAIR_COLOR

const int NWNX_APPEARANCE_TYPE_HAIR_COLOR = 3

0-175 or -1 to remove

Definition at line 20 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_SKIN_COLOR

const int NWNX_APPEARANCE_TYPE_SKIN_COLOR = 4

0-175 or -1 to remove

Definition at line 21 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_PHENOTYPE

const int NWNX_APPEARANCE_TYPE_PHENOTYPE = 5

PHENOTYPE_* or -1 to remove.

Definition at line 22 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_HEAD_TYPE

const int NWNX_APPEARANCE_TYPE_HEAD_TYPE = 6

0-? or -1 to remove

Definition at line 23 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_SOUNDSET

const int NWNX_APPEARANCE_TYPE_SOUNDSET = 7

See soundset.2da or -1 to remove.

Definition at line 24 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_TAIL_TYPE

const int NWNX_APPEARANCE_TYPE_TAIL_TYPE = 8

CREATURE_TAIL_TYPE_* or see tailmodel.2da, -1 to remove.

Definition at line 25 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_WING_TYPE

const int NWNX_APPEARANCE_TYPE_WING_TYPE = 9

CREATURE_WING_TYPE_* or see wingmodel.2da, -1 to remove.

Definition at line 26 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_FOOTSTEP_SOUND

const int NWNX_APPEARANCE_TYPE_FOOTSTEP_SOUND = 10

0-17 or see footstepsounds.2da, -1 to remove

Definition at line 27 of file nwnx_appearance.nss.

◆ NWNX_APPEARANCE_TYPE_PORTRAIT

const int NWNX_APPEARANCE_TYPE_PORTRAIT = 11

See portraits.2da, -1 to remove.

Note
Does not change the Examine Window portrait.

Definition at line 31 of file nwnx_appearance.nss.