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
svetlana
Newbie


Joined: 20 Nov 2003
Posts: 8

PostPosted: Thu Nov 20, 2003 5:55 pm   

or
 
how can i write an alias to take X, if there are no X, then take Y, if there are no Y, then Z?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Nov 20, 2003 6:33 pm   
 
You start by figuring out how you will know whether there are any X or Y. It won't be possible for an alias to do this, you'll probably need one or more triggers.
Reply with quote
svetlana
Newbie


Joined: 20 Nov 2003
Posts: 8

PostPosted: Thu Nov 20, 2003 7:11 pm   
 
ok
tell me what to do :-)
Reply with quote
Cuttlefish
Apprentice


Joined: 28 Oct 2003
Posts: 164

PostPosted: Thu Nov 20, 2003 7:15 pm   
 
Please provide an example of how you would do it manually (without zMUD), including the output from your mud and what commands you'd be typing. The trigger will all depend on how the text from your mud looks like.
Reply with quote
svetlana
Newbie


Joined: 20 Nov 2003
Posts: 8

PostPosted: Thu Nov 20, 2003 9:54 pm   
 
ok... i need to pull from the box nails if i have no nails in the box i want to pull out snake skin if there is no nails or snake skin i want to pull out a cat tail.


317H 165M 123V 9036804X 96C Вых:NS> look cont
You see a goodlooking container. you can put something in it.
Inside:
snake skin [2]
nail [2]
cat tail [2]
recall [14]

317H 165M 126V 9036804X 96C Вых:NS>

the alias will be something like that: take of the offhand from the laft hand;pull snake skin or cat tail or nail;take the (thing that was pulled out) in the left hand; make a spell

hope it was clear :)
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