SetTriggerOption
Script function world.SetTriggerOption Read about scripting Type Method Summary Sets the value of a named trigger option Prototype `long SetTriggerOption(BSTR TriggerName, BSTR OptionName, BSTR Value);` View list of data type meanings Description `Sets the current value of a trigger option. You must specify the name of an existing trigger, and a trigger option from the list given for GetTriggerOption. These are the same names as used in the XML world files for trigger options. For a detailed description about the meanings of the fields, see AddTrigger. If SetTriggerOption is called from within a plugin, the triggers for the current plugin are used, not the "global" MUSHclient triggers. For numeric options (such as sequence) the supplied string will be converted to a number. It is an error if the string does not consist of digits (0 to 9).` VBscript example
    world.SetTriggerOption "mytrigger", "match", "north"
Jscript example
    world.SetTriggerOption ("mytrigger", "match", "north");
PerlScript example
    $world->SetTriggerOption ("mytrigger", "match", "north");
Python example
    world.SetTriggerOption ("mytrigger", "match", "north")
Lua example
    SetTriggerOption ("mytrigger", "match", "north")
Return value
    eInvalidObjectLabel: The trigger name is not valid
    eTriggerCannotBeEmpty: The "match_text" cannot be empty
    eScriptNameNotLocated: The script name cannot be located in the script file
    eBadRegularExpression: The regular expression could not be evaluated
    eOK: set OK
View list of return code meanings See Also ... Topics Aliases Default triggers/aliases/timers/macros/colours Getting started Groups Plugins Regular Expressions Timers Triggers Functions 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) (Help topic: function=SetTriggerOption) Documentation contents page