Run a list of assertions in the running game
assert_in_gameRuns truthy expression assertions in a live RPG Maker MZ playtest and returns a pass/fail report. Polls until dialogs, transfers, or battles complete instead of requiring a throwaway script.
Instructions
Hand over a list of {label, expression} and get a pass/fail report back, the way a test runner does it, instead of writing a throwaway script for every playtest. Each expression is evaluated in game scope and has to be truthy; give one a timeoutMs to poll it until it holds, which is what a dialog opening, a transfer landing or a battle ending needs. A failing assertion does not stop the rest unless stopOnFailure is set, and whatever the game logged while the list ran comes back with the result, so a failure arrives with its own reason attached. Needs Allow Eval on the plugin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pollMs | No | ||
| assertions | Yes | ||
| stopOnFailure | No |