Difference between revisions of "Script Function: Q5LC"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5LC(<span style="color:#0000FF">list</span> Q4OL) { <span style="color:#0000FF">st...") |
|||
Line 3: | Line 3: | ||
<span style="color:#0000FF">string</span> x = Q4OL<nowiki>[</nowiki>[[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x00, [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q4OL) - 0x01)]; | <span style="color:#0000FF">string</span> x = Q4OL<nowiki>[</nowiki>[[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x00, [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q4OL) - 0x01)]; | ||
[[Script_Function:_Q4KE|<span style="color:#2B91AF">Q4KE</span>]](this, 0x03); | [[Script_Function:_Q4KE|<span style="color:#2B91AF">Q4KE</span>]](this, 0x03); | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, x); | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5LC(<span style="color:#0000FF">list</span> Q4OL) | ||
+ | { | ||
+ | <span style="color:#0000FF">string</span> x = Q4OL<nowiki>[</nowiki>[[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x00, [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q4OL) - 0x01)]; | ||
[[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, x); | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, x); | ||
<span style="color:#0000FF">return</span> (); | <span style="color:#0000FF">return</span> (); | ||
} | } |
Revision as of 14:33, 12 October 2018
function void Q5LC(list Q4OL) { string x = Q4OL[random(0x00, numInList(Q4OL) - 0x01)]; Q4KE(this, 0x03); bark(this, x); return (); }
function void Q5LC(list Q4OL) { string x = Q4OL[random(0x00, numInList(Q4OL) - 0x01)]; bark(this, x); return (); }