Script: Debug

From Ultima Online: The Second Age
Revision as of 22:59, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> targetobj { <span style="color:#0000FF">if</span> (!isEditing|<spa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger targetobj
{
  if (!isEditing(user))
  {
    return (0x01);
  }
  if (usedon == NULL())
  {
    return (0x00);
  }
  setObjVar(usedon, "debugger", user);
  return (0x00);
}
trigger use
{
  if (!isEditing(user))
  {
    return (0x01);
  }
  systemMessage(user, "Select object to debug:");
  targetObj(user, this);
  return (0x00);
}