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
➜ I am very new to using client triggers, alias's, timers, etc.
|
I am very new to using client triggers, alias's, timers, etc.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
3
| Posted by
| Meerclar
USA (733 posts) Bio
|
| Date
| Reply #30 on Mon 11 Aug 2014 08:43 PM (UTC) Amended on Mon 11 Aug 2014 08:49 PM (UTC) by Meerclar
|
| Message
| I've read that guide a number of times and I can do simple conversions but the more complicated it gets, the less accurate my conversions are :( I knew it had issues, that's why I brought it here to get help :)
Good news is I have confirmed that matching on score works for what SdwSkr was originally asking for help with and I'm just nostalgic enough for 3rd Age Krynn to give the place a look - not staying but they've done some interesting things with the place.
Thank you for the much sexier regex conversion and hopefully this gets SdwSkr well on the road to doing what he wants to do now and some enlightenment for his needs in the future. I know I learned a few things working on this little "thought exercise" trying to help him. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | | Top |
|
| Posted by
| SdwSkr
(12 posts) Bio
|
| Date
| Reply #31 on Mon 11 Aug 2014 10:51 PM (UTC) |
| Message
|
Ok I think I can word this so that someone can help me with what I want...
<triggers>
<trigger
enabled="y"
match="You lost your concentration."
regexp="y"
send_to="13"
sequence="100"
>
<send>c curse demian</send>
</trigger>
<trigger
enabled="y"
match="You narrow your eyes and glare"
regexp="y"
send_to="13"
sequence="100"
>
<send>c curse demian</send>
</trigger>
<trigger
enabled="y"
match="You wake and climb quickly to your feet."
regexp="y"
send_to="13"
sequence="100"
>
<send>c curse demian</send>
</trigger>
<trigger
enabled="y"
keep_evaluating="y"
match="You are feeling thirsty."
regexp="y"
send_to="13"
sequence="100"
>
<send>get bar can
drink bar
drink bar
drink bar
drink bar
drink bar
put bar can
</send>
</trigger>
<trigger
enabled="y"
keep_evaluating="y"
match="You are feeling hungry."
regexp="y"
send_to="13"
sequence="100"
>
<send>get rat can
eat rat
</send>
</trigger>
<trigger
enabled="y"
match="492/492m"
send_to="13"
sequence="100"
>
<send>prompt
wake</send>
</trigger>
<trigger
enabled="y"
match="You don't have enough mana."
send_to="13"
sequence="100"
>
<send>sleep camp
prompt</send>
</trigger>
</triggers>
There is 7 triggers here from my mushclient world, I clicked the copy button and got all this... What I want is for the You wake and climb quickly to your feet trigger to turn itself off after firing... I hope this makes it all easier for someone to help | | Top |
|
| Posted by
| Meerclar
USA (733 posts) Bio
|
| Date
| Reply #32 on Mon 11 Aug 2014 11:18 PM (UTC) Amended on Mon 11 Aug 2014 11:32 PM (UTC) by Meerclar
|
| Message
|
SdwSkr said:
<triggers>
<trigger
enabled="y"
match="You lost your concentration."
regexp="y"
send_to="13"
sequence="100"
>
<send>c curse demian</send>
</trigger>
<trigger
enabled="y"
match="You narrow your eyes and glare"
regexp="y"
send_to="13"
sequence="100"
>
<send>c curse demian</send>
</trigger>
<trigger
enabled="y"
match="You wake and climb quickly to your feet."
regexp="y"
send_to="13"
sequence="100"
>
<send>c curse demian</send>
</trigger>
<trigger
enabled="y"
keep_evaluating="y"
match="You are feeling thirsty."
regexp="y"
send_to="13"
sequence="100"
>
<send>get bar can
drink bar
drink bar
drink bar
drink bar
drink bar
put bar can
</send>
</trigger>
<trigger
enabled="y"
keep_evaluating="y"
match="You are feeling hungry."
regexp="y"
send_to="13"
sequence="100"
>
<send>get rat can
eat rat
</send>
</trigger>
<trigger
enabled="y"
match="492/492m"
send_to="13"
sequence="100"
>
<send>prompt
wake</send>
</trigger>
<trigger
enabled="y"
match="You don't have enough mana."
send_to="13"
sequence="100"
>
<send>sleep camp
prompt</send>
</trigger>
</triggers>
Easier to read now, give me a minute to look at them this way and I'll see about helping you fix stuffs.
Ok, you'll need to make 2 changes to do this the way you want. You'll need to label the wake trigger. Add EnableTrigger ("wake") to the out of mana trigger so the wake trigger is active when you're sleeping and EnableTrigger ("wake", 0) to the end of the wake trigger so it turns itself off when you get back up. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #33 on Tue 12 Aug 2014 02:55 AM (UTC) |
| Message
|
Quote:
What I want is for the You wake and climb quickly to your feet trigger to turn itself off after firing... I hope this makes it all easier for someone to help
<triggers>
<trigger
custom_colour="2"
enabled="y"
match="You wake and climb quickly to your feet."
name="You_Wake"
send_to="12"
sequence="100"
>
<send>
Send ("c curse demian")
EnableTrigger ("You_Wake", false) -- disable myself
</send>
</trigger>
</triggers>
 |
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
|
That gives the trigger a name (label) which is "You_Wake". Once it fires it disables itself. You will of course have to enable it elsewhere later. |
- 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.
115,967 views.
This is page 3, subject is 3 pages long:
1
2
3
It is now over 60 days since the last post. This thread is closed.
Refresh page
top