zMUD question(s)

by Unknown

Back to Combat Guide.

Kharaen2008-02-14 01:12:13
Shouldn't this be moved to the mechanic's corner?
Unknown2008-02-14 03:10:48
Don't use %1 in your pattern. If you want to capture something, put it in parentheses. Use %d for numbers, %w for words, * for a more open wildcard match, etc.

Wrapping with 0 in the game and 80 in zMUD is a good idea. You don't have much control over where your linebreaks are (without making complicated triggers), but I think you'll do fine as is.

(Yes, this should probably be in the Mechanic's Corner.)
Unknown2008-02-14 22:51:57
QUOTE
If you want to capture something, put it in parentheses.


put the %1 in parentheses? like

Jiskirr asks (%1) a question.

?
Kharaen2008-02-14 23:06:06
Yeah. And don't use %1. Use (%w) in that instance, since it'll likely be a name.

You mods, why isn't this in the Mechanic's Corner. If this isn't scripting help, I don't know what is tongue.gif
Unknown2008-02-16 12:11:29
Using %1 through %99 in trigger patterns is supported in zMUD, but only for backwards compatibility with older versions of zMUD. It's not recommended for use now, as we have better wildcard pattern matches. If you don't know what they are, look them up in the help files and you'll find a complete list with examples. (The %1 through %99 is not supported at all in CMUD trigger patterns.)