Script: Enticepathfind

From Ultima Online: The Second Age
Revision as of 23:31, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { <span style="color:#0000FF">member</span> <span style="co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger creation
{
  member obj enticer = getObjVar(this, "enticer");
  removeObjVar(this, "enticer");
  member obj enticed = getObjVar(this, "enticed");
  removeObjVar(this, "enticed");
  return (0x00);
}
trigger pathnotfound(0x01)
{
  if (isHuman(this))
  {
    bark(enticed, "Hmm, I can't find that lovely music...");
  }
  barkTo(enticer, enticer, "They seem unable to reach you.");
  return (0x00);
}
trigger pathfound(0x01)
{
  if (isHuman(this))
  {
    bark(enticed, "It was you playing that lovely music!");
  }
  detachScript(enticed, "enticepathfind");
  return (0x00);
}