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
➜ Tips and tricks
➜ Enableing, Disableing ALL triggers
Enableing, Disableing ALL triggers
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Suhnaye
(2 posts) Bio
|
Date
| Mon 04 Apr 2005 08:13 PM (UTC) |
Message
| I've got a problem with comming up with an Aeon cure script, because if any of my triggers fire while I'm curing it, it interupts it and I don't cure it. So I need to disable all of my triggers untill the curedline comes up... I know of only one way to do that right now, and thats by diableig all the groups. And running through a list of EnableGroup "blah", 0, and then 1 on the cured line is going to take me forever. Is there a way to just fire a script that disables the master trigger enabled toggle on the menu? | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #1 on Mon 04 Apr 2005 09:49 PM (UTC) |
Message
| Use setoption to disable (set to 0) the world option of "enable_triggers"
set it back to 1 to reenable them.
(this is the exact same as going to the menu and unchecking the box).
So, in VB:
setoption "enable_triggers", 0
and
setoption "enable_triggers", 0 |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Suhnaye
(2 posts) Bio
|
Date
| Reply #2 on Mon 04 Apr 2005 11:26 PM (UTC) |
Message
| Great! That fixes one problem. I've already got another one though, for World.AddTrigger and AddTriggerEx, is there a way to set a group name to the trigger? Or are you stuck with just the label? | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #3 on Tue 05 Apr 2005 12:20 AM (UTC) |
Message
| You'd need to use SetTriggerOption, either that or ImportXML (to import the full trigger).
If you're adding a whole lot of triggers however, you might want to think if you really need to (a lot of people add/remove triggers when they could simple disable them, or use a regexp/variable match). |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Larkin
(278 posts) Bio
|
Date
| Reply #4 on Wed 06 Apr 2005 02:12 PM (UTC) |
Message
| I'd recommend a different approach to curing aeon, since you can still receive afflictions or even fail to cure the aeon. Leave your triggers enabled and instead set a flag that says you're trying to cure aeon. When you've cured it, resume your triggers' responses for curing other things. It's best to continue tracking and "remembering" the afflictions, even if you've disabled your curing for some reason. | Top |
|
Posted by
| Dustin
(4 posts) Bio
|
Date
| Reply #5 on Sun 24 Dec 2006 11:38 PM (UTC) |
Message
| So... I'm not as cool as you all...
I want to enable and disable all triggers to cure aeon, just like the first dude.
I created an alias to... world.EnableTriggerGroup "thegroupname", 0... and one to re-enable them. Couth? No. It didn't bloody work. I tried sending it to command, to execute - nothing worked. That is, until one day when all my triggers were disabled. But guess what? They wouldn't enable, and I can't seem to fix them, aside from manually re-enabling each one individually. I don't blame the program - I know it's my own fault, because I don't know what I'm doing.
So, I like your solution - the whole "enable_triggers" thing - however, I can't get it to work. Should I not be putting this into aliases? What should I be sending it to? VAaarrggg!
Thanks for your help. | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #6 on Tue 26 Dec 2006 01:49 AM (UTC) |
Message
|
Quote:
I created an alias to... world.EnableTriggerGroup "thegroupname", 0... and one to re-enable them. Couth? No. It didn't bloody work. I tried sending it to command, to execute - nothing worked
That is a script command. You need to send it to script. |
- 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.
21,509 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top