1
0
EQ2Emu/docs/lua_functions/AddQuestStepFailureAction.md
2025-05-13 22:57:49 -04:00

18 lines
617 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Function: AddQuestStepFailureAction(Quest, Step, FunctionName)
Description: Associates a Lua function (by name) to be called if the specified quest step fails. This allows custom script handling when a steps failure condition is met (e.g., timer runs out).
Parameters:
Quest: Quest The quest object.
Step: Int32 The step number to attach the failure action to.
FunctionName: String The name of a Lua function to call on failure.
Returns: None.
Example:
-- Example usage (if step 2 fails, call "OnStealthFail" in the quest script)
AddQuestStepFailureAction(Quest, 2, "OnStealthFail")