Enableing, Disableing ALL triggers

Posted by Suhnaye on Mon 04 Apr 2005 08:13 PM — 7 posts, 28,892 views.

#0
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?
USA #1
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
#2
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?
USA #3
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).
#4
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.
#5
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.
Australia Forum Administrator #6
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.