trigger group enable/disable

Posted by Jaksynrender on Tue 17 Jan 2023 03:33 PM — 4 posts, 12,808 views.

#0
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
Amended on Tue 17 Jan 2023 06:42 PM by Jaksynrender
Australia Forum Administrator #1
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.
#2
< 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
Amended on Wed 18 Jan 2023 12:49 PM by Jaksynrender
Australia Forum Administrator #3
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.