Make Multi-Line Trigger
Allows you to quickly generate a multi-line trigger.

Trigger on:

Enter the multi-line text to be matched. This is automatically generated from selected text in the output window, if any. The text is converted to a regular expression, so that things like .()[] will be "escaped" with a backslash in front of it.

You do not need to enter \n for a newline, these will be generated automatically at each linebreak.

Match Case

If checked, the trigger will only match the exact case shown, otherwise it will match upper or lower-case versions of the text.

OK

When you click OK, a trigger will be added to the world's trigger list. This trigger will be:


  • A regular expression (as required for multi-line triggers)

  • Multi-line, with the line count set to the number of lines in the match text

  • Keep evaluating (so other triggers will also match the line)

  • Send to output

  • Send the entire matching trigger ("%0")

  • Group as "Multi Line"



The intention is that you would then edit the multi-line trigger in the trigger configuration for the world and make it do whatever you want. You may also want to replace variable parts of the text with (.+) or similar to act as wildcards.


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_DISPLAY_MULTILINETRIGGER MakeMultiLineTrigger (Make a multi-line 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_MULTILINE_TRIGGER)

DOC_contents Documentation contents page