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.
 Entire forum ➜ MUSHclient ➜ General ➜ trigger group enable/disable

trigger group enable/disable

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


Posted by Jaksynrender   (7 posts)  Bio
Date Tue 17 Jan 2023 03:33 PM (UTC)

Amended on Tue 17 Jan 2023 06:42 PM (UTC) by Jaksynrender

Message
so this is my auto mira for my tank(seperate window i can't figure out how to send variable from world 4 to world 1 so this is my solution)



<triggers>
  <trigger
   group="mirar"
   lines_to_match="2"
   match="Buf:hurt"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>Execute("mroam")
EnableTriggerGroup ("mirar", false)</send>
  </trigger>
</triggers>


this works perfect only fires once even when multiple prompts come up my problem is reenabling the trigger
this is my trigger


<triggers>
  <trigger
   enabled="y"
   match="Buf:full"
   send_to="12"
   sequence="100"
  >
  <send>EnableTriggerGroup("mirar", true)</send>
  </trigger>
</triggers>


now i have used all the versions of EnableGroup TriggerGroup idk world.EnableTrigger i tried everything on that page and i cannot get the mirar to reenable (i know the ones in this paragraph may not be correct i did copy and past from the website this is just from my bad memory)

i even tried adding to the alias mroam to enable the trigger
Top

Posted by Nick Gammon   Australia  (23,101 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 17 Jan 2023 09:56 PM (UTC)
Message
I can't see anything wrong with your enable trigger. Are all these triggers in the same world file? And the messages "Buf:full" and "Buf:hurt"?

Can you copy/paste the output from the MUD that is supposed to activate these triggers?

Quote:

i know the ones in this paragraph may not be correct i did copy and past from the website this is just from my bad memory)


We need to see the actual triggers, from your world file, not some "bad memory" ones.

Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Jaksynrender   (7 posts)  Bio
Date Reply #2 on Wed 18 Jan 2023 01:41 AM (UTC)

Amended on Wed 18 Jan 2023 12:49 PM (UTC) by Jaksynrender

Message
< 1518hp 431(1555)mana 999mv Buf:hurt Vic:wounded >

< 1518hp 331(1555)mana 999mv Buf:full Vic:wounded >

like i said it turns off properly but even from an alias it wont turn back on


<aliases>
  <alias
   match="mroam"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>Execute ("cast 'mira' roam")
world.EnableGroup ("mirar", true)</send>
  </alias>
</aliases>


i also try and send this
i have tried all of these yes i know that the vbscript, jscript, and python should not work but i tried all of them anyway
Top

Posted by Nick Gammon   Australia  (23,101 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 18 Jan 2023 02:13 AM (UTC)
Message
I notice that in your trigger you are matching on:


match="Buf:full"


However that is not marked as a regular expression. Thus it will only match on a line containing that and only that. However what you are receiving is:


 < 1518hp 331(1555)mana 999mv Buf:full Vic:wounded > 


Thus, the trigger will not fire.

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


5,575 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.