Switch to edit mode.
Name(s): scan1: if ($command_utils:object_match_failed(dobj, dobjstr) || !this:ok())
2: return 0
3: elseif (!this.power)
4: $msg:mtell("power_isoff")
5: else
6: "Object being scanned might be broken, so ignore errors."
7: `$msg:mtell({dobj, "i"}, "scan") ! ANY'
8: if (this.debug)
9: this:do_scan(dobj) && this:look_self()
10: else
11: `this:do_scan(dobj) && this:look_self() ! ANY => $msg:mtell("error")'
12: endif
13: endif