IsVirtueGuard

From UODemo Wiki
Revision as of 09:45, 27 January 2010 by Batlin (talk | contribs) (Protected "IsVirtueGuard" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.