Matchwait

Description
Pauses the execution of the script until a match is found. When a match is found, the script jumps to the target label of the successful match, waiting for any roundtime to finish before continuing execution. Can use a mixture of match and matchre commands to build the match table.

Syntax
matchwait [timeout]

Parameters

 * timeout
 * stop waiting for a match after timeout seconds and continue execution of the script immediately after the matchwait line.

Examples
loop: put look matchre skin an? (.*?) which appears dead matchre continue Obvious (path|exit) matchwait

skin: put skin pause put bundle goto loop

continue: goto loop