IsVirtueGuard

From UODemo Wiki
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.