Register forum user name Search FAQ

MUSHclient scripting

Description of MUSHclient world function: world.StopEvaluatingTriggers


Name StopEvaluatingTriggers
Type Method
Summary Stops trigger evaluation
Prototype void StopEvaluatingTriggers(BOOL AllPlugins);
Description

Call this function from a trigger script to stop trigger evaluation. This would have to be called from "send to script" (not send-to-script-after-omit), nor from a trigger script file, in order to be effective.

This causes trigger evaluation to stop, for the current line, and the current plugin. If not in a plugin, then all triggers in the "main" world trigger list stop being evaluated.

If the argument is true, then no further trigger evaluation takes place, in any further plugins.

Note that since calling a trigger script (script name in Script box) is done after all triggers are evaluated for that plugin, doing this inside a script file will be too late (for the current plugin). It has to be done in send-to-script.


Note: Available in version 4.89 onwards.


Lua example
StopEvaluatingTriggers (true)
Returns None.
Introduced in version 4.89

See also ...

Function Description
AddTrigger Adds a trigger
GetTriggerInfo Gets details about a named trigger
GetTriggerOption Gets the value of a named trigger option

Search for script function

Enter a word or phrase in the box below to narrow the list down to those that match.

The function name, prototype, summary, and description are searched.

Search for:   

Leave blank to show all functions.


Return codes

Many functions return a "code" which indicates the success or otherwise of the function.

You can view a list of the return codes


Function prototypes

The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).

You can view a list of the data types used in function prototypes


View all functions

[Back]

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