Difference between revisions of "Script: Statue secret d"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">if</span> (!<span style="color:#FF0000;font-weight:bold">hasObjVar</span>(this,...")
 
(No difference)

Latest revision as of 13:45, 5 October 2018

trigger use
{
  if (!hasObjVar(this, "unlocked"))
  {
    bark(this, "This door appears to be locked.");
    return (0x00);
  }
  return (0x01);
}
trigger message("unlock")
{
  if (!hasObjVar(this, "unlocked"))
  {
    setObjVar(this, "unlocked", 0x01);
    callback(this, 0x3C, 0x01);
  }
  return (0x00);
}
trigger callback(0x01)
{
  if (hasObjVar(this, "unlocked"))
  {
    removeObjVar(this, "unlocked");
  }
  return (0x00);
}