Trigger configuration list
Enable Triggers

If checked, all triggers are enabled (active).

Enable Trigger Sounds

If checked, sounds which are specified for each trigger are played when they fire. If unchecked the triggers become silent. However this does not apply to "scripted" sounds. That is, if a trigger calls a script and script calls the Sound function, that will still play.

Override with default triggers

If checked, next time the world is loaded your triggers are replaced with the default ones. See the help topic on "defaults" for more details.

Add...

Click to add a trigger.

Edit...

Click to edit an existing trigger.

Remove

Click to remove one or more selected triggers from the list.

Find...

Click to find a trigger based on its contents.

Find Next

Click to repeat the next find (find another one that matches).

Load...

Click to load triggers from disk.

Save...

Click to save selected triggers to disk.

Move Up

Click to move the selected trigger up the list (in other words, lower its sequence number).

Move Down

Click to move the selected trigger down the list (in other words, raise its sequence number).

Copy

Click to copy the selected trigger(es) to the clipboard in XML format.

Paste

Click to paste the clipboard into the trigger list. The triggers must be in XML format (such as produced by the Copy button). Only triggers will be pasted, if there are other types on the clipboard.

Copy and paste is intended to allow you to get/put triggers onto the Forum, or exchange them between worlds or with other MUSHclient users.

Filter by:

Check to filter the visible items by the function "filter". Click on the button labelled "..." next to the "filter by" checkbox to enter the code for the scripted filter function. The filter function must be written in Lua and have a function named "filter" in the script, taking one argument which is the name (label) of the trigger. For example, to show only triggers that do "send to script":


function filter (s)
  return GetTriggerInfo (s, 15) == 12 
end -- filter


You can use GetTriggerInfo or GetTriggerOption to find out information about that trigger and work out whether to show it or not. If the function returns the boolean value "false" then the item is not shown, otherwise it is shown in the list.

The filter script is saved in the world file, so you can use it again next time, however the filter flag is not remembered. You must explicitly enable it each time you want to filter the list.


See Also ...

Topics

DOC_aliases Aliases
DOC_defaults Default triggers/aliases/timers/macros/colours
DOC_starting Getting started
DOC_group Groups
DOC_plugins Plugins
DOC_regexp Regular Expressions
DOC_timers Timers
DOC_triggers Triggers

Command

CMD_ID_GAME_CONFIGURE_TRIGGERS ConfigureTriggers (Define triggers)

Dialog

DLG_IDD_EDIT_TRIGGER Edit trigger

Functions

FNC_AddTrigger AddTrigger (Adds a trigger)
FNC_AddTriggerEx AddTriggerEx (Adds a trigger - extended arguments)
FNC_DeleteTemporaryTriggers DeleteTemporaryTriggers (Deletes all temporary triggers)
FNC_DeleteTrigger DeleteTrigger (Deletes a trigger)
FNC_DeleteTriggerGroup DeleteTriggerGroup (Deletes a group of triggers)
FNC_EnableTrigger EnableTrigger (Enables or disables a trigger)
FNC_EnableTriggerGroup EnableTriggerGroup (Enables/disables a group of triggers)
FNC_GetPluginTriggerInfo GetPluginTriggerInfo (Gets details about a named trigger for a specified plugin)
FNC_GetPluginTriggerList GetPluginTriggerList (Gets the list of triggers in a specified plugin)
FNC_GetTrigger GetTrigger (Gets details about a named trigger)
FNC_GetTriggerInfo GetTriggerInfo (Gets details about a named trigger)
FNC_GetTriggerList GetTriggerList (Gets the list of triggers)
FNC_GetTriggerOption GetTriggerOption (Gets the value of a named trigger option)
FNC_GetTriggerWildcard GetTriggerWildcard (Returns the contents of the specified wildcard for the named trigger)
FNC_IsTrigger IsTrigger (Tests to see if a trigger exists)
FNC_SetTriggerOption SetTriggerOption (Sets the value of a named trigger option)

(Help topic: dialog=IDD_PREFS_P8)

DOC_contents Documentation contents page