Disabling triggers from a trigger
Yes, you can disable triggers from within a trigger.
The trigger which does the disabling must have a label (any text would do, such as "disable_trigger").
Then you must enter the name of a script subroutine, which you put into the script file (and turn scripting on). It doesn't matter which script language you use, but I'll choose VBscript as an example. I'll assume that we call the trigger script "OnDisableTriggers" (ie. this is the name that you put in the "script" field for the trigger.
You also need to give a label to each of the triggers that need to be disabled/enabled so we can refer to them by name. I'll assume you call them "trigger1" through to "trigger6" although you would probably want to give them better names.
sub OnDisableTriggers (strTriggerName, trig_line, arrWildCards)
World.EnableTrigger "trigger1", FALSE
World.EnableTrigger "trigger2", FALSE
World.EnableTrigger "trigger3", FALSE
World.EnableTrigger "trigger4", FALSE
World.EnableTrigger "trigger5", FALSE
World.EnableTrigger "trigger6", FALSE
end sub
Enabling triggers from an alias
Next, to enable them again you need to add a script to your attack alias. This just enables the triggers you disabled in the trigger.
sub OnEnableTriggers (strAliasName, theoutput, ArrWildcards)
World.EnableTrigger "trigger1", TRUE
World.EnableTrigger "trigger2", TRUE
World.EnableTrigger "trigger3", TRUE
World.EnableTrigger "trigger4", TRUE
World.EnableTrigger "trigger5", TRUE
World.EnableTrigger "trigger6", TRUE
end sub
Call an alias from a trigger
No, you can't call an alias from a trigger. Why would you want to do this? An alias is supposed to simplify typing things, a trigger to react to something from the MUD.
What you
could do is have both the trigger and the alias call the same script, thus they could end up doing the same thing.