next - luxembourg/muxcode-clm GitHub Wiki
NEXT()
FUNCTION: next(<thing>)
If thing is an exit in a room, then next will return the next non-dark exit in the list of exits for that room. If thing is an object, then next will return the next object in the inventory list that the object is in. Otherwise, it returns a '#-1' string.