Lua functions

SetTempVariable

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

Historical signature: SetTempVariable(spawn, var, val)

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

Function: SetTempVariable(spawn, var, val)

Description: Set's a temporary variable on the Spawn.

Parameters:

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

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. The binding also handles arguments dynamically. This is a contextual call pattern, not a tested standalone script.

SetTempVariable(NPC,"Reset",1)

Evidence: server/SpawnScripts/BrawlersDojo/afirstcircleadept.lua:62; binding EQ2Emu_lua_SetTempVariable.

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