Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Yasden
Beginner


Joined: 19 Mar 2005
Posts: 17
Location: TorilMUD

PostPosted: 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!
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: 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."
Reply with quote
Yasden
Beginner


Joined: 19 Mar 2005
Posts: 17
Location: TorilMUD

PostPosted: Sun Mar 20, 2005 6:44 pm   
 
Thanks a ton, that fixed it...I had a feeling it was something with #noop!
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: 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?
_________________
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: 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.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Mon Mar 21, 2005 11:40 pm   
 
ah, "at anytime" meaning downloading a new version of zmud. got ya :-)
_________________
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net