Lua functions

GetTempVariable

Registered in this checkout as EQ2Emu_lua_GetTempVariable; implementation found at WorldServer/Lua/LuaFunctions.cpp:6935.

Historical signature: GetTempVariable(spawn, var)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: GetTempVariable(spawn, var)

Description: Get a temporary variable of the Spawn

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • var (string) - String var.

Returns: Depending on the SetTempVariable type the return type will vary.

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.

cub = GetTempVariable(Spawn, "cub")

Evidence: server/SpawnScripts/Darklight/CalnozzJMelvirr.lua:236; binding EQ2Emu_lua_GetTempVariable.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.