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

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  A question about setting trigger options via scripting
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

A question about setting trigger options via scripting

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Rivius   (95 posts)  [Biography] bio
Date Fri 04 Feb 2011 01:46 PM (UTC)
Hi, I was wondering. Is there a way to change options for triggers via scripting and/or variables?

For example, I want to be able to toggle on/off "omit from output" or "bold" without having to open up the trigger dialog box and doing it manually.
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Fri 04 Feb 2011 07:25 PM (UTC)

Amended on Fri 04 Feb 2011 07:26 PM (UTC) by Twisol

Template:function=SetTriggerOption SetTriggerOption

The documentation for the SetTriggerOption script function is available online. It is also in the MUSHclient help file.

For example:
SetTriggerOption("triggername", "omit_from_output", "n")

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

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]