From f8ca515c22353b40ff42f5958bb514c25032ca93 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Thu, 15 Nov 2007 21:47:40 +0000 Subject: Added do_wait helper function. --- data/scripts/libtmw.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data/scripts/libtmw.lua') diff --git a/data/scripts/libtmw.lua b/data/scripts/libtmw.lua index b2c22c6..662488e 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) -- cgit