diff options
Diffstat (limited to 'data/scripts/libtmw.lua')
-rw-r--r-- | data/scripts/libtmw.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/data/scripts/libtmw.lua b/data/scripts/libtmw.lua index b2c22c68..662488e3 100644 --- a/data/scripts/libtmw.lua +++ b/data/scripts/libtmw.lua @@ -29,6 +29,11 @@ function create_npc(id, x, y, handler) npcs[npc] = handler end +-- Waits for the player to acknowledge the previous message, if any. +function do_wait() + coroutine.yield(0) +end + -- Sends an npc message to a player. -- Note: Does not wait for the player to acknowledge the message. function do_message(npc, ch, msg) |