Skip to main content

Condition_ContextRole

Description

Checks whether the BaseObject takes part, in the S2 role, in any active Context, whatever its ContextId. When the script has a NonBaseObject, it must also take part in that Context in any role. A Context whose Lifetime is over but has not been cleaned up yet does not count. S1 must be empty. A value in S1 is a validation error, and the condition is false (both Equal and NotEqual).

Parameters

ParameterDescription
BaseObjectThe character whose role is checked (Self or Target).
CompareTypeEqual: takes part in such a Context in that role; NotEqual: does not.
S1Leave empty (None). Every active Context is checked, whatever its ContextId.
S2Role name, the same as HasContext.

Examples

DescriptionBaseObjectCommandCompareTypeS1S2
Self is the counterpart in any ContextSelfContextRoleEqualCounterpart
Self is not the subject of any Context Target takes part inSelfContextRoleNotEqualSubject