Lua functions

GetRuleFlagFloat

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

Historical signature: GetRuleFlagFloat(category, name)

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

Function: GetRuleFlagFloat(category, name)

Description: Gets the float rule flag from the world based on the category and name.

Parameters:

  • category (string) - String category.
  • name (string) - String name.

Returns: Float value of the rule.

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.

local shardLifeTime = GetRuleFlagFloat("R_Combat", "ShardLifetime")

Evidence: server/SpawnScripts/Generic/SpiritShard.lua:55; binding EQ2Emu_lua_GetRuleFlagFloat.

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