Gammon Forum
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
| 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 (22,928 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:
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.
2,976 views.
It is now over 60 days since the last post. This thread is closed.
 
Refresh page
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.