pause triggers with an alias?

Posted by Cnauir on Sat 25 Jan 2020 03:48 PM — 3 posts, 14,575 views.

#0
Hi again :)

Is it possible for me to pause the triggers by sending a command to do another action? and then start the triggers up again after?

so forexample i have a series of triggers that activates some special attacks in a continous loop, until combat ends/monsters are dead.

But i also have some very specific skills that i only want to use once in a while, but since i cant use more than one action per round, i have to deactivate triggers manually, then use the skill i want, then reactivate triggers manually.

I was hoping there was some way to write an alias and send it to the mudclient, asking it to stop triggers, pause for 1-2 seconds (to complete the current actions) then use the skill i want, then start up triggers again?

something like:
pause triggers - wait 1 second - use skill - start triggers

thanks in advance :)
USA Global Moderator #1
I would do this by creating a variable that is either True or False (or some variant thereof like 1/0, "a"/"b", or whatever. What you use doesn't really matter). Then in my trigger I would check the status of that variable before sending anything to the game and only send if the variable says to do so. Then my alias would toggle the value of that variable.
Amended on Sat 25 Jan 2020 07:36 PM by Fiendish
Australia Forum Administrator #2
You can also put the triggers in question into a trigger group (type some name into the Group box in the trigger).

Then you can enable or disable the entire group with one function call.

Template:function=EnableTriggerGroup
EnableTriggerGroup

The documentation for the EnableTriggerGroup script function is available online. It is also in the MUSHclient help file.