|
multiple triggers set same variable
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Demonsurfer
USA (256 posts) 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. | top |
|
| Posted by |
Nick Gammon
Australia (18,800 posts) 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 | 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
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )