Debugging Command ‐ XTREE - KVonGit/quest5-stuff GitHub Wiki

  <command name="xtree_cmd">
    <pattern>xtree</pattern>
    <script><![CDATA[
      all = AllObjects()
      list = ""
      int = 0
      foreach (o, all) {
        int = int + 1
        o.prettyalias = o.prettyalias + o.name
        foreach (c, ListParents(o)) {
          o.prettyalias = "&nbsp;&nbsp;&nbsp;&nbsp;" + o.prettyalias
        }
        br = ""
        if (int > 1) {
          br = "<br/>"
        }
        list = list + br + o.prettyalias
      }
      msg (list)
    ]]></script>
  </command>
⚠️ **GitHub.com Fallback** ⚠️