← All packages

wait-and-wait-line

Wait-and-Wait-Line Coroutine Utility

Download .mpackage
Version
1
Author
zhenzh
Created
19 Apr 2020
Updated
5 Feb 2025

Install from Mudlet's command line

mpkg install wait-and-wait-line

Mudlet 4.20+ with mpkg installed

Or drag it in

Drag into MudletDrop it on the main window

Mudlet 4.11+ · click to download instead

Description

This software package provides a coroutine-based waiting mechanism in Lua that allows developers to suspend function execution for a specified time or until a specific pattern is matched. It enables modular function chaining by using wait() and wait_line() functions, which can pause execution, wait for a specific time interval, or wait for matched input patterns. The package is particularly useful for creating sequential, time-dependent, or pattern-matching script flows in Lua applications.


This package was originally shared on the Mudlet Forums by the author. We’ve automatically listed it here on packages.mudlet.org so more users can discover and benefit from it. Please let us know if you have any questions or concerns - thanks for contributing to the Mudlet community!

Script (1)

Files (2)

4.6 KB unpacked

Select a script or file on the left to preview it here.