|
Yasden Beginner
Joined: 19 Mar 2005 Posts: 17 Location: TorilMUD
|
Posted: Sun Mar 20, 2005 5:19 pm
#say oddity |
I've got an alias (from the last thread) that was fixed, so in order to fix the alias to remove items from the variable list, I had to replicate it, substituting #additem for #delitem.
Example:
Current Rescue List: Bob|Jim|Joe
"rrem joe"
Current Rescue List: Bob|Jim joe
That extra bit at the end I cannot figure out how to get rid of.
If I type "rescrep" (Just #says the current rescue list), the list reads:
Bob|Jim
Like it's supposed to.
The command is working fine other than that.
#ALIAS rrem {#loop %numparam {#delitem RescueList {%proper(%param(%i))}};#noop;#say Current Rescue List: @RescueList} "Rescue"
Is the alias used. Any suggestions?
Thanks again! |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Sun Mar 20, 2005 5:41 pm |
#ALIAS rrem {#loop %numparam {#delitem RescueList {%proper(%param(%i))}};#noop %0;#say Current Rescue List: @RescueList} "Rescue"
I'm not sure if it says it anywhere in the helps but %0 returns the entire parameter string that was passed to the alias so by accessing it we flag the entire parameter string as being used :) |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
Yasden Beginner
Joined: 19 Mar 2005 Posts: 17 Location: TorilMUD
|
Posted: Sun Mar 20, 2005 6:44 pm |
Thanks a ton, that fixed it...I had a feeling it was something with #noop!
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Mar 20, 2005 6:51 pm |
%0 is undocumented because it is not actually supported. It could stop working at anytime, %-1 should be used for this method.
See your other topic for the other solution. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Mon Mar 21, 2005 9:02 pm |
Stupid question, and not specificly related but what exactly does
Quote: |
%0 is undocumented because it is not actually supported. It could stop working at anytime |
What i mean is, if it's undocumented but works, then how is it not supported and HOW could it stop working at anytime? Why would it just up and quit?
|
|
_________________
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Mon Mar 21, 2005 9:05 pm |
If Zugg were to release a differant version that changed something in the way %0 is handled is how it would up and quit and noone would be the wiser.
|
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Mon Mar 21, 2005 11:40 pm |
ah, "at anytime" meaning downloading a new version of zmud. got ya :-)
|
|
_________________
|
|
|
|
|
|