Difference between revisions of "Script: Trap bigspike trap"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#FF0000;font-weight:bold">setType</span>(this, 0x01); <span style="color:#0000FF">...") |
|||
Line 19: | Line 19: | ||
{ | { | ||
[[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), 0x1D99, 0x02, 0x30, 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), 0x1D99, 0x02, 0x30, 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, 0x07)); |
} | } | ||
<span style="color:#0000FF">return</span> (0x01); | <span style="color:#0000FF">return</span> (0x01); | ||
} | } |
Latest revision as of 21:22, 18 October 2018
trigger creation { setType(this, 0x01); return (0x00); }
trigger enterrange(0x03) { if (!hasObjVar(this, "disarmed")) { doLocAnimation(getLocation(this), 0x1D99, 0x02, 0x30, 0x00, 0x00); } return (0x01); }
trigger enterrange(0x00) { if (!hasObjVar(this, "disarmed")) { doLocAnimation(getLocation(this), 0x1D99, 0x02, 0x30, 0x00, 0x00); loseHP(target, dice(0x0A, 0x07)); } return (0x01); }