Battledale_PRC8/_module/nss/gc_skincolr_next.nss

28 lines
688 B
Plaintext
Raw Permalink Normal View History

/*--------------------------------------------------------
Script Name: gc_skincolr_next
----------------------------------------------------------
Created By: Genisys(Guile)
Created On: 3/25/09
----------------------------------------------------------
This script changes the PC's Skin color in a conversation.
NOTE: It adds +1 to the color index of their current color.
----------------------------------------------------------*/
void main()
{
object oPC = GetPCSpeaker();
int nIndex = GetLocalInt(oPC, "SKIN_COLOR");
int nColor;
nColor = nIndex +1;
if(nColor == 175)
{ nColor = 1; }
SetLocalInt(oPC, "SKIN_COLOR", nColor);
SetColor(oPC, COLOR_CHANNEL_SKIN, nColor);
}