Difference between revisions of "Script: Statue spikes two"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> sndfx; <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"disarm"</span>) { <span style="co...") |
|||
Line 46: | Line 46: | ||
sfx(Q61U, 0x022D, 0x00); | sfx(Q61U, 0x022D, 0x00); | ||
[[Engine Function:_doLocAnimation|<span style="color:#FF0000;font-weight:bold">doLocAnimation</span>]](Q61U, 0x1109, 0x01, 0x10, 0x00, 0x00); | [[Engine Function:_doLocAnimation|<span style="color:#FF0000;font-weight:bold">doLocAnimation</span>]](Q61U, 0x1109, 0x01, 0x10, 0x00, 0x00); | ||
− | [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](target, [[ | + | [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](target, [[Engine Function:_dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x0A, 0x05)); |
} | } | ||
<span style="color:#0000FF">return</span> (0x01); | <span style="color:#0000FF">return</span> (0x01); | ||
} | } |
Latest revision as of 21:22, 18 October 2018
inherits sndfx;
trigger message("disarm") { if (!hasObjVar(this, "disarmed")) { setObjVar(this, "disarmed", 0x01); callBack(this, 0x3C, 0x24); } return (0x00); }
trigger callback(0x24) { if (hasObjVar(this, "disarmed")) { removeObjVar(this, "disarmed"); } return (0x00); }
trigger enterrange(0x01) { if (isDead(target)) { return (0x01); } if (!hasObjVar(this, "disarmed")) { loc Q61U - getLocation(this); sfx(Q61U, 0x022D, 0x00); doLocAnimation(Q61U, 0x1109, 0x01, 0x10, 0x00, 0x00); } return (0x01); }
trigger enterrange(0x00) { if (isDead(target)) { return (0x01); } if (!hasObjVar(this, "disarmed")) { loc Q61U - getLocation(this); sfx(Q61U, 0x022D, 0x00); doLocAnimation(Q61U, 0x1109, 0x01, 0x10, 0x00, 0x00); loseHP(target, dice(0x0A, 0x05)); } return (0x01); }