Pattern script
From Blood Wiki
(Difference between revisions)
(→Operators) |
|||
Line 9: | Line 9: | ||
= Operators = | = Operators = | ||
− | {| border=1 cellspacing=0 cellpadding=3 style="border-collapse: collapse" | + | {| border=1 cellspacing=0 cellpadding=3 style="border-collapse: collapse" width=60% |
− | ! Operator | + | ! width=15% | Operator |
− | ! Description | + | ! width=25% | Description |
+ | ! width=15% | Operator | ||
+ | ! width=25% | Description | ||
|- | |- | ||
| ( ''expression'' ) | | ( ''expression'' ) |
Revision as of 02:18, 3 July 2012
Introduction
Pattern script is special kind of expressions that returns 1 or 0. Pattern scripts are used to determine availability of some functionality or event.
Pattern scripts are used:
- By monsters to check if its a time to spawn/hide
- By gamemodels to check if it could be hit by certain weapon
Operators
Operator | Description | Operator | Description |
---|---|---|---|
( expression ) | Expression | ||
& | Logic 'And' | ||
Logic 'Or' | |||
> | Bigger | ||
< | Lesser |