Difference between revisions of "Script Function: Q5LY"

From Ultima Online: The Second Age
Jump to: navigation, search
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">"[[fixStats|<span style="color:#2B91AF">fixStats</span>]]"</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">"[[fixStats|<span style="color:#2B91AF">fixStats</span>]]"</span>);
 
       num = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](Q68S, <span style="color:#800000">"[[fixStats|<span style="color:#2B91AF">fixStats</span>]]"</span>);

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 ();
 }