Script: Trap bigspike trap

From Ultima Online: The Second Age
Revision as of 08:12, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#FF0000;font-weight:bold">setType</span>(this, 0x01); <span style="color:#0000FF">...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger creation
{
  setType(this, 0x01);
  return (0x00);
}
trigger enterrange(0x03)
{
  if (!hasObjVar(this, "disarmed"))
  {
    doLocAnimation(getLocation(this), 0x1D99, 0x02, 0x30, 0x00, 0x00);
  }
  return (0x01);
}
trigger enterrange(0x00)
{
  if (!hasObjVar(this, "disarmed"))
  {
    doLocAnimation(getLocation(this), 0x1D99, 0x02, 0x30, 0x00, 0x00);
    loseHP(target, dice(0x0A, 0x07));
  }
  return (0x01);
}