Difference between revisions of "IsVirtueGuard"

From UODemo Wiki
Jump to: navigation, search
(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 ...')
(No difference)

Revision as of 09:44, 27 January 2010

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.