Help - Search - Members - Calendar
Full Version: Mudlet Help
Achaea's Forums > Off-Topic > Tech Support
Levius
I've decided to try and make the switch from Zmud to Mudlet, but am having some trouble converting. I've been sorting through the Mudlet manual, Lua manual, and regular expressions, but it's still all pretty far beyond me. I was wondering if I could get some help on what I've been trying to get done...

I'm a very visual person, and in Zmud I had buttons everywhere that would display various bits of information. For example I had a button in my bottom left corner that had the name "Target is: @target", and that would display my current target and update it as soon as I changed my target. I was wondering how to do something similar to that in Mudlet?

Now I've started by creating a new mini console, and thought I would do this somehow by echouserwindow ( "targetchannel" ), but that only captures text, whereas I wanted to have my target, or set of targets, change as i replaced them.

Also, I had a question about regular expressions. I have this "^t (\w+)" to set my target. I do "t rat" with that. But could somebody explain to me exactly what that + does? I've read it over and over in the regular expressions page linked from mudlets forums, and it's just so greek to me. Also, what does (\w.*) do? I've been trying to figure out the expression to catch any number of items, similar to the * in zmud, and cannot do it?

Thanks all for your patience with me!
Sena
I can't help with Mudlet or Lua, but I can help with the regular expressions. + means "one or more of the previous pattern", while * means "zero or more of the previous pattern". For \w+ the "previous pattern" affected by the + would be \w. \w matches letters and numbers. So, \w+ would be the same as %w in zscript. The regex equivalent of * is .*, since . matches any character. .* would then be zero or more of any character. You could also use .+, if you don't want it to be able to match nothing. (\w.*) would be a single number or letter, followed by zero or more of any character. The parentheses capture it just like they would in zMUD.

Trevize has a good regex tutorial here.
Levius
Thanks Sena! That's explanation just what I needed for regular expressions!
Irion
If you switch to MUSH instead you will have more people who can help you.

Also, I can help with lua, although I know nothing about mudlet specific functions.
Azu
I cannot even wait for Mudlet to get finalized so I can convert as well.

EDIT: and just so I add to the thread, I did find a few amazing tutorials on just about all that you mentioned in the OP, I'll re-find them and link you as soon as I can
Penquin
I'm waiting for Mudlet to be finalized, so I can also test it's text rendering capabilities in raid spam, compared to MUSH under wine.

MUSH is powerful, but with 1.7k+ triggers ( many of them being full regex and text replacing/gagging) it stutters quite a bit in even a one on one fight.
I am positive, this is an issue with WINE however, and not MUSH.

Which is why I would like to test out a linux native client that is identical to MUSHclient (one I'm familiar with).
Levius
yeah, but i'm on a mac without parallels or bootcamp, so tryin to make the best of it sad.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.