Difference between revisions of "Script Function: Q4TK"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4TK(<span style="color:#0000FF">obj</span> it) { <span style="color:#0000FF">if</s...") |
|||
Line 1: | Line 1: | ||
<span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4TK(<span style="color:#0000FF">obj</span> it) | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4TK(<span style="color:#0000FF">obj</span> it) | ||
{ | { | ||
− | <span style="color:#0000FF">if</span> (![[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](it, | + | <span style="color:#0000FF">if</span> (![[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](it, <span style="color:#800000">"warn0"</span>)) |
{ | { | ||
− | <span style="color:#0000FF">string</span> Q56O = | + | <span style="color:#0000FF">string</span> Q56O = <span style="color:#800000">"unknown warning"</span>; |
− | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](it, | + | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](it, <span style="color:#800000">"warn0"</span>, Q56O); |
} | } | ||
<span style="color:#0000FF">return</span> (); | <span style="color:#0000FF">return</span> (); | ||
} | } |
Latest revision as of 01:29, 8 October 2018
function void Q4TK(obj it) { if (!hasObjVar(it, "warn0")) { string Q56O = "unknown warning"; setObjVar(it, "warn0", Q56O); } return (); }