[Home] [Downloads] [Search] [Help/forum]

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.


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 ...


Default triggers/aliases/timers/macros/colours
Getting started
Regular Expressions


(MakeMultiLineTrigger) Make a multi-line trigger


(AddTrigger) Adds a trigger
(AddTriggerEx) Adds a trigger - extended arguments
(DeleteTemporaryTriggers) Deletes all temporary triggers
(DeleteTrigger) Deletes a trigger
(DeleteTriggerGroup) Deletes a group of triggers
(EnableTrigger) Enables or disables a trigger
(EnableTriggerGroup) Enables/disables a group of triggers
(GetPluginTriggerInfo) Gets details about a named trigger for a specified plugin
(GetPluginTriggerList) Gets the list of triggers in a specified plugin
(GetTrigger) Gets details about a named trigger
(GetTriggerInfo) Gets details about a named trigger
(GetTriggerList) Gets the list of triggers
(GetTriggerOption) Gets the value of a named trigger option
(GetTriggerWildcard) Returns the contents of the specified wildcard for the named trigger
(IsTrigger) Tests to see if a trigger exists
(SetTriggerOption) Sets the value of a named trigger option
(StopEvaluatingTriggers) Stops trigger evaluation

(Help topic: dialog=IDD_MULTILINE_TRIGGER)

Documentation contents page

Search ...

Enter a search string to find matching documentation.

Search for:   

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]