Difference between revisions of "Script: Dec4 blade trap"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"blades"</span>) { <span style="...") |
|||
Line 10: | Line 10: | ||
for(<span style="color:#0000FF">int</span> i = 0x00; i < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q67G); i++) | for(<span style="color:#0000FF">int</span> i = 0x00; i < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q67G); i++) | ||
{ | { | ||
− | [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](Q67G[i], [[ | + | [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](Q67G[i], [[Engine Function:_dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x0A, 0x05)); |
} | } | ||
} | } | ||
<span style="color:#0000FF">return</span> (0x00); | <span style="color:#0000FF">return</span> (0x00); | ||
} | } |
Latest revision as of 21:31, 18 October 2018
inherits globals;
trigger message("blades") { list Q67G; getMobsInRange(Q67G, getLocation(this), 0x01); doLocAnimation(getLocation(this), 0x11AD, 0x02, 0x0A, 0x00, 0x00); if (!numInList(Q67G) == 0x00) { for(int i = 0x00; i < numInList(Q67G); i++) { loseHP(Q67G[i], dice(0x0A, 0x05)); } } return (0x00); }