Difference between revisions of "Script Function: myGuildTitle"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> myGuildTitle() { <span style="color:#0000FF">if</span> (!Engine Function:_hasObjVa...") |
|||
Line 1: | Line 1: | ||
<span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> myGuildTitle() | <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> myGuildTitle() | ||
{ | { | ||
− | <span style="color:#0000FF">if</span> (![[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">" | + | <span style="color:#0000FF">if</span> (![[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"myGuildTitle"</span>)) |
{ | { | ||
<span style="color:#0000FF">return</span> (<span style="color:#800000">" "</span>); | <span style="color:#0000FF">return</span> (<span style="color:#800000">" "</span>); | ||
} | } | ||
− | <span style="color:#0000FF">string</span> x = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">" | + | <span style="color:#0000FF">string</span> x = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"myGuildTitle"</span>); |
<span style="color:#0000FF">return</span> (x); | <span style="color:#0000FF">return</span> (x); | ||
} | } |
Latest revision as of 06:05, 24 October 2018
function string myGuildTitle() { if (!hasObjVar(this, "myGuildTitle")) { return (" "); } string x = getObjVar(this, "myGuildTitle"); return (x); }