|
dark75rose |
Posted: Sat Jan 04, 2003 12:00 pm
help with an exp tnl status |
|
Timas Novice
Joined: 05 Jan 2003 Posts: 39 Location: Netherlands
|
Posted: Fri Jan 10, 2003 7:28 pm |
I haven't tried this so I'm not 102% on it, but I think zMud FIRST looks at the vars with () around it and then checks for the ones without them.
so in the case of the named pattern..
You have %n experience points and need (%n) to advance.
%1 = (%n)
%2 = %n
-------------
Small warning btw, this has been posted elsewhere on the boards as well:
#trigger {%1 slaps you.} {assist %1}
#trigger {%1 looks at you.} {insult %1}
Imagine me sending you some text that looks like:
noone;remove all;drop all;quit slaps you.
wanna know what happens? Your trigger will react to the first word.. so for you its:
Assist noone
after which it does "remove all" "drop all" "quit" If you use %d %w %n the posibility of that happening is from what I know, imposible.
"If I fall asleep, wake me" |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Jan 10, 2003 10:02 pm |
Ok, the correct way is to use the wildcards described in the Pattern Matching help topic in the help file. When you want one of these values saved, you surround it with parenthesis.
zMUD, for backwards compatibility with other clients, also allows you to use %1..%n in the pattern and it is supposed to work like (*). However, this is undocumented, incorrect syntax, that could break at any moment and produce unexpected results. For this reason, doing this is not advised.
Kjata |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|