Difference between revisions of "Script Function: Q5LY"
From Ultima Online: The Second Age
Line 4: | Line 4: | ||
<span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q68S, <span style="color:#800000">"fixStats"</span>)) | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q68S, <span style="color:#800000">"fixStats"</span>)) | ||
{ | { | ||
− | num = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](Q68S, <span style="color:#800000">" | + | num = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](Q68S, <span style="color:#800000">"fixStats"</span>); |
} | } | ||
num++; | num++; |
Latest revision as of 05:17, 24 October 2018
function void Q5LY(obj Q68S) { int num = 0x00; if (hasObjVar(Q68S, "fixStats")) { num = getObjVar(Q68S, "fixStats"); } num++; setObjVar(Q68S, "fixStats", num); return (); }