View/Edit #6060:tell_contents

Switch to edit mode.

Name(s): tell_contents
1: "Sorts the 'generic' objects by the number of children, and displays them in two columns."
2: player:tell("You see the following generic objects:")
3: stuff = generics = {}
4: for thing in (args[1])
5:   this:is_generic(thing) ? generics = {@generics, $find_reference_in_ancestry(thing)} | (stuff = {@stuff, thing})
6: endfor
7: player:tell($string_utils:columnize($list_utils:reverse($list_utils:sort(generics)), 4))
8: return pass(stuff, @args[2..$])
9: "Last modified by Raptor (#6319) on Sun Jan 13 15:16:50 2002 MST."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Odo (#987)

You are not logged in.

[home | help | who | search | setup | code]