Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ A question about setting trigger options via scripting

A question about setting trigger options via scripting

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


Posted by Rivius   (99 posts)  Bio
Date Fri 04 Feb 2011 01:46 PM (UTC)
Message
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.
Top

Posted by Twisol   USA  (2,257 posts)  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

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


12,601 views.

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

Go to topic:           Search the forum


[Go to top] top

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