This is a sequence of Restrictions combined with AND and OR boolean operations and optional nesting with parentheses to create a complex condition that is used to determine if a Task should execute or an Alternate Description be displayed in a text box. The restrictons tab of a task looks like this:
While the restrictions for an Alternate Description or a movement direction are displayed on a separate form:
- The AND operation returns TRUE only if the restriction before it and the one after it are both TRUE (They both pass).
- The OR operation returns TRUE if either of the restrictions pass.
- Operations nested inside of parentheses will be calculated first.
- Where parentheses are not used the AND operation has a higher priority than OR, so ADRIFT will evaluate all of the AND operations first and then do the OR operations on those results.
The boolean AND/OR relation between two restrictions (or groups of restrictions) is toggled by clicking on it.
Likewise the parentheses to the left and right of the restrictions can be toggled on and off by clicking them, with double parentheses accessible by holding down the CTRL key as you click.
Individual Restrictions can be moved up and down by selecting them and using the arrow buttons on the right, and can be edited by double clicking on them, or pressing the "Edit" button when selected. New Restrictions are added with the "Add" button, and deleted by selecting them and pressing "Delete".
ADRIFT will only check the restrictions that are needed to determine if the overall boolean equation passes or not. There are typically a series of ANDed restrictions at the start of the list that check basic conditions such as whether the referenced object exists and is at the same location as the player. If any of these fail then its restriction message is printed and no further restrictions need to be checked. If there is an OR between two restrictions then the second one is only checked if the first one fails. If both fail then the restriction message of the second restriction is printed.
|<<< Restrictions||Main Page||Actions >>>|