Script: Boulder

From Ultima Online: The Second Age
Revision as of 01:14, 6 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, 0x11B6); <span style="color:#0000FF...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger creation
{
  setType(this, 0x11B6);
  return (0x00);
}
trigger speech("*")
{
  int Q4FS = getX(getLocation(this));
  int Q4FT = getY(getLocation(this));
  int Q4FU = getZ(getLocation(this));
  loc Q5C0;
  if (arg == "w" || (arg == "west"))
  {
    Q5C0 = (Q4FS - 0x01), Q4FT, Q4FU;
  }
  if (arg == "e" || (arg == "east"))
  {
    Q5C0 = (Q4FS + 0x01), Q4FT, Q4FU;
  }
  if (arg == "n" || (arg == "north"))
  {
    Q5C0 = Q4FS, (Q4FT - 0x01), Q4FU;
  }
  if (arg == "s" || (arg == "south"))
  {
    Q5C0 = Q4FS, (Q4FT + 0x01), Q4FU;
  }
  if (arg == "implode" || (arg == "Andrew"))
  {
    setType(this, 0x11A6);
    return (0x00);
  }
  if (arg == "boulder")
  {
    setType(this, 0x11B6);
    return (0x00);
  }
  if (!teleport(this, Q5C0))
  {
    return (0x00);
  }
  return (0x01);
}