Difference between revisions of "Script: Cov3 fire face"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> enterrange(0x01) { <span style="color:#0000FF">if</span> (!hasObjV...") |
|||
Line 6: | Line 6: | ||
{ | { | ||
[[Engine Function:_doLocAnimation|<span style="color:#FF0000;font-weight:bold">doLocAnimation</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x10FE, 0x02, 0x10, 0x00, 0x00); | [[Engine Function:_doLocAnimation|<span style="color:#FF0000;font-weight:bold">doLocAnimation</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x10FE, 0x02, 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, 0x03)); |
} | } | ||
<span style="color:#0000FF">return</span> (0x01); | <span style="color:#0000FF">return</span> (0x01); |
Latest revision as of 21:32, 18 October 2018
inherits globals;
trigger enterrange(0x01) { if (!hasObjVar(this, "disarmed")) { doLocAnimation(getLocation(this), 0x10FE, 0x02, 0x10, 0x00, 0x00); loseHP(target, dice(0x0A, 0x03)); } return (0x01); }
trigger message("covThreeFireTrapDisarm") { if (!hasObjVar(this, "disarmed")) { setObjVar(this, "disarmed", 0x01); callback(this, 0x78, 0x24); } return (0x00); }
trigger callback(0x24) { if (hasObjVar(this, "disarmed")) { removeObjVar(this, "disarmed"); } return (0x00); }
trigger 300 time("min:**") { if (!hasObjVar(this, "disarmed")) { doLocAnimation(getLocation(this), 0x10FE, 0x02, 0x10, 0x00, 0x00); } return (0x00); }