Difference between revisions of "Script Function: guildName"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> guildName() { <span style="color:#0000FF">if</span> (!hasObjVar|<span style="co...") |
m (Grimoric moved page Script Function: GuildName to Script Function: guildName without leaving a redirect) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> guildName() | <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> guildName() | ||
{ | { | ||
− | <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">"guildName"</span>)) |
{ | { | ||
<span style="color:#0000FF">list</span> args; | <span style="color:#0000FF">list</span> args; | ||
Line 7: | Line 7: | ||
<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">"[[guildName|<span style="color:#2B91AF"> | + | <span style="color:#0000FF">string</span> x = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"guildName"</span>); |
+ | <span style="color:#0000FF">return</span> (x); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> guildName() | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (![[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](me, <span style="color:#800000">"guildName"</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">"guildName"</span>); | ||
<span style="color:#0000FF">return</span> (x); | <span style="color:#0000FF">return</span> (x); | ||
} | } |
Latest revision as of 05:31, 24 October 2018
function string guildName() { if (!hasObjVar(this, "guildName")) { list args; message(this, "removedFromGuild", args); return (""); } string x = getObjVar(this, "guildName"); return (x); }
function string guildName() { if (!hasObjVar(me, "guildName")) { cleanup(me); } string x = getObjVar(me, "guildName"); return (x); }