Mudlet help
Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Mudlet help
I've been toying with Mudlet. It seems powerful and flexible, but to use it fully, I need to become way more familiar with it. The learning curve is steep. Can we use this thread to compile resources and tips for people who are using this client?
Question: Can I set up a timer that triggers can turn on and off? Here's what I have in mind:
Timer sends combat command every x.x seconds.
Trigger activates the timer on something like "attacks you."
Trigger de-activates the timer on something like "The __ died."
Is such a setup possible?
Question: Can I set up a timer that triggers can turn on and off? Here's what I have in mind:
Timer sends combat command every x.x seconds.
Trigger activates the timer on something like "attacks you."
Trigger de-activates the timer on something like "The __ died."
Is such a setup possible?
"When I die, throw me to the wolves. I'm used to it."
- Diogenes the Cynic (trans. Davenport)
- Diogenes the Cynic (trans. Davenport)
Re: Mudlet help
Another question.
I want a trigger firing from
Then I want a special guild appraisal of (.+), which is my target.
But (.+) captures the full stop in, e.g., "You attack the foul-smelling orc."
So Genesis goes "What?"
Would something like grab all the words but not the full stop?
Thanks for any advice on this, or just learning how Mudlet works in general, you might be able to offer. The manual is helpful to an extent but obviously I could use some help. Plus I think maybe this isn't even Mudlet specific.
I want a trigger firing from
Code: Select all
^You attack the (.+)$
But (.+) captures the full stop in, e.g., "You attack the foul-smelling orc."
So Genesis goes "What?"
Would something like
Code: Select all
^You attack the (\w+)$
Thanks for any advice on this, or just learning how Mudlet works in general, you might be able to offer. The manual is helpful to an extent but obviously I could use some help. Plus I think maybe this isn't even Mudlet specific.
"When I die, throw me to the wolves. I'm used to it."
- Diogenes the Cynic (trans. Davenport)
- Diogenes the Cynic (trans. Davenport)
Re: Mudlet help
- Tarax the Terrible
- Myth
- Posts: 1331
- Joined: 09 Mar 2010 20:33
- Location: UK
Re: Mudlet help
Does this help?palaver wrote:I've been toying with Mudlet. It seems powerful and flexible, but to use it fully, I need to become way more familiar with it. The learning curve is steep. Can we use this thread to compile resources and tips for people who are using this client?
Question: Can I set up a timer that triggers can turn on and off? Here's what I have in mind:
Timer sends combat command every x.x seconds.
Trigger activates the timer on something like "attacks you."
Trigger de-activates the timer on something like "The __ died."
Is such a setup possible?
http://wiki.mudlet.org/w/Manual:Timer_Engine
http://genesisquests.pbworks.com/
Join up and help each other with Quests
Join up and help each other with Quests
Re: Mudlet help
Is there a way to use the mentioned (.+) in the browser triggers?
e.g. You find a (.+) --> put (.+) in backpack or something?
e.g. You find a (.+) --> put (.+) in backpack or something?
- Tarax the Terrible
- Myth
- Posts: 1331
- Joined: 09 Mar 2010 20:33
- Location: UK
Re: Mudlet help
Britannica almost does that in an example hereDrazson wrote:Is there a way to use the mentioned (.+) in the browser triggers?
e.g. You find a (.+) --> put (.+) in backpack or something?
https://www.genesismud.org/forums/viewt ... =37&t=3307
Using args to check then a command, could probably use args in the command too
Look here too
https://www.genesismud.org/forums/viewt ... =37&t=3285
http://genesisquests.pbworks.com/
Join up and help each other with Quests
Join up and help each other with Quests
Re: Mudlet help
It's incredibly nice of you to look this up, since you're not even a Mudlet user. I've looked at various parts of the manual, including this one.Tarax the Terrible wrote:Does this help?
http://wiki.mudlet.org/w/Manual:Timer_Engine
I get the basic commands, but I don't see how to make the enabling / disabling dependent on something like the MUD spitting out
"The [target] died" - inside a trigger. I think I could figure out how to make it its own trigger, but not how to embed this condition itself
in a trigger.
P.S. Haven't looked at the Britannica stuff yet - but I will, and I appreciate it.
"When I die, throw me to the wolves. I'm used to it."
- Diogenes the Cynic (trans. Davenport)
- Diogenes the Cynic (trans. Davenport)
Re: Mudlet help
Great. I will try this. Thank you.Ckrik wrote:Your regex is capturing the period. Try this:
Code: Select all
^You attack the (.+)\.$
"When I die, throw me to the wolves. I'm used to it."
- Diogenes the Cynic (trans. Davenport)
- Diogenes the Cynic (trans. Davenport)
Re: Mudlet help
Maybe an even more elegant solution would be to put the kill switch in the timer itself? I'll see if I can figure out how to do that.palaver wrote:I don't see how to make the enabling / disabling dependent on something like the MUD spitting out
"The [target] died" - inside a trigger. I think I could figure out how to make it its own trigger, but not how to embed this condition itself
in a trigger.
"When I die, throw me to the wolves. I'm used to it."
- Diogenes the Cynic (trans. Davenport)
- Diogenes the Cynic (trans. Davenport)
Re: Mudlet help
I realize this is no longer really about Mudlet, but about Perl regex. Sorry about that.
but I wonder how to put that into the trigger pattern. I'm guessing I can't do
I apologize in advance for anyone who reads that and finds it hideous, which I'm sure it is.
The basic question is, what do I put between the known beginning of the pattern "You attack ..." and the unknown stuff up until the last word, which is what I want to capture?
This worked beautifully. Now I'm wondering how I can capture just the last word. I find this suggestion:Ckrik wrote:Your regex is capturing the period. Try this:
Code: Select all
^You attack the (.+)\.$
Code: Select all
\s(\w+)$
Code: Select all
^You attack the (.+)\s(\w+)\.$
The basic question is, what do I put between the known beginning of the pattern "You attack ..." and the unknown stuff up until the last word, which is what I want to capture?
"When I die, throw me to the wolves. I'm used to it."
- Diogenes the Cynic (trans. Davenport)
- Diogenes the Cynic (trans. Davenport)
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/