# ExitsForAMOO

Ahn Jinsu (jsahn@boulez.snu.ac.kr)
Mon, 28 Aug 1995 08:12:38 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    #3:ex*its   none none none
      1: player:tell("Obvious exits:");
      2: oex = {};
      3: if (this.exits)
      4:   for exit in (this.exits)
      5:     if (exit.obvious)
      6:       oex = {@oex, {exit.name, valid(exit.dest) ? exit.dest.dark ? "too
     dark to tell" | exit.dest.name | "???"}};
      7:     endif
      8:   endfor
      9:   if (oex)
     10:     maxwidth = 0;
     11:     for oexit in (oex)
     12:       maxwidth = max(maxwidth, length(oexit[1]));
     13:     endfor
     14:   endif
     15: endif
     16: if (!oex)
     17:   player:tell("  none.");
     18: else
     19:   for oexit in (oex)
     20:     player:tell("  ", $string_utils:left(oexit[1], maxwidth), " - ",
     oexit[2]);
     21:   endfor
     22: endif

    Ahn, Jin-su
    Seoul National University