Pattern script

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
(Introduction)
Line 1: Line 1:
 
= Introduction =
 
= 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 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:
 
Pattern scripts are used:

Revision as of 02:27, 3 July 2012

Introduction

Pattern scripts 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 could be damaged by certain weapon

Operators

# Operator Description # Operator Description # Operator Description
1 ( expression ) Expression 6 > Greater
2 & Logical 'And' 7 >= Greater or equal
3 | Logical 'Or' 8 < Lesser
4 = Equal 9 <= Lesser or equal
5 != Not equal 10 not Logical Not
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox