Script: Glasssword

From Ultima Online: The Second Age
Revision as of 21:48, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> ishitting { sfx(<span style="color:#FF0000;font-weight:bold">getLocation</span>(this), 0x3F, 0x3F); debugMes...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger ishitting
{
  sfx(getLocation(this), 0x3F, 0x3F);
  debugMessage("HIT");
  doDamageWithWeapon(containedBy(this), victim, this, 0x2710);
  deleteObject(this);
  return (0x01);
}
trigger equip
{
  if (isPlayer(equippedon))
  {
    list args = 0x0A;
    multimessage(equippedon, "usedme", args);
  }
  return (0x01);
}
trigger creation
{
  setHue(this, 0x53);
  int Q527 = applyWeaponTemplate(this, 0x3D);
  setObjVar(this, "lookAtText", "a glass sword");
  return (0x01);
}