game_wait_for_log
Blocks until a game log line matches your pattern or the timeout expires, enabling assertion of expected actions in automated tests.
Instructions
Block until a log line matches pattern, or the timeout expires.
This is the assertion primitive for automated tests: fire an action, then wait for the line the game prints when the thing you expected happened.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |