|
svetlana Newbie
Joined: 20 Nov 2003 Posts: 8
|
Posted: 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?
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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.
|
|
|
|
svetlana Newbie
Joined: 20 Nov 2003 Posts: 8
|
Posted: Thu Nov 20, 2003 7:11 pm |
ok
tell me what to do :-) |
|
|
|
Cuttlefish Apprentice
Joined: 28 Oct 2003 Posts: 164
|
Posted: 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.
|
|
|
|
svetlana Newbie
Joined: 20 Nov 2003 Posts: 8
|
Posted: 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 :) |
|
|
|
|
|