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.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ multiple triggers set same variable
multiple triggers set same variable
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Guest1
USA (256 posts) |
Date
| Sat 14 Dec 2002 03:44 PM (UTC) |
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. | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 15 Dec 2002 12:18 AM (UTC) |
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 | 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.
10,048 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top