 |
hellchyldx Newbie
Joined: 14 Aug 2003 Posts: 5 Location: USA
|
Posted: Thu Feb 19, 2004 7:39 pm
Perameter Changes |
Posted - 02/17/2004 : 15:28:35
--------------------------------------------------------------------------------
New version of Zmud is available, I have been using the beta versions for quite a while and this version works quite a bit faster than Zmud 6.62.
If you know your scripts will work as you upgrade, this version is solid. All of my scripts work a lot faster with this version and don't have any problems with upgrades.
One thing to keep in mind, if you are using parameters %1 - %99 in your trigger patterns, this is not permitted anymore since this is not how the parameters were supposed to be used. Instead, for an example, you should be using (*), %d, %w, %s, %x and many more that are offered in the help section.
This version also fixes the nasty memory leak, which has plagued prior versions as well as offers Perl support, a new and better mapper, XP theme support and many other neat little subtle features.
I've been trying to fix my script to accomodate to this change but every time I replaced a %1 with a %w it would just send a %w to my script... what's going on? while the perameters weren't supposed to be used there wasn't anything wrong with my script... now it doesn't work... could someone tell me how to revert to version 6.62 till I can figure this crap out? |
|
|
 |
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Thu Feb 19, 2004 8:00 pm |
In order to use %1-%99 you have to enclose the parameter with "()"
like this
#TRIGGER {(%w) tells you, '} {tell %1 I'm busy} |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Feb 20, 2004 1:24 am |
Actually, you can still use %1..%99 in the trigger pattern. They are converted to (*) by default. The main issue is that the %1..%99 need to be in numeric order. So, something like:
#TRIGGER {%1 tells you '%2'}
works fine, but if you did
#TRIGGER {%2 tells you '%1'}
then %1 and %2 won't have the correct values when your commands are executed. |
|
|
 |
hellchyldx Newbie
Joined: 14 Aug 2003 Posts: 5 Location: USA
|
Posted: Sun Feb 22, 2004 5:43 pm |
Okay everyone's been telling me I should replace this and that with %d, %n, and %w and so forth but so far every time I replace something it doesn't work... how can I roll back to version 6.62 or can I get a copy of 6.62? It seems this is going to take some work to figure this out and I'd like to get back to playing in the meantime.
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Feb 22, 2004 9:03 pm |
Zugg only keeps the current public and beta versions available for download (there is no current beta version at this time). The download file for 6.62 is no longer publicly available, although you might find someone who kept a copy of it.
The easiest way to rollback to a previous version is to simply delete the new files and replace them with the files from your backup of the previous version. Of course, this only works if you made a backup of your previous version before upgrading.
It sounds like you are confusing the trigger pattern with the trigger value. *, %w, %d, and the like are used in the pattern. %1, %2, %3 and the like are used in the value.
#TR {pattern} {value}
The trigger pattern is the part of the trigger which matches the MUD output. This is where you use wildcards such as *, %d, %w, %s, and %x. Any portion of the pattern may be enclosed in parentheses to store that portion of the output in a numbered parameter for use in the trigger value.
The trigger value is the part of the trigger where you put the commands you want the trigger to execute. Wildcards are not used in the trigger value. Instead, the numbered parameters %1-%99 are used to refer to the information which was stored in them by the pattern.
If you are having trouble with particular triggers, post the details of those triggers (both the pattern and the value, with examples of the text to be matched and the commands to be executed) and we can probably tell you how to change them.
This is the only topic you've posted in since version 7.01 as hellchyldx, so we don't know who the "everyone" is that's telling you to change things, or what they've told you, or why it's giving you problems. It appears you're getting your advice from another forum, as I don't recognize the apparent quote from a post on the 17th and can't find it with Search. |
|
|
 |
|
|
|
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
|
|