Skip to content

LookToString

A look as one line - what a database column keeps.

"body=m_body_tan_02;head=m_head_004;hair=m_hair_005_blonde;beard=m_beard_03", the parts left out missing from it, "" for no look at all; a woman’s starts with gender=female;. SetPlayerLook, SetActorLook and LookFromString take the line back; a player’s client half has the same pair, so the line may travel in a script event too.

LookToString(look)
Parameter Type
look table | string a look

string - the one-line form

db:Execute("UPDATE players SET look = @l WHERE name = @n", { l = LookToString(GetPlayerLook(pid)), n = name })

LookFromString · SetPlayerLook · the Looks and character creation group of the index