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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  multiple triggers set same variable

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

multiple triggers set same variable

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Demonsurfer   USA  (256 posts)  [Biography] bio
Date Sat 14 Dec 2002 03:44 PM (UTC)  quote  ]
Message
Suggested this a couple of days ago but guess it got overlooked. I have a heap of variables where 2 triggers for each variable sets the status of that variable to either 'on' or 'off', and then an alias can call a quick list to world.note me which variables are set to off only. The problem (if you can call it a problem) is that when using triggers to send direct to variable requires putting the variable name as the trigger label, and of course because you cannot currently have 2 triggers with the same label, this again neccessitates having one of each 'pair' of triggers call a sub-routine script instead. (This will also cause the same work around if aliases allow sending direct to variables too in the future, which is my other suggestion).

I know you can't allow 2 triggers to share the same label as this will cause issues with other scripts that enable/disable triggers. As a suggestion, would it be feasible to instead create a new field for the variable name within the trigger parameters so that multiple triggers (and aliases one day too I hope) can send direct to the same variable without needing to script a separate sub-routine for 1 of them?

It's not a biggie since the sub-routine method works fine, but it would make things a lot cleaner imho.
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 15 Dec 2002 12:18 AM (UTC)  quote  ]
Message
I have plans for making triggers and aliases more similar in the way they work (eg. setting variables) and making that more flexible. For the time being, just use scripts.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


2,448 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]