Tot ! Custom
This library will not function if your server doesn't have Tot ! Custom installed:
- Tot ! Custom Legacy
- Tot ! Custom Enhanced
All of these functions are compatible with player characters, puppets, and basic NPCs.
GetBody function
Syntax:
lua
string TotCustom.GetBody( Character|TotPuppet|TotBasicNPC actor )GetArmor function
Syntax:
lua
string TotCustom.GetArmor( Character|TotPuppet|TotBasicNPC actor )GetAccessories function
Syntax:
lua
string TotCustom.GetAccessories( Character|TotPuppet|TotBasicNPC actor )SetBody function
Syntax:
lua
bool TotCustom.SetBody( Character|TotPuppet|TotBasicNPC actor, string data )SetArmor function
Syntax:
lua
bool TotCustom.SetArmor( Character|TotPuppet|TotBasicNPC actor, string data )SetAccessories function
Syntax:
lua
bool TotCustom.SetAccessories( Character|TotPuppet|TotBasicNPC actor, string data )GetSliderValue function Legacy
Syntax:
lua
float TotCustom.GetSliderValue( Character|TotPuppet|TotBasicNPC actor, string key )SetSliderValue function Legacy
Syntax:
lua
bool TotCustom.SetSliderValue( Character|TotPuppet|TotBasicNPC actor, string key, float value )GetArmorPieces function
Returns a list of item IDs of equipped armor pieces (in sequential table).
Syntax:
lua
table<int> TotCustom.GetArmorPieces( Character|TotPuppet|TotBasicNPC actor )| Index | Slot |
|---|---|
| 1 | Head |
| 2 | Torso |
| 3 | Legs |
| 4 | Hands |
| 5 | Feet |
GetArmorPiece function
Get an armor piece and its colors, uses same slot numbers as GetArmorPieces.
Syntax:
lua
int, Color|nil, Color|nil, Color|nil, Color|nil TotCustom.GetArmorPiece( Character|TotPuppet|TotBasicNPC actor, int slot )SetArmorPiece function Legacy
Set an armor piece on a character, uses same slot numbers as GetArmorPieces.
Make sure to either provide no colors (everything will be black), one color (which will be applied to all layers), or all of them.
Syntax:
lua
bool TotCustom.SetArmorPiece( Character|TotPuppet|TotBasicNPC actor, int slot, int itemId [, Color color1 [, Color color2, Color color3, Color color4 ] ] )ClearArmorSlot function
Remove an armor piece from a character, uses same slot numbers as GetArmorPieces.
Syntax:
lua
bool TotCustom.ClearArmorSlot( Character|TotPuppet|TotBasicNPC actor, int slot )