Well, the array is more efficient, one cuz' you can use it anywhere, another because it's not as confusing.. :P |-\ \ / / \ \ \ /< \ \-| / \ ..... asha ..... bmw@efn.org mud.penguin.net 4000 On Thu, 31 Oct 1996, Daniel Koepke wrote: > On Thu, 31 Oct 1996, Skylar wrote: > > > Joe has arrived from up. > > Joe has arrived from above. > > > > I didnt mean the word "the" was the problem, its the up/down vs. above/below. > > Thats why you need the new array. > > Okay, it's not that much different: > > sprintf(buf, "$n has arrived from %s%s.", > (door < DOWN ? "the " : ""), > (door < DOWN ? dirs[rev_dir[door]] : > door = DOWN ? "below" : "above")); > > Then you'll get "Joe has arrived from above." as well as "Joe > has arrived from the north." Still doesn't require an array. > > > -- > Daniel Koepke > dkoepke@california.com > Forgive me father, for I am sin. > > > +-----------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > +-----------------------------------------------------------+ > +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST