This document provides a comprehensive reference for all available Lua functions in the WyvernChat platform. These functions are available in Lua scripts for character commands, greeting processing, and other scripting contexts.
The following global variables are automatically available in all Lua scripts:
memory - Chat memory object containing persistent datachatLog - Current chat log objectmessages - Array of chat messagescards - Array of available cardsusers - Array of userspersonas - Array of user personaslorebooks - Array of lorebookscharacters - Array of charactersgalleryImages - Array of gallery imagesspriteSets - Array of sprite setsmessageIndex - Current message indexobjects - Array of object datalexicon - Array of lexicon entries for the current chat logcurrentUser - Current user objectcurrentPersona - Current persona object