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

  <command name="showme_cmd">
    <pattern>showme #object#</pattern>
    <script><![CDATA[
      atts = GetAttributeNames(object, false)
      msg ("<b>" + object.name + "</b>")
      foreach (att, atts) {
        msg (att + ":")
        msg (GetAttribute(object, att))
        msg ("")
      }
    ]]></script>
    <unresolved type="script"><![CDATA[
      obj = GetObject(object)
      if (obj <> null) {
        do (showme_cmd, "script", QuickParams("object", obj))
      }
      else {
        msg ("I don't understand '" + object + "'.")
      }
    ]]></unresolved>
  </command>
⚠️ **GitHub.com Fallback** ⚠️