Difference between revisions of "Script: Fs damage"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { callback|<span style="color:#FF0000;font-weight:bold">c...") |
|||
Line 13: | Line 13: | ||
for(<span style="color:#0000FF">int</span> i = 0x00; i < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q4GI); i++) | for(<span style="color:#0000FF">int</span> i = 0x00; i < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q4GI); i++) | ||
{ | { | ||
− | [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](Q4GI[i], [[ | + | [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](Q4GI[i], [[Engine Function:_dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x14, 0x05)); |
} | } | ||
[[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, 0x02, 0x3E); | [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, 0x02, 0x3E); | ||
<span style="color:#0000FF">return</span> (0x01); | <span style="color:#0000FF">return</span> (0x01); | ||
} | } |
Latest revision as of 21:28, 18 October 2018
inherits globals;
trigger creation { callback(this, 0x02, 0x3E); return (0x01); }
trigger callback(0x3E) { list Q4GI; getMobsInRange(Q4GI, getLocation(this), 0x00); for(int i = 0x00; i < numInList(Q4GI); i++) { loseHP(Q4GI[i], dice(0x14, 0x05)); } callback(this, 0x02, 0x3E); return (0x01); }