Script Index


/var/lib/sorcery/modules/libtriggers

Functions used to manage triggers. Used both by spells and by the sorcery scripts.

Synopsis

Set of functions used by the internal sorcery scripts


function run_triggers()

Parameters:

Description

Checks for a TRIGGERS file in SCRIPT_DIRECTORY, and if it is executable, runs it.


function remove_triggers()

Parameters:

Description

Remove's all of a spell's triggers from the list of registered triggers.


function trigger()

Parameters:

Globals

SPELL if $2 is omitted

Stdin

y/n

Stdout

Query and warnings

Description

Triggers an event and performs necessary actions. Argument 2 is optional. If omitted, the value of SPELL will be used.


function get_triggerees()

Parameters:

Description

Get the triggerees of a given spell event and action


function get_run_script_triggers()

Parameters:

Description

Get the run_script triggers from $spell on $target when theres a $action


function set_trigger()

Parameters:

Description

Registers a trigger in the list of triggers. Also verifies that the trigger and action exist.


function real_on_cast()

Parameters:

Type

API

Description

Used by spells to make adding triggerse nice.


function real_on_pre_cast()

Parameters:

Type

API

Description

Used by spells to make adding triggerse nice.


function real_on_dispel()

Parameters:

Type

API

Description

Used by spells to make adding triggers nice.


function real_on_pre_dispel()

Parameters:

Type

API

Description

Used by spells to make adding triggerse nice.