Script: Despise switch

From Ultima Online: The Second Age
Revision as of 23:47, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">list</span> Q5DQ; <span style="...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger use
{
  list Q5DQ;
  if (!hasObjVar(this, "trapLocation"))
  {
    systemMessage(this, "No Trap Location Variable.");
    return (0x00);
  }
  loc trapLocation = getObjVar(this, "trapLocation");
  messageToRange(trapLocation, 0x02, "disarm", Q5DQ);
  callback(this, 0x3C, 0x26);
  return (0x01);
}
trigger callback(0x26)
{
  list Q5DQ;
  loc trapLocation = getObjVar(this, "trapLocation");
  messageToRange(trapLocation, 0x02, "reset", Q5DQ);
  return (0x00);
}