Register forum user name Search FAQ

Gammon Forum

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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ pause triggers with an alias?

pause triggers with an alias?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Cnauir   (6 posts)  Bio
Date Sat 25 Jan 2020 03:48 PM (UTC)
Message
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 :)
Top

Posted by Fiendish   USA  (2,556 posts)  Bio   Global Moderator
Date Reply #1 on Sat 25 Jan 2020 07:35 PM (UTC)

Amended on Sat 25 Jan 2020 07:36 PM (UTC) by Fiendish

Message
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.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 26 Jan 2020 04:25 AM (UTC)
Message
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.


- 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.


13,819 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.