Difference between revisions of "Script Function: MyGuildTitle"
From Ultima Online: The Second Age
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
} | } | ||
<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">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">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>]](me, <span style="color:#800000">"myGuildTitle"</span>)) | ||
+ | { | ||
+ | [[Script_Function:_Cleanup|<span style="color:#2B91AF">cleanup</span>]](me); | ||
+ | } | ||
+ | <span style="color:#0000FF">string</span> x = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](me, <span style="color:#800000">"myGuildTitle"</span>); | ||
<span style="color:#0000FF">return</span> (x); | <span style="color:#0000FF">return</span> (x); | ||
} | } |
Latest revision as of 08:40, 19 October 2018
function string myGuildTitle() { if (!hasObjVar(this, "myGuildTitle")) { return (" "); } string x = getObjVar(this, "myGuildTitle"); return (x); }
function string myGuildTitle() { if (!hasObjVar(me, "myGuildTitle")) { cleanup(me); } string x = getObjVar(me, "myGuildTitle"); return (x); }