IsVirtueGuard
From UODemo Wiki
Revision as of 09:44, 27 January 2010 by Batlin (talk | contribs) (Created page with 'integer '''isVirtueGuard'''(object ''MobileObject''); This function will return 1 if the given mobile is valid and is either an "order guard" or a "chaos guard". Otherwise 0 is ...')
integer isVirtueGuard(object MobileObject);
This function will return 1 if the given mobile is valid and is either an "order guard" or a "chaos guard". Otherwise 0 is returned.
The following 2 code samples are equal:
if(isVirtueGuard(this))
{
systemMessage(this, "I am a virtue guard.");
}
else
{
systemMessage(this, "I am not a virtue guard.");
}
if(isOrderGuard(this) || isChaosGuard(this))
{
systemMessage(this, "I am a virtue guard.");
}
else
{
systemMessage(this, "I am not a virtue guard.");
}
Return to the Command List.