Difference between revisions of "Script Function: Q4RY"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RY(<span style="color:#0000FF">int</span> murderCount) { <span style="color:#00...") |
|||
Line 2: | Line 2: | ||
{ | { | ||
<span style="color:#0000FF">list</span> Q5Y8 = <span style="color:#800000">"hath murdered one too many!"</span>, <span style="color:#800000">"shall not slay again!"</span>, <span style="color:#800000">"hath slain too many!"</span>, <span style="color:#800000">"cannot continue to kill!"</span>, <span style="color:#800000">"must be stopped."</span>, <span style="color:#800000">"is a bloodthirsty monster."</span>, <span style="color:#800000">"is a killer of the worst sort."</span>, <span style="color:#800000">"hath no conscience!"</span>, <span style="color:#800000">"hath cowardly slain many."</span>, <span style="color:#800000">"must die for all our sakes."</span>, <span style="color:#800000">"sheds innocent blood!"</span>, <span style="color:#800000">"must fall to preserve us."</span>, <span style="color:#800000">"must be taken care of."</span>, <span style="color:#800000">"is a thug and must die."</span>, <span style="color:#800000">"cannot be redeemed."</span>, <span style="color:#800000">"is a shameless butcher."</span>, <span style="color:#800000">"is a callous monster."</span>, <span style="color:#800000">"is a cruel, casual killer."</span>; | <span style="color:#0000FF">list</span> Q5Y8 = <span style="color:#800000">"hath murdered one too many!"</span>, <span style="color:#800000">"shall not slay again!"</span>, <span style="color:#800000">"hath slain too many!"</span>, <span style="color:#800000">"cannot continue to kill!"</span>, <span style="color:#800000">"must be stopped."</span>, <span style="color:#800000">"is a bloodthirsty monster."</span>, <span style="color:#800000">"is a killer of the worst sort."</span>, <span style="color:#800000">"hath no conscience!"</span>, <span style="color:#800000">"hath cowardly slain many."</span>, <span style="color:#800000">"must die for all our sakes."</span>, <span style="color:#800000">"sheds innocent blood!"</span>, <span style="color:#800000">"must fall to preserve us."</span>, <span style="color:#800000">"must be taken care of."</span>, <span style="color:#800000">"is a thug and must die."</span>, <span style="color:#800000">"cannot be redeemed."</span>, <span style="color:#800000">"is a shameless butcher."</span>, <span style="color:#800000">"is a callous monster."</span>, <span style="color:#800000">"is a cruel, casual killer."</span>; | ||
+ | <span style="color:#0000FF">string</span> Q5Y4 = Q5Y8<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>]](Q5Y8) - 0x01)]; | ||
+ | <span style="color:#0000FF">return</span> (Q5Y4); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RY(<span style="color:#0000FF">obj</span> killer) | ||
+ | { | ||
+ | <span style="color:#0000FF">list</span> Q5Y8 = <span style="color:#800000">"hath murdered one too many!"</span>, <span style="color:#800000">"hath killed "</span> + [[Engine Function:_getHisHer|<span style="color:#FF0000;font-weight:bold">getHisHer</span>]](killer) + <span style="color:#800000">" last!"</span>, <span style="color:#800000">"shall not slay again!"</span>, <span style="color:#800000">"hath slain too many!"</span>, <span style="color:#800000">"cannot continue to kill!"</span>, <span style="color:#800000">"must be stopped."</span>, <span style="color:#800000">"is a bloodthirsty monster."</span>, <span style="color:#800000">"is a killer of the worst sort."</span>, <span style="color:#800000">"hath no conscience!"</span>, <span style="color:#800000">"hath cowardly slain many."</span>, <span style="color:#800000">"must die for all our sakes."</span>, <span style="color:#800000">"sheds innocent blood!"</span>, <span style="color:#800000">"must fall to preserve us."</span>, <span style="color:#800000">"must be taken care of."</span>, <span style="color:#800000">"is a thug and must die."</span>, <span style="color:#800000">"cannot be redeemed."</span>, <span style="color:#800000">"is a shameless butcher."</span>, <span style="color:#800000">"is a callous monster."</span>, <span style="color:#800000">"is a cruel, casual killer."</span>; | ||
<span style="color:#0000FF">string</span> Q5Y4 = Q5Y8<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>]](Q5Y8) - 0x01)]; | <span style="color:#0000FF">string</span> Q5Y4 = Q5Y8<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>]](Q5Y8) - 0x01)]; | ||
<span style="color:#0000FF">return</span> (Q5Y4); | <span style="color:#0000FF">return</span> (Q5Y4); | ||
} | } |
Latest revision as of 17:35, 12 October 2018
function string Q4RY(int murderCount) { list Q5Y8 = "hath murdered one too many!", "shall not slay again!", "hath slain too many!", "cannot continue to kill!", "must be stopped.", "is a bloodthirsty monster.", "is a killer of the worst sort.", "hath no conscience!", "hath cowardly slain many.", "must die for all our sakes.", "sheds innocent blood!", "must fall to preserve us.", "must be taken care of.", "is a thug and must die.", "cannot be redeemed.", "is a shameless butcher.", "is a callous monster.", "is a cruel, casual killer."; string Q5Y4 = Q5Y8[random(0x00, numInList(Q5Y8) - 0x01)]; return (Q5Y4); }
function string Q4RY(obj killer) { list Q5Y8 = "hath murdered one too many!", "hath killed " + getHisHer(killer) + " last!", "shall not slay again!", "hath slain too many!", "cannot continue to kill!", "must be stopped.", "is a bloodthirsty monster.", "is a killer of the worst sort.", "hath no conscience!", "hath cowardly slain many.", "must die for all our sakes.", "sheds innocent blood!", "must fall to preserve us.", "must be taken care of.", "is a thug and must die.", "cannot be redeemed.", "is a shameless butcher.", "is a callous monster.", "is a cruel, casual killer."; string Q5Y4 = Q5Y8[random(0x00, numInList(Q5Y8) - 0x01)]; return (Q5Y4); }