Historical signature: GetVariableValue(variable_name)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: GetVariableValue(variable_name)
Description:
Reads a copied value using the complete stored variable name. This function does not add the lua_ prefix. Later updates do not change the string selected for this call.
Parameters:
variable_name (string) - Complete name of the stored variable.
Returns: The stored string when found; no value (nil when assigned in Lua) when missing.
Checked example
Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.
StartConversation(conversation, NPC, Spawn, "The current jackpot is " .. GetCoinMessage(GetVariableValue("gambling_current_jackpot")) .. ".")
Evidence: server/SpawnScripts/Generic/aGigglegibberGoblinGamblinGameVendor.lua:28; binding EQ2Emu_lua_GetVariableValue.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.