26 lines
627 B
Plaintext
26 lines
627 B
Plaintext
/*--------------------------------------------------------
|
|
|
|
Script Name: gc_skincolr_prev
|
|
----------------------------------------------------------
|
|
Created By: Genisys(Guile)
|
|
Created On: 3/25/09
|
|
----------------------------------------------------------
|
|
|
|
This script changes the PC's Skin color in a conversation.
|
|
|
|
----------------------------------------------------------*/
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
int nIndex = GetLocalInt(oPC, "SKIN_COLOR");
|
|
int nColor;
|
|
nColor = nIndex -1;
|
|
if(nColor == 0)
|
|
{ nColor = 175; }
|
|
|
|
SetLocalInt(oPC, "SKIN_COLOR", nColor);
|
|
|
|
SetColor(oPC, COLOR_CHANNEL_SKIN, nColor);
|
|
|
|
}
|