Difference between revisions of "Script Function: Q5LY"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5LY(<span style="color:#0000FF">obj</span> Q68S) { <span style="color:#0000FF">int...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{ | { | ||
<span style="color:#0000FF">int</span> num = 0x00; | <span style="color:#0000FF">int</span> num = 0x00; | ||
− | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q68S, <span style="color:#800000">" | + | <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++; | ||
− | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](Q68S, <span style="color:#800000">" | + | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](Q68S, <span style="color:#800000">"fixStats"</span>, num); |
<span style="color:#0000FF">return</span> (); | <span style="color:#0000FF">return</span> (); | ||
} | } |
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 (); }