NPC Code:
setcharprop #C0,#T(#e(6,-1,#c));
setcharprop - sets THIS npc's property
#C0 - property for skin color
#T(string) - trims spaces off start and end of string, not needed here
#e(startindex,stopindex,string) - takes a slice of a string from startindex to stopindex. 6 is determined by counting characters (including spaces!), so it'd be / = 1, s = 2, k = 3, and so on. remember, spaces count. -1 means to not take a stopindex, but use the end of the string as the terminator. #c is the player's chat string.