Method RunAction
RunAction(ScriptCallbackHandle?, ScriptCallbackHandle?, ScriptCallbackHandle?, TimeSpan, string)
Creates a custom scripted effect.
public static Effect RunAction(ScriptCallbackHandle? onAppliedHandle = null, ScriptCallbackHandle? onRemovedHandle = null, ScriptCallbackHandle? onIntervalHandle = null, TimeSpan interval = default, string data = "")
Parameters
onAppliedHandleScriptCallbackHandleThe callback to invoke when this effect is applied.
onRemovedHandleScriptCallbackHandleThe callback to invoke when this effect is removed (via script, death, resting, or dispelling).
onIntervalHandleScriptCallbackHandleThe callback to invoke per interval.
intervalTimeSpanThe interval in which to call onIntervalHandle.
datastringOptional string of data saved with the effect, retrievable with Effect.StringParams[0].