[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  trigger group enable/disable

trigger group enable/disable

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


Posted by Jaksynrender   (7 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,928 posts)  [Biography] 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
[Go to top] top

Posted by Jaksynrender   (7 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,928 posts)  [Biography] 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
[Go to top] 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.


2,976 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]