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. A horse’s look (SetHorseLook) makes "body=Horse_Dapple_Grey;mane=horse_braided_hair_01_white;tail=braided_tail_01" (on the server’s side).

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