Table of Contents

Method RunAction

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

onAppliedHandle ScriptCallbackHandle

The callback to invoke when this effect is applied.

onRemovedHandle ScriptCallbackHandle

The callback to invoke when this effect is removed (via script, death, resting, or dispelling).

onIntervalHandle ScriptCallbackHandle

The callback to invoke per interval.

interval TimeSpan

The interval in which to call onIntervalHandle.

data string

Optional string of data saved with the effect, retrievable with Effect.StringParams[0].

Returns

Effect