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
| Parameter | Description |
|---|---|
| BaseObject | The character whose role is checked (Self or Target). |
| CompareType | Equal: takes part in such a Context in that role; NotEqual: does not. |
| S1 | Leave empty (None). Every active Context is checked, whatever its ContextId. |
| S2 | Role name, the same as HasContext. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Self is the counterpart in any Context | Self | ContextRole | Equal | Counterpart | |
| Self is not the subject of any Context Target takes part in | Self | ContextRole | NotEqual | Subject |