Difference between revisions of "Script Function: Q4KK"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4KK(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">int</span> Q...") |
(No difference)
|
Latest revision as of 03:27, 12 October 2018
function int Q4KK(obj this, int Q57Y) { int myLoyalty; string debug; myLoyalty = Q4SC(); if (0x00) { debug = myLoyalty; bark(this, debug); } if ((random(0x00, 0x64) + Q57Y) > myLoyalty) { Q4LP(this); if (myLoyalty < 0x00) { Q4IH(this); } return (0x00); } myLoyalty = myLoyalty + 0x01; setObjVar(this, "myLoyalty", myLoyalty); Q4LJ(this); return (0x01); }