Difference between revisions of "IsVirtueGuard"
From UODemo Wiki
(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 ...') |
m (Protected "IsVirtueGuard" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(No difference)
|
Latest revision as of 09:45, 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.