Script: Trap disarmable

From Ultima Online: The Second Age
Revision as of 08:11, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"disarm"</span>) { <span style="...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger message("disarm")
{
  if (!hasObjVar(this, "disarmed"))
  {
    setObjVar(this, "disarmed", 0x01);
  }
  return (0x00);
}
trigger message("reset")
{
  if (hasObjVar(this, "disarmed"))
  {
    removeObjVar(this, "disarmed");
  }
  return (0x00);
}