Match

Description
Provides a way to compare game text with particular patterns to find a match. When a match is found, the script jumps to the target label to continue execution. There is no return from a match.

Must be combined with matchwait.

Syntax
match match clear

Parameters

 * label
 * target label to jump to when the pattern matches the game text
 * pattern
 * non-regex pattern to match against

Examples
match wave when just arrived. matchwait

wave: put wave