Difference between revisions of "Script Function: Q4TD"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4TD() { <span style="color:#0000FF">list</span> Q5KU = <span style="color:#80000...")
 
 
Line 1: Line 1:
 
   <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4TD()
 
   <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4TD()
 
   {
 
   {
     <span style="color:#0000FF">list</span> Q5KU = <span style="color:#800000">"foul"</span>, <span style="color:#800000">"vile"</span>, <span style="color:#800000">"evil"</span>, <span style="color:#800000">"dark"</span>, <span style="color:#800000">"cruel"</span>, <span style="color:#800000">"vicious"</span>, <span style="color:#800000">"scoundrelly"</span>, <span style="color:#800000">"dastardly"</span>, <span style="color:#800000">"cowardly"</span>, <span style="color:#800000">"craven"</span>, <span style="color:#800000">"foul and monstrous"</span>, <span style="color:#800000">"monstrous"</span>, <span style="color:#800000">"[[hide|<span style="color:#2B91AF">hide</span>]]ous"</span>, <span style="color:#800000">"terrible"</span>, <span style="color:#800000">"cruel, evil"</span>, <span style="color:#800000">"truly vile"</span>, <span style="color:#800000">"vicious and cunning"</span>, <span style="color:#800000">""</span>;
+
     <span style="color:#0000FF">list</span> Q5KU = <span style="color:#800000">"foul"</span>, <span style="color:#800000">"vile"</span>, <span style="color:#800000">"evil"</span>, <span style="color:#800000">"dark"</span>, <span style="color:#800000">"cruel"</span>, <span style="color:#800000">"vicious"</span>, <span style="color:#800000">"scoundrelly"</span>, <span style="color:#800000">"dastardly"</span>, <span style="color:#800000">"cowardly"</span>, <span style="color:#800000">"craven"</span>, <span style="color:#800000">"foul and monstrous"</span>, <span style="color:#800000">"monstrous"</span>, <span style="color:#800000">"hideous"</span>, <span style="color:#800000">"terrible"</span>, <span style="color:#800000">"cruel, evil"</span>, <span style="color:#800000">"truly vile"</span>, <span style="color:#800000">"vicious and cunning"</span>, <span style="color:#800000">""</span>;
 
     <span style="color:#0000FF">string</span> Q636 = Q5KU<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>]](Q5KU) - 0x01)];
 
     <span style="color:#0000FF">string</span> Q636 = Q5KU<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>]](Q5KU) - 0x01)];
 
     <span style="color:#0000FF">return</span> (Q636);
 
     <span style="color:#0000FF">return</span> (Q636);
 
   }
 
   }

Latest revision as of 16:44, 19 October 2018

 function string Q4TD()
 {
   list Q5KU = "foul", "vile", "evil", "dark", "cruel", "vicious", "scoundrelly", "dastardly", "cowardly", "craven", "foul and monstrous", "monstrous", "hideous", "terrible", "cruel, evil", "truly vile", "vicious and cunning", "";
   string Q636 = Q5KU[random(0x00, numInList(Q5KU) - 0x01)];
   return (Q636);
 }