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
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Thu Apr 17, 2003 2:58 am   

using a CASE, i think
 
a few months ago, someone provided me with a small alias which allowed me to get specific things when i typed "who family"... i believe it was using a case, but my computer crashed and I have lost all of my old scripts. if someone would be so kind as to provide the basic structure of such an alias... i would be greatful... basically, it was for when i typed who with an arguement it would perform a certain action based on the arguement, and would just do a normal "who" if no arguement was given, i believe it was using a case, but I am not sure
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Apr 17, 2003 3:12 am   
 
http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=10256&FORUM_ID=7&CAT_ID=1&Topic_Title=multi+word+aliases&Forum_Title=zMUD+General+Discussion

Ton Diening
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Thu Apr 17, 2003 4:13 am   
 
thanks again TonDiening
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Thu Apr 17, 2003 4:25 am   
 
unfortunately it was not the right post, it was sligltly after that, ill go find it
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Apr 17, 2003 5:01 am   
 
Perhaps to keep things clearer a nested #IF would be better:

Alias: who
Value:


#IF (%numparam() > 0) {
#IF (%-1 = "family") {~who family} {
#IF (%-1 = "tossing") {~who dwarf} {
#IF (%-1 = "guilds") {~who guilds}
{#ECHO Who~: Unrecoqnized parameter}
}
}
} {~who}


Ton Diening
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Thu Apr 17, 2003 7:11 am   
 
thanks, but no thanks =p don't mean to be rude, but the other method was much easier, if it had an arguement that matched, it did what i told it, if not, it did what i typed in, and it was much easier to stick in and remove things from
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Thu Apr 17, 2003 4:41 pm   
 
....if i could ever find it
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Apr 17, 2003 7:41 pm   
 
A novel idea would be to fully describe what you want to do..

Obiviously my mind reading skillz are poor.

Ton Diening
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Thu Apr 17, 2003 8:11 pm   
 
actually, modified your nested if, thanks anyways
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