Lua functions

RemoveTriggerFromSpell

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

Historical signature: RemoveTriggerFromSpell(remove_count)

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

Function: RemoveTriggerFromSpell(remove_count)

Description: Remove a spell trigger from the spell, must be ran inside Spell Script.

Parameters:

  • remove_count (uint16) - Quantity remove_count.

Returns: None.

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.

RemoveTriggerFromSpell(1)

Evidence: server/Spells/Commoner/BlightoftheMorning.lua:27; binding EQ2Emu_lua_RemoveTriggerFromSpell.

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