Sorting @Exitformat

An @exitformat that sorts by name.

Author: Raevnos
Category: Building
Commands: @create, @exitformat, @lset, @set.
Compatibility: CobraMUSH, PennMUSH.

Instructions

Copy and paste the below code into a compatible MUSH or MUX.

MUSHCode for Sorting @Exitformat

@create Sorting @exitformat
@lock/Link Sorting @exitformat==#0
@lset Sorting @exitformat/Link=no_inherit
@lock/Parent Sorting @exitformat=!=#0
@lset Sorting @exitformat/Parent=no_inherit
@set Sorting @exitformat = LINK_OK
@set Sorting @exitformat = VISUAL
@set Sorting @exitformat = NO_COMMAND
@EXITFORMAT Sorting @exitformat=if(words(%0), Obvious Exits:%r[itemize(sort(map(name, %0, %b, |), a, |), |)])
@set Sorting @exitformat/EXITFORMAT=no_command
&NAME Sorting @exitformat=name(%0)