Difference between revisions of "Script Function: Q5RH"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5RH(<span style="color:#0000FF">obj</span> this) { <span style="color:#0000FF">int...") |
|||
Line 4: | Line 4: | ||
<span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"act"</span>)) | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"act"</span>)) | ||
{ | { | ||
− | <span style="color:#0000FF">int</span> act = [[ | + | <span style="color:#0000FF">int</span> act = [[Engine_Function:_getobjvar_int|<span style="color:#FF0000;font-weight:bold">getobjvar_int</span>]](this, <span style="color:#800000">"act"</span>); |
Q69E = [[Engine Function:_changeRange|<span style="color:#FF0000;font-weight:bold">changeRange</span>]](this, 0x00, 0x03, act); | Q69E = [[Engine Function:_changeRange|<span style="color:#FF0000;font-weight:bold">changeRange</span>]](this, 0x00, 0x03, act); | ||
} | } | ||
<span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"deact"</span>)) | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"deact"</span>)) | ||
{ | { | ||
− | <span style="color:#0000FF">int</span> deact = [[ | + | <span style="color:#0000FF">int</span> deact = [[Engine_Function:_getobjvar_int|<span style="color:#FF0000;font-weight:bold">getobjvar_int</span>]](this, <span style="color:#800000">"deact"</span>); |
Q69E = [[Engine Function:_changeRange|<span style="color:#FF0000;font-weight:bold">changeRange</span>]](this, 0x01, 0x03, deact); | Q69E = [[Engine Function:_changeRange|<span style="color:#FF0000;font-weight:bold">changeRange</span>]](this, 0x01, 0x03, deact); | ||
} | } | ||
return; | return; | ||
} | } |
Latest revision as of 02:44, 21 October 2018
function void Q5RH(obj this) { int Q69E; if (hasObjVar(this, "act")) { int act = getobjvar_int(this, "act"); Q69E = changeRange(this, 0x00, 0x03, act); } if (hasObjVar(this, "deact")) { int deact = getobjvar_int(this, "deact"); Q69E = changeRange(this, 0x01, 0x03, deact); } return; }