Script: Sha door one

From Ultima Online: The Second Age
Revision as of 14:14, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#FF0000;font-weight:bold">setObjVar</span>(this, <span style="color:#800000">"isLoc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger creation
{
  setObjVar(this, "isLocked", 0x0100);
  return (0x00);
}
trigger message("unlock")
{
  if (hasObjVar(this, "isLocked"))
  {
    removeObjVar(this, "isLocked");
  }
  return (0x00);
}
trigger message("lockup")
{
  bark(this, "I should be locked");
  if (!hasObjVar(this, "isLocked"))
  {
    setObjVar(this, "isLocked", 0x0100);
  }
  return (0x00);
}
trigger use
{
  if (hasObjVar(this, "isLocked"))
  {
    bark(this, "It appears to be locked.");
    return (0x00);
  }
  return (0x01);
}