Switch to edit mode.
Name(s): scan_6 scan_room1: {victim, tri} = args
2: ex = en = {}
3: for e in ($exit:descendants_suspended())
4: e.location == victim && (ex = {@ex, " " + e:nn() + " to " + `e.dest:nn() ! E_INVIND => tostr(e.dest)' + (victim:is_exit(e) ? "" | " (BROKEN)")})
5: e.dest == victim && (en = {@en, " " + e:nn() + " from " + `e.location:nn() + `e.location:is_exit(e) ? "" | " (BROKEN)" ! E_VERBNF => " (not a room)"' ! E_INVIND => "??"'})
6: endfor
7: return {"Exits: (" + tostr(length(ex)) + ")", @ex, "Entrances: (" + tostr(length(en)) + ")", @en}